ubuntu 14.04安装opencv2.4.9

ubuntu 14.04安装opencv2.4.9


  1. sudo apt-get install build-essential
  2. sudo apt-get install libgtk2.0-dev libavcodec-dev libavformat-dev libtiff4-dev libswscale-dev libjasper-dev
  3. sudo apt-get install cmake
  4. sudo apt-get install pkg-config
  5. unzip opencv-2.4.9.zip
  6. cmake .
  7. make
  8. sudo make install
    正确提示
-- Set runtime path of "/usr/local/bin/opencv_haartraining" to "/usr/local/lib"
-- Installing: /usr/local/bin/opencv_createsamples
-- Set runtime path of "/usr/local/bin/opencv_createsamples" to "/usr/local/lib"
-- Installing: /usr/local/bin/opencv_performance
-- Set runtime path of "/usr/local/bin/opencv_performance" to "/usr/local/lib"
-- Installing: /usr/local/bin/opencv_traincascade
-- Set runtime path of "/usr/local/bin/opencv_traincascade" to "/usr/local/lib"
  1. 添加动态库信息
    sudo sh -c ‘echo “/usr/local/lib” > /etc/ld.so.conf.d/opencv.conf’
  2. sudo ldconfig

你可能感兴趣的:(机器学习,计算机视觉,OpenCV)