Linux 安装Opencv3.2

ippicv

'''
wget https://raw.githubusercontent.com/Itseez/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_linux_20151201.tgz
'''

将下载好的文件拷贝到
'''
/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e/
'''
覆盖。

vtk & cuda disable

'''
cmake -D CMAKE_BUILD_TYPE=RELEASE -DWITH_VTK=Off -D BUILD_opencv_gpu=OFF -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
'''

bash env set

'''
export LIBRARY_PATH=/usr/local/lib/opencv/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/lib/opencv/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:$PKG_CONFIG_PATH
#/usr/local/lib/pkgconfig/
export PYTHONPATH=/usr/local/lib/python2.7/dist-packages:$PYTHONPATH
'''

转载于:https://www.cnblogs.com/Viewsky/p/6503086.html

你可能感兴趣的:(Linux 安装Opencv3.2)