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