How to compile opencv on linux without root
October 28, 2014
##update Cmake
- only cmake version > 2.88 can be used to compile opencv.
- Download latest version cmake source code and cd in the folder.
- ./bootstrap
- make (No need to make install, just executate new cmake from built dir)
##Compiling OpenCV
- Download the latest version opencv from website.
- Mkdir build inside the unzip opencv folder.
- cmake(execute the newly installed cmake using direct path)
The command(do not ignore ..):
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=my_location -D BUILD_NEW_PYTHON_SUPPORT=ON ..
- make
- make install
- Guarantee that python2.7 folder is generated in lib.
- config the environment.