CCExtractor Development

Remove warning at the time of Compilation warning in GPAC when build through CMake

Information

  1. Read CMake section of compilation guide of ccextractor at following link
    https://github.com/CCExtractor/ccextractor/blob/master/docs/COMPILATION.MD
  2. Compile CCExtractor using cmake on linux and 64 bit operating system.
  3. Check warning thrown from GPAC at time of compilation.
  4. GPAC warnings are present because GPAC_64_BITS preprocesor flag is not present in 64 bit build.
  5. GCC expects preprocessor flag through -D option https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html eg: gcc -DFLAG a.c

Actions

  1. You need to define GPAC_64_BITS through changing CMakeLists.txt.
  2. Make sure 32 bit build are not affected.
  3. 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

  • 64bit
  • linux
  • cmake
  • ccextractor
  • build

Students who completed this task

T1duS

Task type

  • code Code
close

2018