I am new to cmake and I only use it to install opencv on my ubuntu linux. Here is the command I ran:
"cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/jinha/OCV/source"
Then it returns an error:
"FATAL: In-source builds are not allowed. You should create separate directory for build files."
My current directory, / home / jinha / OCV / build / opencv, contains the CMakefiles.txt file, so no problem. I tried changing the directory on my team, but they all raise the same error. I saw other answers on this issue, so every time I ran the command, I deleted the CMakeFiles folder and the CMakeCache.txt file, but none of them worked. Thanks.
linux opencv cmake
μ μ§ν
source share