我正在使用http://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html
中的步骤编译和安装OpenCV但在"制作"它,它达到45%时有错误。错误消息是
...
[ 43%] Built target pch_Generate_opencv_video
[ 44%] Built target opencv_video
[ 44%] Built target opencv_perf_video_pch_dephelp
[ 45%] Built target pch_Generate_opencv_perf_video
Linking CXX executable ../../bin/opencv_perf_video
../../lib/libopencv_videoio.so.3.1.0: undefined reference to `avcodec_alloc_frame'
../../lib/libopencv_videoio.so.3.1.0: undefined reference to `avcodec_encode_video'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/opencv_perf_video] Error 1
make[1]: *** [modules/video/CMakeFiles/opencv_perf_video.dir/all] Error 2
make: *** [all] Error 2
我从https://www.ffmpeg.org/下载并安装了最新版本的ffmpeg。
任何人都知道如何解决错误?
谢谢。