cmake 时指定安装路径
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local/opencv/opencv4 ..
安装后,opencv 位于 /usr/local/includeopencv-2.4.13 中
使用时,在 CMakeLists.txt 中指定opencv库目录
set(CMAKE_PREFIX_PATH "/usr/local/opencv/opencv4")
cmake 时指定安装路径
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local/opencv/opencv4 ..
安装后,opencv 位于 /usr/local/includeopencv-2.4.13 中
使用时,在 CMakeLists.txt 中指定opencv库目录
set(CMAKE_PREFIX_PATH "/usr/local/opencv/opencv4")