compiling opencv-2.4.11 with python2.7.6 and ffmpeg version git-2015-03-21
I am on Centos 6.5 64bit
I get error when compiling opencv-2.4.11 with python2.7.6 and ffmpeg version git-2015-03-21
after CMAKE I get
-- Precompiled headers: YES -- -- OpenCV modules: -- To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu nonfree contrib python stitching superres ts videostab -- Disabled: world -- Disabled by dependency: - -- Unavailable: androidcamera dynamicuda java ocl viz -- -- GUI: -- QT: NO -- GTK+ 2.x: NO -- GThread : NO -- GtkGlExt: NO -- OpenGL support: NO -- VTK support: NO -- -- Media I/O: -- ZLib: /usr/lib64/libz.so (ver 1.2.3) -- JPEG: /usr/lib64/libjpeg.so (ver ) -- PNG: /usr/lib64/libpng.so (ver 1.2.49) -- TIFF: /usr/lib64/libtiff.so (ver 42 - 3.9.4) -- JPEG 2000: /usr/lib64/libjasper.so (ver 1.900.1) -- OpenEXR: NO -- -- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: NO -- FFMPEG: YES -- codec: YES (ver 56.29.100) -- format: YES (ver 56.26.101) -- util: YES (ver 54.20.100) -- swscale: YES (ver 3.1.101) -- gentoo-style: YES -- GStreamer: NO -- OpenNI: NO -- OpenNI PrimeSensor Modules: NO -- PvAPI: NO -- GigEVisionSDK: NO -- UniCap: NO -- UniCap ucil: NO -- V4L/V4L2: NO/NO -- XIMEA: NO -- Xine: NO -- -- Other third-party libraries: -- Use IPP: NO -- Use Eigen: YES (ver 3.2.3) -- Use TBB: NO -- Use OpenMP: NO -- Use GCD NO -- Use Concurrency NO -- Use C=: NO -- Use Cuda: NO -- Use OpenCL: NO -- -- Python: -- Interpreter: /usr/local/bin/python2.7 (ver 2.7.6) -- Libraries: /usr/local/lib/python2.7/config/libpython2.7.a (ver 2.7.6) -- numpy: /usr/local/lib/python2.7/site-packages/numpy/core/include (ver ) -- packages path: /usr/local/lib/python2.7/site-packages -- -- Java: -- ant: NO -- JNI: NO -- Java tests: NO -- -- Tests and samples: -- Tests: NO -- Performance tests: NO -- C/C++ Examples: NO -- -- Install path: /usr/local -- -- cvconfig.h is in: /home/bob/tmp/opencv-2.4.11/build -- ----------------------------------------------------------------- -- -- Configuring done -- Generating done
after make
bob@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 [------] [ 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
why the hell lavcodec is missing?.. /usr/bin/ld: cannot find -lavcodec
ffmpeg is built by the instructions here