Ask Your Question

Revision history [back]

Unable to compile on opencv-2.4.7 on ubuntu 10.04

[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/linefit.cpp.o [ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/utils.cpp.o [ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/undistort.cpp.o [ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/featureselect.cpp.o [ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/thresh.cpp.o Linking CXX shared library ../../lib/libopencv_imgproc.so [ 21%] Built target opencv_imgproc [ 21%] Generating opencv_highgui_pch_dephelp.cxx Scanning dependencies of target opencv_highgui_pch_dephelp [ 21%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui_pch_dephelp.dir/opencv_highgui_pch_dephelp.cxx.o Linking CXX static library ../../lib/libopencv_highgui_pch_dephelp.a [ 21%] Built target opencv_highgui_pch_dephelp Scanning dependencies of target pch_Generate_opencv_highgui [ 21%] Generating precomp.hpp [ 21%] Generating precomp.hpp.gch/opencv_highgui_RELEASE.gch [ 22%] Built target pch_Generate_opencv_highgui Scanning dependencies of target opencv_highgui [ 22%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap.cpp.o [ 22%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_images.cpp.o [ 23%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o In file included from /home/cnc/opencv-2.4.7/modules/highgui/src/cap_ffmpeg.cpp:45: /home/cnc/opencv-2.4.7/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘void CvVideoWriter_FFMPEG::close()’: /home/cnc/opencv-2.4.7/modules/highgui/src/cap_ffmpeg_impl.hpp:1445: error: ‘avformat_free_context’ was not declared in this scope make[2]: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o] Error 1 make[1]: [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: ** [all] Error 2

Error when make. with cap_ffmpeg.cpp.o. try to install on Ubuntu 10.04.

any clue?