Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-19-2011, 06:37 PM   #1
Registered: Oct 2011
Posts: 312

Rep: Reputation: 3
Error Installing OpenCV-2.3.1a on Ubuntu 11.10

I am using Ubuntu 11.10 and am trying to install OpenCV-2.3.1a. I go through the folloing sequence after downloading and unzipping OpenCV-2.3.1a.tar.bz2.

tar -xvf OpenCV-2.3.1a.tar
sudo svn co
mkdir MakeFileDir
cd MakeFileDir
sudo cmake ../OpenCV-2.3.1
This starts building OpenCV but when it is 20% done, it crashes with the following error message.

make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.o] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
I did a search on-line and a patch was suggested here. However there are two problems with this.
  • There is no src directory under ~/MakeFileDir/modules/highgui/
  • I found a src directory under ~/OpenCV-2.3.1/modules/highgui/ but its version of cap_ffmpeg.cpp did not contain any of the code that the fix said I was supposed to change. E.g. it did not have "== enc->codec_type && video_stream < 0) {"

Any assistance with resolving this problem would be greatly appreciated.
Old 11-28-2011, 06:38 PM   #2
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
You could use Ubuntu PPA and install through apt:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu,OpenCV and 2 webcams Cheeatos Linux - Newbie 0 07-12-2011 09:26 PM
OpenCV - Pixel format of incoming image is unsupported by OpenCV golmschenk Programming 1 04-01-2011 01:32 PM
OpenCV 2.0 compile error in -current mlpa Slackware 17 01-06-2011 06:17 AM
Installing OpenCV and some other problems with linux matija Linux - Newbie 1 05-28-2009 12:33 PM
installing ffmpeg for opencv josemalo Linux - Software 1 02-27-2006 11:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration