Ask Your Question
0

Unable to compile on opencv-2.4.7 on ubuntu 10.04

asked 2014-01-19 14:56:55 -0600

[ 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?

edit retag flag offensive close merge delete

Comments

did u solve this problem?I have the same question.could u share me your solution?

zhen gravatar imagezhen ( 2016-06-08 03:44:08 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2014-01-19 17:35:46 -0600

Nghia gravatar image

Missing ffmpeg. Either try downloading it via Synaptics or compile it from source from ffmpeg's website.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-01-19 14:56:55 -0600

Seen: 886 times

Last updated: Jan 19 '14