July 13, 2016
作者:dengshuai_super
出处:http://blog.csdn.net/dengshuai_super/article/details/51895120
声明:转载请注明作者及出处。
ubuntu 16.04 LTS 安装opencv-3.1.0
按照这篇文章安装http://blog.csdn.net/dengshuai_super/article/details/51394118 出现了下面的错误.
g++ example.cpp -o example `pkg-config --libs --cflags opencv`
/usr/bin/ld: 找不到 -lippicv
collect2: error: ld returned 1 exit status
解决方案一:
https://github.com/opencv/opencv/issues/5852这篇文章中也遇到了这个错误. 可以在cmake时加上"cmake -DINSTALL_CREATE_DISTRIB=ON"
这句,就不会有这个错误了.
可以完整参照http://blog.csdn.net/frosero/article/details/50742400这篇文章安装.
总结安装步骤:
ubuntu16.04 安装opencv3.1.0
sudo apt-get install libgtk-3-dev
sudo apt-get install pkg-config
sudo apt-get install cmake
sudo apt-get install python-dev python-numpy libavcodec-dev libavformat-dev libswscale-dev
cd 到opencv-3.1.0
cmake -DINSTALL_CREATE_DISTRIB=ON
make
sudo make install
gedit /etc/profil