-   Linux - Newbie (
-   -   Error Installing OpenCV-2.3.1a on Ubuntu 11.10 (

OtagoHarbour 11-19-2011 05:37 PM

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.

klearview 11-28-2011 05:38 PM

You could use Ubuntu PPA and install through apt:

All times are GMT -5. The time now is 11:20 AM.