Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

anyone know how to get a working install of opencv in karmic? I've tried pretty much every way i can find in a google search and none seem to work..

share|improve this question

migrated from Nov 22 '09 at 13:49

This question came from our site for professional and enthusiast programmers.

Could you mention what error you are facing ? – Sathya Nov 22 '09 at 14:09

Are you looking for the Open Source Computer Vision library, OpenCV?

The 1.0 version is available in Karmic's universe repositories. You'll need to make sure that repository is enabled in your package manager. According to this post, you want to run this command to install all the library packages, or edit the list to leave off packages you don't want:

sudo apt-get install libcv1 libcvaux1 libcvaux-dev libcv-dev libhighgui1 libhighgui-dev opencv-doc python-opencv

If you want the 2.0 version, you'll need to grab the OpenCV 2.0 source from Sourceforge and build it yourself. See the OpenCV wiki and 2.0 Release Notes for details.

share|improve this answer

I just wrote a guide of how I got it to work, might be use to you ->

share|improve this answer

To install OpenCV using the terminal on Ubuntu:

$ su -
# apt-get update
# apt-get install build-essential
# apt-get install libavformat-dev
# apt-get install x264 v4l-utils ffmpeg
# apt-get install libcv2.3 libcvaux2.3 libhighgui2.3 python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev

OpenCV should be installed in /usr/local/ Installation Directory

You may also want to compile and view examples

$ cp -r /usr/share/doc/opencv-doc/examples .
$ cd examples
$ cd c
$ sh


share|improve this answer

You must log in to answer this question.