opencv3.0.0 and ubuntu15.10:CMake Error at 3rdparty/ippicv/downloader.cmake:75
error:
answer:Make Error at 3rdparty/ippicv/downloader.cmake:75 (message): ICV: Failed to download ICV package: ippicv_linux_20140513.tgz. Status=28;"Timeout was reached" Call Stack (most recent call first): 3rdparty/ippicv/downloader.cmake:108 (_icv_downloader) cmake/OpenCVFindIPP.cmake:212 (include) cmake/OpenCVFindLibsPerf.cmake:12 (include) CMakeLists.txt:449 (include) -- Configuring incomplete, errors occurred!
linux安裝opencv需要使用到的ippicv_linux_20141027.tgz安裝包.Is it because OpenCV3.0 needs another version of ippicv? I understand that the error comes while downloading ippicv_linux_20140513.tgz (in the 3rd party, ippicv folder).
因為牆的原因一直下載不下來.
下載後拷貝到opencv/3rdparty/ippicv/downloads/linux-8b449a536a2157bcad08a2b9f266828b/ 目錄下即可,如果沒有該目錄,則建立之。
ippicv_linux_20141027.tgz from: http://download.csdn.net/detail/yunlong782/8940743#comment
get information from: http://stackoverflow.com/questions/25726768/opencv-3-0-trouble-with-installation
Ubuntu15.10 安裝OpenCV3.0.0
1 sudo apt-get install build-essential libgtk2.0-dev libjpeg-dev libtiff4-dev libjasper-dev libopenexr-dev cmake python-dev python-numpy python-tk libtbb-dev libeigen3-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev libqt4-dev libqt4-opengl-dev sphinx-common texlive-latex-extra libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev default-jdk ant libvtk5-qt4-dev
2 /usr/local/opencv3.0.0
sudo mkdir buildcd build
sudo cmake -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
3 sudo make
sudo make install
4 配置opencv.conf file ,加入環境變數
sudo gedit /etc/ld.so.conf.d/opencv.conf
在opencv.conf裡面加入命令
/usr/local/lib
更新庫目錄
sudo ldconfig
開啟檔案bash.bashrc
sudo gedit /etc/bash.bashrc
加入下面兩行
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH