CMake Error at CMakeLists.txt:11


cmake 安裝https://cmake.org/files/v3.15/

sudo apt-get install build-essential
wget http://www.cmake.org/files/v3.5/cmake-3.5.2.tar.gz
tar xf cmake-3.5.2.tar.gz
cd cmake-3.5.2
./configure
make

sudo apt-get install checkinstall
sudo checkinstall

sudo make install

cmake --version

  

 

執行cmake的時候出現下列錯誤

CMake Error at CMakeLists.txt:11 (message):
  
 
  FATAL: In-source builds are not allowed.
 
         You should create separate directory for build files.
 
 
 
-- Configuring incomplete, errors occurred!

  則安裝后先不要cmake

按照下列安裝

$ cd opencv
 
$ mkdir build
 
$ cd build
 
$ cmake ..
 
$ make -j 10

  替換安裝的版本

sudo make install

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM