LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 11-19-2011, 05:37 PM   #1
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 291

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.

Code:
cd
tar -xvf OpenCV-2.3.1a.tar
sudo svn co https://code.ros.org/svn/opencv/trunk
mkdir MakeFileDir
cd MakeFileDir
sudo cmake ../OpenCV-2.3.1
make
This starts building OpenCV but when it is 20% done, it crashes with the following error message.

Code:
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.
Peter.
 
Old 11-28-2011, 05:38 PM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
You could use Ubuntu PPA and install through apt:
https://launchpad.net/~gijzelaar/+archive/opencv2.3
 
  


Reply


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 08:26 PM
OpenCV - Pixel format of incoming image is unsupported by OpenCV golmschenk Programming 1 04-01-2011 12:32 PM
OpenCV 2.0 compile error in -current mlpa Slackware 17 01-06-2011 05:17 AM
Installing OpenCV and some other problems with linux matija Linux - Newbie 1 05-28-2009 11:33 AM
installing ffmpeg for opencv josemalo Linux - Software 1 02-27-2006 10:34 PM


All times are GMT -5. The time now is 03:16 AM.

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