我正在尝试使用ffmpeg在Fedora 22上编译OpenCV 3.0。我遇到以下错误:
[ 26%] Building CXX object
modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_bitwise.cpp.o
Linking CXX executable /global/OpenCV/opencv_perf_core
../../lib/libopencv_videoio.so.3.0.0: undefined reference to `swr_free'
../../lib/libopencv_videoio.so.3.0.0: undefined reference to `swr_init'
../../lib/libopencv_videoio.so.3.0.0: undefined reference to `swr_is_initialized'
../../lib/libopencv_videoio.so.3.0.0: undefined reference to `lzma_code'
../../lib/libopencv_videoio.so.3.0.0: undefined reference to `lzma_end'
../../lib/libopencv_videoio.so.3.0.0: undefined reference to `swr_close'
../../lib/libopencv_videoio.so.3.0.0: undefined reference to `swr_convert'
../../lib/libopencv_videoio.so.3.0.0: undefined reference to `swr_alloc'
../../lib/libopencv_videoio.so.3.0.0: undefined reference to `lzma_stream_decoder'
collect2: error: ld returned 1 exit status
modules/core/CMakeFiles/opencv_perf_core.dir/build.make:770: recipe for target '/global/OpenCV/opencv_perf_core' failed
make[2]: *** [/global/OpenCV/opencv_perf_core] Error 1
CMakeFiles/Makefile2:1245: recipe for target 'modules/core/CMakeFiles/opencv_perf_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
任何帮助都将受到高度赞赏!