1. Create a temporary directory, which we denote as <cmake_binary_dir>, where you want to put the generated Makefiles, project files as well the object filees and output binaries

  2. Enter the <cmake_binary_dir> and type

    cmake [<some optional parameters>] <path to the OpenCV source directory>
    

    For example

    cd ~/opencv
    mkdir release
    cd release
    cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX= /usr/local
    
  3. Enter the created temporary directory (<cmake_binary_dir>) and proceed with:

    make
    sudo make install

    转自http://www.opencv.org.cn/opencvdoc/2.3.2/html/doc/tutorials/introduction/linux_install/linux_install.html

相关文章:

  • 2022-01-26
  • 2021-06-06
  • 2021-09-20
  • 2021-06-26
  • 2021-09-03
  • 2022-01-02
  • 2022-12-23
  • 2021-05-19
猜你喜欢
  • 2021-11-26
  • 2021-12-12
  • 2021-09-26
  • 2022-02-01
  • 2021-09-21
  • 2022-01-13
相关资源
相似解决方案