#124 libstreamanalyzer fails to build with libavutil 0.5.9

open
nobody
analyzers (34)
5
2012-06-27
2012-06-27
David Jarvie
No

Using the current strigi from KDE git, I get the following compilation errors. This is due to the version of libavutil on my system - the file libavutil/avutil.h doesn't contain a definition of AVMEDIA_TYPE_AUDIO, which was added in some later version. There should be a cmake check for the version of this library.

Building CXX object strigi/libstreamanalyzer/plugins/endplugins/CMakeFiles/ffmpeg.dir/ffmpegendanalyzer.cpp.o
/home/david/src/kde/4.9/kdesupport/strigi/libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp: In member function ‘virtual signed char FFMPEGEndAnalyzer::analyze(Strigi::AnalysisResult&, Strigi::InputStream*)’:
/home/david/src/kde/4.9/kdesupport/strigi/libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp:352: error: ‘AVMEDIA_TYPE_AUDIO’ was not declared in this scope
/home/david/src/kde/4.9/kdesupport/strigi/libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp:363: error: ‘AVMEDIA_TYPE_AUDIO’ was not declared in this scope
/home/david/src/kde/4.9/kdesupport/strigi/libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp:363: error: ‘AVMEDIA_TYPE_VIDEO’ was not declared in this scope
make[2]: *** [strigi/libstreamanalyzer/plugins/endplugins/CMakeFiles/ffmpeg.dir/ffmpegendanalyzer.cpp.o] Error 1

Discussion