Ask Your Question
0

Why am I getting this error? Installation issue in Ubuntu 10.04 LTS

asked 2013-10-25 09:32:08 -0600

opencvbuddy gravatar image

updated 2013-10-25 09:34:38 -0600

Hello,

Basically, followed this step.

http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html

got source from git clone https://github.com/Itseez/opencv.git

I typed make and waited..but got error..

[ 15%] Built target pch_Generate_opencv_highgui Scanning dependencies of target opencv_highgui [ 15%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap.cpp.o [ 15%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_images.cpp.o [ 15%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o In file included from ..../opencv/modules/highgui/src/cap_ffmpeg.cpp:45: ..../opencv/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘void CvVideoWriter_FFMPEG::close()’: ..../opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:1475: 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

Any idea?

Thanks,

edit retag flag offensive close merge delete

Comments

maybe you need to update/upgrade ffmpeg library via sudo apt-get

Ilya Lavrenov gravatar imageIlya Lavrenov ( 2013-10-26 04:37:11 -0600 )edit

3 answers

Sort by » oldest newest most voted
1

answered 2013-12-18 23:34:31 -0600

Different versions of FFMPEG are not binary or source compatible. OpenCV drops support of some ancient FFMPEG versions. I do not know minimal supported FFMPEG version, but recommend you to use something upper then 1.0. FFMPEG I'm sure that FFMPEG 1.0 is supported.

edit flag offensive delete link more
0

answered 2016-06-08 03:47:43 -0600

zhen gravatar image

I have the same problem, if anyone have solved,pls share me your solution, I have check several solutions but didn't work. and now I need your help.Thx so much.

edit flag offensive delete link more
0

answered 2013-12-18 06:40:13 -0600

Hi I am also trying to compile opencv on Ubuntu 10.014 and I get the exact same message :

Scanning dependencies of target opencv_highgui [ 16%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap.cpp.o [ 16%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_images.cpp.o [ 16%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o In file included from /home/mnaveau/devel/opencv/opencv-2.4.7/modules/highgui/src/cap_ffmpeg.cpp:45: /home/mnaveau/devel/opencv/opencv-2.4.7/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘void CvVideoWriter_FFMPEG::close()’: /home/mnaveau/devel/opencv/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

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-25 09:32:08 -0600

Seen: 2,277 times

Last updated: Dec 18 '13