HowTo: Install OpenCV in Ubuntu Karmic (9.10)

In: HowTo|OpenCV|Ubuntu

2 Dec 2009

Heres how I got OpenCV installed:

First install some needed packages

sudo apt-get install build-essential libgtk2.0-dev

Now you need to grab FFmpeg for the install to work

svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg

The svn didn’t work for me, probably something to do with the proxy I’m under at Uni so I had to grab the source and compile it:

Download – http://ffmpeg.org/releases/ffmpeg-0.5.tar.bz2

(skip the tar step if you svn the package)

tar -jxvf ffmpeg-0.5.tar.bz2

Configure and install ffmpeg

cd ffmpeg

./configure --enable-shared

make

sudo make install

Next grab a copy of OpenCV (I used OpenCV-2.0.0.tar.bz2 in this guide)

Download – http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.0/

tar -jxvf OpenCV-2.0.0.tar.bz2

cd OpenCV-2.0.0

./configure --with-ffmpeg --with-gtk --with-quicktime=false

make

sudo make install

Now you should be setup, try running one of the sample programs to test it:

cd samples/c/

. build_all.sh

./facedetect

3 Responses to HowTo: Install OpenCV in Ubuntu Karmic (9.10)

Avatar

Arkapravo

June 20th, 2010 at 7:41 am

Hey Alex

This works great with Ubuntu 9.04, however ./facedetect doesn’t work with Ubuntu 9.04 installed in Virtual Box. May be some Hardware Abstraction issue of the webcam.

Thanks again

Arkapravo

Avatar

Alex

June 20th, 2010 at 12:45 pm

Hey Arkapravo,

Sorry I don’t have any experience working with Virtual Box but if you manage to find out how to get it working I’d love to know how you did it!

Avatar

Arkapravo

June 28th, 2010 at 2:08 pm

Install Virtual Box , configure Ubuntu 9.04 using an iso image file, install Guest Additions for ‘smooth’ working of the guest OS. Then rest is exactly same as in your website. Just that some of the hardware may not work (issues with hardware abstraction). Then again, it is a very good test, before actually partitioning the HDD to install the OS.

Comment Form

About

Hi, my name is Alex Sleat. On this site I will share my thoughts, ideas, things I find online and projects I'm doing at university or at home. I am currently studying Robotics BSc at the University of the West of England (UWE). I'm intrested in all things tech, web, gadgets, gaming, films and baseball.

Thanks for stopping by, check me out on other sites.