https://bugs.kde.org/show_bug.cgi?id=458313
Stefan Brüns <stefan.bru...@rwth-aachen.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Summary|CMake not checking for |autotests CMakeLists tries |libavformat before |to build |attempting compile |ffmpegextractortest even | |when only some FFmpeg | |components are found Status|REPORTED |CONFIRMED CC| |stefan.bruens@rwth-aachen.d | |e --- Comment #2 from Stefan Brüns <stefan.bru...@rwth-aachen.de> --- The complete error message is: --- [ 66%] Building CXX object autotests/CMakeFiles/ffmpegextractortest.dir/__/src/extractors/ffmpegextractor.cpp.o cc1plus: warning: /home/stefan/Sources/kfilemetadata/autotests/AVCODEC_INCLUDE_DIRS-NOTFOUND: No such file or directory [-Wmissing-include-dirs] cc1plus: warning: /home/stefan/Sources/kfilemetadata/autotests/AVFORMAT_INCLUDE_DIRS-NOTFOUND: No such file or directory [-Wmissing-include-dirs] /home/stefan/Sources/kfilemetadata/src/extractors/ffmpegextractor.cpp:26:10: fatal error: libavformat/avformat.h: No such file or directory 26 | #include <libavformat/avformat.h> | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [autotests/CMakeFiles/ffmpegextractortest.dir/build.make:104: autotests/CMakeFiles/ffmpegextractortest.dir/__/src/extractors/ffmpegextractor.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1383: autotests/CMakeFiles/ffmpegextractortest.dir/all] Error 2 --- So the compilation of the tests failed, which would have been helpful information. Also, already CMake complains: --- CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: /home/stefan/Sources/kfilemetadata/autotests/AVCODEC_INCLUDE_DIRS used as include directory in directory /home/stefan/Sources/kfilemetadata/autotests /home/stefan/Sources/kfilemetadata/autotests/AVFORMAT_INCLUDE_DIRS used as include directory in directory /home/stefan/Sources/kfilemetadata/autotests AVCODEC_LIBRARIES (ADVANCED) linked by target "ffmpegextractortest" in directory /home/stefan/Sources/kfilemetadata/autotests AVFORMAT_LIBRARIES (ADVANCED) linked by target "ffmpegextractortest" in directory /home/stefan/Sources/kfilemetadata/autotests --- -- You are receiving this mail because: You are watching all bug changes.