MantisBT - VCMI | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0001188 | VCMI | Other | public | 2013-01-26 16:35 | 2014-05-30 17:41 |
Reporter | t3st3r | ||||
Assigned To | Ivan | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | AMD64 | OS | Xubuntu 12.10 64-bit | OS Version | 12.10 |
Product Version | |||||
Target Version | Fixed in Version | 0.91 | |||
Summary | 0001188: Cmake fails on libav/ffmpeg detection in Ubuntu: detection succeeds but build ends with error due to lack of some libav parts. | ||||
Description | Ffmpeg/libav detection in your cmake build system is currentlyl broken. It falsely passes check but then build fails later due to missing libraries. $ cmake CMakeLists.txt -- Boost version: 1.50.0 -- Found the following Boost libraries: -- program_options -- filesystem -- system -- thread -- DEFAULT_MESSAGE (missing: FFMPEG_LIBRARIES) -- Configuring done -- Generating done -- Build files have been written to: /builds/vcmi/vcmi-bld I.e. detection considered passed and makefiles were generated. But then: [ 77%] Building CXX object client/CMakeFiles/vcmiclient.dir/BattleInterface/CCreatureAnimation.cpp.o In file included from /builds/vcmi/vcmi-bld/client/BattleInterface/CBattleInterfaceClasses.cpp:22:0: /builds/vcmi/vcmi-bld/client/BattleInterface/../CVideoHandler.h:235:34: fatal error: libavformat/avformat.h: No such file or directory compilation terminated. make[2]: *** [client/CMakeFiles/vcmiclient.dir/BattleInterface/CBattleInterface.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... After installing some more ffmpeg libs and retry it has come to lack of libswscale: Building CXX object client/CMakeFiles/vcmiclient.dir/UIFramework/Fonts.cpp.o In file included from /builds/vcmi/vcmi-bld/client/BattleInterface/CBattleInterface.cpp:25:0: /builds/vcmi/vcmi-bld/client/BattleInterface/../CVideoHandler.h:236:32: fatal error: libswscale/swscale.h: No such file or directory compilation terminated. In file included from /builds/vcmi/vcmi-bld/client/BattleInterface/CBattleInterfaceClasses.cpp:22:0: /builds/vcmi/vcmi-bld/client/BattleInterface/../CVideoHandler.h:236:32: fatal error: libswscale/swscale.h: No such file or directory compilation terminated. | ||||
Steps To Reproduce | To reproduce this problem you should have some libav development parts installed in your system to allow cmake to pass libav checks but some parts required by VCMI should be missing. In my case it looks like if presence of libavformat and libswscale parts of libbav wasn't checked correctly. | ||||
Additional Information | Honestly, I'm getting to love autotools-based programs. Your build system had far more troubles than any program I built before. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-01-26 16:35 | t3st3r | New Issue | |||
2013-01-26 17:05 | Ivan | Note Added: 0003331 | |||
2013-01-26 17:05 | Ivan | Assigned To | => Ivan | ||
2013-01-26 17:05 | Ivan | Status | new => assigned | ||
2013-01-26 19:40 | Ivan | Note Added: 0003334 | |||
2013-01-26 19:40 | Ivan | Status | assigned => resolved | ||
2013-01-26 19:40 | Ivan | Fixed in Version | => 0.91 | ||
2013-01-26 19:40 | Ivan | Resolution | open => fixed | ||
2013-01-27 09:49 | t3st3r | Note Added: 0003337 | |||
2013-01-27 09:49 | t3st3r | Note Edited: 0003337 | bug_revision_view_page.php?bugnote_id=3337#r2111 | ||
2013-01-27 09:51 | t3st3r | Note Edited: 0003337 | bug_revision_view_page.php?bugnote_id=3337#r2112 | ||
2013-01-27 10:57 | Ivan | Note Added: 0003338 | |||
2014-05-30 17:41 | beegee | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|