ubuntu16.04 下安装Opencv2.4.9

ubuntu16.04 下安装Opencv2.4.9

OpenCV的源码download from:  https://sourceforge.net/projects/opencvlibrary/?source=typ_redirect

[plain] view plain copy
  1. cd opencv-2.4.9    
  2. mkdir build    
  3. sudo chmod -R 777 build    
  4. cd build  
[plain] view plain copy
  1. cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=OFF -D WITH_OPENMP=ON -D WITH_QT=ON ..    
  2. make -j128    
  3. sudo make install    
  4. sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'    
  5. sudo ldconfig    

验证pkg-config --modversion opencv显示opencv的版本 


你可能感兴趣的:(ubuntu16.04 下安装Opencv2.4.9)