0

I am trying to learn image processing and obviously opencv is one of the best options. Usually synaptic does all my installing work for me so I just checked the repos. But in the repos there is only on libcv1 and it is listed as 1.0.0-6.2ubuntu1. Does that mean it is version 1.0 of opencv? Also I found this page in community wiki

https://help.ubuntu.com/community/OpenCV

It says I need to install libcv4 which is not in my repos. I also downloaded the source but it uses something called cmake, never used it before. Is it similar to make?

Jorge Castro
  • 73,717
Rick_2047
  • 373

4 Answers4

3

In your case you have indeed version 1.0.0 of the library.

In general when you want to develop using a library, you have to get the corresponding -dev package which contains the header files. In this case libcv-dev. It will also install the library itself, which may have different version numbers depending on the soname - no need to install it separately.

In this case there is also a opencv-doc package, which contains some example programs, and which is worth installing.

If you want to build the library itself from source, you can run sudo apt-get build-dep opencv to get all the required libraries and header files to build opencv.

Building indeed uses cmake. It is a program which generates makefiles.

johanvdw
  • 1,011
0

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
fossfreedom
  • 174,526
0

There's a PPA for OpenCV 2.3: https://launchpad.net/~gijzelaar/+archive/opencv2.3

0

Here is a tutorial for installing the latest OpenCV 2.3.1 with Netbeans 7.1 as IDE.

I don't know if it installs build-essentials by itself, but the tutorial will definitly help you.

http://ninetynine.be/blog/2012/01/setting-up-opencv-2-3-1-and-netbeans-7-1-on-ubuntu-oneiric-11-10/

RVH
  • 318