Ask Your Question

how do I launch Opencv

asked 2015-08-21 14:27:20 -0600

I have a computer with Ubuntu 14.4. I have downloaded Opencv and extracted the files. I now have a folder with all the files and subfolders with Opencv version 3.0. What I cannot find is a .exe file that allows me to run the program. Tks.

edit retag flag offensive close merge delete



2 answers

Sort by ยป oldest newest most voted

answered 2015-08-24 13:33:01 -0600

Ok. So I only have an old Veriton M460 with Intel Pentium that however seems to work fine.

Since the site "" declared that "These steps have been tested for Ubuntu 10.04 but should work with other distros as well." I downloaded Ubuntu 10.04 LTS, certain of a positive result!

Unfortunately I did not go far... on the second comand to retrieve the required packages (sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev) I received a smarty remark stating that:

the package is not available (missing, obsoleted or only available from other source) E: Package git has no installation candidate


Well I did not loose my will: I downloaded Ubuntu 12.04 LTS and tried again...

I managed to complete the 3 required package downloads (hiphip hurra!) and set off to follow the other instructions.

On point 2 (configuring) I wrote the magic sentence "cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .."

But I received a non encouraging "The source directory "/home/... does not appear to contain CMakeLists.txt"

So I went with what seemed could solve the issue, the comand line: sudo apt-get install cmake-qt-gui :-))

I thought it had worked :-)... But checkmate however came immediately after: with a "make: invalid option -- 'D' " My hopes colapsed: could not find a way to go any further...

So I am back to Ubuntu 14.04 and no OpenCv.

Can anyone suggest step by step instructions (a book, youtube, tutorial etc) that a willing yet desperate novice can follow?

Hope I don't have to go back to Windows... :-(

... and thanks for reading, at least I feel better now... :-) Roby

edit flag offensive delete link more


what about following this guide just replace the alpha version that has been used there with the latest stable...

theodore gravatar imagetheodore ( 2015-08-24 13:44:07 -0600 )edit

answered 2015-08-22 02:26:43 -0600

have a look at this .this is for 24.9 but i guess the process will be same for any version

edit flag offensive delete link more



I think that's not a good idea to give an external link to build opencv. If you think official link is not good or something is missing it's better to say what is wrong. Somebody can make a pull request to include your comment in doc or you can make a pull request yourself. to improve official doc

PS my english is not very good and i don't want to hurt you. It's only my opinion

LBerger gravatar imageLBerger ( 2015-08-22 02:55:59 -0600 )edit

Question Tools

1 follower


Asked: 2015-08-21 14:27:20 -0600

Seen: 419 times

Last updated: Aug 24 '15