1 | initial version |
I am not sure if this is a good idea, since usually the libraries are not kept under such locations once they are built, but anyway let me tell you what you need to do:
You need to change the install prefix, which is given in the command you execute to build it
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
so instead of /usr/local you will write whatever the path you want OpenCV to be installed in. For further information, I suggest you go through the tutorial by OpenCV itself.
2 | No.2 Revision |
I am not sure if this is a good idea, since usually the libraries are not kept under such locations once they are built, but anyway let me tell you what you need to do:
You need to change the install prefix, which is given in the command you execute to build it
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local CMAKE_INSTALL_PREFIX=/home/yyy/lib_opencv/ ..
so instead Also, do not skip those dots at the end of /usr/local you will write whatever the path you want OpenCV to be installed in. command, they are there for a reason.
For further information, I suggest you go through the tutorial by OpenCV itself.
3 | No.3 Revision |
I am not sure if this is a good idea, since usually the libraries are not kept under such locations once they are built, but anyway let me tell you what you need to do:
You need to change the install prefix, which is given in the command you execute to build itit:
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/home/yyy/lib_opencv/ ..
Also, do not skip those dots at the end of the command, they are there for a reason.
For further information, I suggest you go through the tutorial by OpenCV itself.