I've downloaded opencv but unfortunately I've got no idea how to install it. All the pages I found online were only telling me how to download and install it directly from the console, not what to do when you already have it downloaded. Could anybody tell me what to do?
To Install OpenCV on Ubuntu, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
Ubuntu 12.04 provides a package of OpenCV 2.3.1 that you can easily install by typing:
If you do not care about having the latest version you could skip the rest.
Download OpenCV for Unix to: ~/Downloads
Configure using CMake.
Notice, that by adding the -D WITH_QT=ON, the highgui module will use QT instead of GTK. If you want to go with GTK just remove this. For more information on the options, look at the CMakeLists.txt file. When you are happy with the configuration you have, you can start compiling:
If compilation finishes without errors, you can install by saying:
Finally, make sure that your programs can link to the OpenCV library in run-time by adding the following line at the end of your
And then configure dynamic linker run-time bindings:
Here's a script to help install opencv on ubuntu https://gist.github.com/olupotd/cd0c68f4c84153dffd16/download
protected by Community♦ Jun 15 '14 at 21:14
Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?