Categories
HowTo OpenCV Posts Ubuntu

Problems Installing OpenCV in Ubuntu Karmic (9.10)

UPDATE

I now have it working and wrote a guide of how I got it to work –

http://alexsleat.com/2009/12/02/howto-install-opencv-in-ubuntu-karmic-9-10/

END UPDATE

I found a great guide on getting OpenCV to install on Ubuntu Karmic (9.10) –http://ivkin.net/2009/11/installing-opencv-2-0-on-ubuntu-9-10-karmic-koala/

Most the comments show the guide works however I have a couple of problems:

Firstly when reloading the libraries to make opencv show up
ldconfig -v | grep opencv
That results in the following output:
/sbin/ldconfig.real: Cannot stat /lib/i486-linux-gnu: No such file or directory
/sbin/ldconfig.real: Cannot stat /lib64: No such file or directory
/usr/local/opencv/lib:

However continuing on with the installation and it is able to compile all the sample programs, but when attempting to run most of them it seems it fails at running the GUI:
./facedetect
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file highgui/window.cpp, line 100
terminate called after throwing an instance of 'cv::Exception'
Aborted

When I find the fix for this I will make sure to update the post, if you find my post and fix it yourself please leave a comment how you did it.

3 replies on “Problems Installing OpenCV in Ubuntu Karmic (9.10)”

hi Alex Sleat,
I hava installed opencv on ubuntu, I have the same problem. That is :
hop@ubuntu:~/openCV_samples$ ./facedetect –cascade=”/usr/local/share/opencv/haarcascades/haarcascade_frontalface_alt.xml” –scale=1.5 lena.jpg
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /home/hop/android/opencv/OpenCV-2.2.0/modules/highgui/src/window.cpp, line 274
terminate called after throwing an instance of ‘cv::Exception’
what(): /home/hop/android/opencv/OpenCV-2.2.0/modules/highgui/src/window.cpp:274: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvNamedWindow

Aborted

have you solved that? Can you show me what I have to do to solve that error. Thanks.

Hi TranDang,
It looks like your problem is not having libgtk2.0-dev and pkg-config installed, if you use “sudo apt-get install libgtk2.0-dev pkg-config” and re-compiling OpenCV.
If you are still having trouble I wrote a guide for OpenCV 2.0.0 – http://alexsleat.co.uk/2009/12/02/howto-install-opencv-in-ubuntu-karmic-9-10/
I also found an awesome guide for 2.1.0 which works for 2.2.0 which it looks like you’re using, – http://www.samontab.com/web/2010/04/installing-opencv-2-1-in-ubuntu/

Leave a Reply

Your email address will not be published. Required fields are marked *