[Libav-user] "cannot find -lavcodec" when compiling opencv-2.4.11 with ffmpeg version git-2015-03-21 and python2.7.6

Melitonas melitonas at magveda.eu
Sun Mar 22 11:36:46 CET 2015


Hello everyone,

I am on Centos 6.5 64bit

ffmpeg is compiled successfully by following instructions here:
http://trac.ffmpeg.org/wiki/CompilationGuide/Centos

I get error when compiling opencv-2.4.11 with python2.7.6 and ffmpeg
version git-2015-03-21"

after make I get error. Did I compile the ffmpeg wrong or is the version of
ffmpeg too high for opencv?

bob at localhost~/tmp/opencv-2.4.11/build $ make
[  1%] Built target opencv_core_pch_dephelp
[  1%] Built target pch_Generate_opencv_core
[  6%] Built target opencv_core
[---sniped---]
[ 77%] Built target pch_Generate_opencv_contrib
[ 83%] Built target opencv_contrib
Linking CXX shared library ../../lib/cv2.so
*/usr/bin/ld: cannot find -lavcodec*
collect2: ld returned 1 exit status
make[2]: *** [lib/cv2.so] Error 1
make[1]: *** [modules/python/CMakeFiles/opencv_python.dir/all] Error 2
make: *** [all] Error 2

Bit more on the same question I posted here
http://answers.opencv.org/question/58013/compiling-opencv-2411-with-python276-and-ffmpeg-version-git-2015-03-21/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20150322/767e8ab7/attachment.html>


More information about the Libav-user mailing list