CCExtractor Development
Remove warning at the time of Compilation warning in GPAC when build through CMake
Information
- Read CMake section of compilation guide of ccextractor at following link
https://github.com/CCExtractor/ccextractor/blob/master/docs/COMPILATION.MD - Compile CCExtractor using cmake on linux and 64 bit operating system.
- Check warning thrown from GPAC at time of compilation.
- GPAC warnings are present because GPAC_64_BITS preprocesor flag is not present in 64 bit build.
- GCC expects preprocessor flag through -D option https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html eg: gcc -DFLAG a.c
Actions
- You need to define GPAC_64_BITS through changing CMakeLists.txt.
- Make sure 32 bit build are not affected.
- Raise a pull request with your Fix
Hints
Look for GPAC specific define:
File: https://github.com/CCExtractor/ccextractor/blob/master/src/CMakeLists.txt
Section below:
add_definitions(-DVERSION_FILE_PRESENT -DFT2_BUILD_LIBRARY -DGPAC_DISABLE_VTT -DGPAC_DISABLE_OD_DUMP)
Example code for checking bitness of operating system:
set(bitness 32)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(bitness 64)
endif()
message("BIT : ${bitness}")
Task tags
Students who completed this task
T1duS