Opencv 环境配置
正文
export OPENCV_INSTALL_ROOT=/home/xcandy/WorkSpace/3rdparty/opencv
export OPENCV_CONTRIB_ROOT=/media/xcandy/WorkSpace/2.Linux-WorkSpace/opencv_contrib
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$OPENCV_INSTALL_ROOT/opencv \
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
-DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7.so \
-DOPENCV_EXTRA_MODULES_PATH=$OPENCV_CONTRIB_ROOT/modules \
-DWITH_CUDA=1 ..