赞
踩
参考blog: https://blog.csdn.net/u013066730/article/details/79411767
直接进行,完全没问题
sudo apt-get install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg.dev libtiff4.dev libswscale-dev libjasper-dev
mkdir my_build_dir
cd my_build_dir
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local …
sudo make
sudo make install
sudo gedit /etc/ld.so.conf.d/opencv.conf
文件末尾添加 /usr/local/lib
sudo ldconfig
配置 bash
sudo gedit /etc/bash.bashrc
末尾添加
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH
sudo updatedb
这样就OK了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。