Linux 安装Opencv3.2

ippicv

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

将下载好的文件拷贝到
'''
<opencv_dir>/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
'''

posted @ 2017-03-04 22:54  Viewsky  阅读(1878)  评论(0编辑  收藏  举报