Menu

#848 Cannot build MI library on RedHat6 with --disable-text option

Incorrect_result
open
nobody
4
2014-04-30
2014-04-30
No

MediaInfo_CLI_GNU_FromSource/CLI_Compile.sh build script was modified to call ./configure with a number of 'disable' directives that we don't need in our project (i.e. --disable-archive --disable-image --disable-tag --disable-text). All builds find until we put --disable-text.
Lots of 'undefined symbol' errors follow up. Reason is some mess with missing macros to guard the disabled code in some places. Example message i get.

../../../Source/MediaInfo/Multiple/File_Ancillary.cpp: In member function ‘virtual void MediaInfoLib::File_Ancillary::Read_Buffer_Continue()’:
../../../Source/MediaInfo/Multiple/File_Ancillary.cpp:272: error: ‘Cdp_Data’ was not declared in this scope
../../../Source/MediaInfo/Multiple/File_Ancillary.cpp:274: error: ‘File_Cdp’ was not declared in this scope
../../../Source/MediaInfo/Multiple/File_Ancillary.cpp:274: error: expected primary-expression before ‘)’ token
../../../Source/MediaInfo/Multiple/File_Ancillary.cpp:274: error: expected ‘)’ before ‘Cdp_Parser’
../../../Source/MediaInfo/Multiple/File_Ancillary.cpp:277: error: ‘Cdp_Parser’ was not declared in this scope
../../../Source/MediaInfo/Multiple/File_Ancillary.cpp:279: error: ‘Cdp_Parser’ was not declared in this scope

Guarding code with appropriate "#if defined()" block just postopnes the problem till same error pops up from another *.cpp file.

Discussion


Log in to post a comment.