Opencv :CMake in-source builds are not allowed

mac2026-09-20  9

 

 

 

root@ubuntu:/home/trust100/Downloads/opencv-3.4.1/build# cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. CMake Error at CMakeLists.txt:11 (message): FATAL: In-source builds are not allowed. You should create a separate directory for build files. -- Configuring incomplete, errors occurred! root@ubuntu:/home/trust100/Downloads/opencv-3.4.1# rm CMakeCache.txt root@ubuntu:/home/trust100/Downloads/opencv-3.4.1# cd build/ root@ubuntu:/home/trust100/Downloads/opencv-3.4.1/build# cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..

 

最新回复(0)