relatively new Ubuntu user here (but very familiar with OpenCV use on Windows). Having read this post:
It's clear that there is not a direct Ubuntu/Linux equivalent of "Program Files" or "Program Files (x86)" in Windows.
For OpenCV installation, I followed this page:
which essentially involves going to here:
and running 3 scripts:
This works like a champ with Ubuntu 16.04, however I'm not clear on which directory to perform these steps from and therefore have the install located in.
If I open up a terminal by default it goes to the home directory for the current user, in my case for example that would be "/home/cdahms"
This seems like a very bad place to locate an OpenCV download/build/install (still not sure which to call it, again, relatively new to Linux) for at least the following reasons:
-The home directory is often used for other stuff and locating OpenCV here may result in inadvertent modification at a later time
-If a computer ever has multiple users it does not seem to make sense to place OpenCV in a certain user's home directory
-A home directory does not seem like a proper directory for a software install generally speaking
Based on this:
set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE PATH "Installation Directory")
I'm under the impression that I should cd to "/usr/local", then run the above OpenCV install script. Is this correct? Where are most Ubuntu/OpenCV users installing to?
Note: I should mention that I'm NOT using the apt-get package "libopencv-dev" since that is on OpenCV version 2.4.9 currently, which is about 3.5 years old now. Does anybody have any ideas as to why this package is not updated more often?