CMake error when building OpenCV - CMakeLists not match

前端 未结 2 1514
遥遥无期
遥遥无期 2021-01-02 11:02

I tried to build OpenCV 3.1.0 on my Raspberry Pi 2B. Unfortunetly, when I trying:

cmake -D CMAKE_BUILD_TYPE=RELEASE \\ -D CMAKE_INSTALL_PREFIX=/usr/lo

2条回答
  •  青春惊慌失措
    2021-01-02 11:29

    The reason is you have used two version of cmake to generate the Makefile.

    cd /path/to/opencv
    rm -rf build
    mkdir build
    cd build
    cmake ..
    

    that will be work fine.

    • Installing OpenCV 2.4.9 in Ubuntu 14.04 LTS http://www.samontab.com/web/2014/06/installing-opencv-2-4-9-in-ubuntu-14-04-lts/

提交回复
热议问题