I'm trying to build OpenCV 3.1 on RPi and facing some compilation issues related to FFMPEG libraries.
I suspect there is a problem in either missing library or the wrong library being used.
Before building OpenCV I've built FFMPEG from source and that worked just fine.
The error is as follows:
Code: Select all
usr/bin/ld: warning: libavutil.so.55, needed by //usr/local/lib/libswresample.so, may conflict with libavutil.so.54 /usr/bin/ld: warning: libavutil.so.55, needed by //usr/local/lib/libswresample.so, may conflict with libavutil.so.54 ../../lib/libopencv_videoio.a(cap_ffmpeg.cpp.o): In function `CvVideoWriter_FFMPEG::open(char const*, int, double, int, int, bool)': cap_ffmpeg.cpp:(.text._ZN20CvVideoWriter_FFMPEG4openEPKcidiib+0x2dc): undefined reference to `avformat_get_mov_video_tags' collect2: error: ld returned 1 exit status modules/video/CMakeFiles/opencv_perf_video.dir/build.make:312: recipe for target 'bin/opencv_perf_video' failed make: *** [bin/opencv_perf_video] Error 1 CMakeFiles/Makefile2:4078: recipe for target 'modules/video/CMakeFiles/opencv_perf_video.dir/all' failed make: *** [modules/video/CMakeFiles/opencv_perf_video.dir/all] Error 2 Makefile:147: recipe for target 'all' failed make: *** [all] Error 2