It wants you to create a separate build directory (anywhere), and run cmake there. For example:
mkdir my_build_dir cd my_build_dir rm ../CMakeCache.txt cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/jinha/OCV/source
Note the .. in this example telling cmake where to look for the source.
In case you didn't remove CMakeCache.txt before building again, it will still show this error. So, please remember to delete CMakeCache.txt first before running cmake.
mysql 8.0.X编译需要boost_1_77_0.tar.bz2,通过mysql自动下载太忙,可以先把程序下载下来(https://archives.boost.io/release/1.77.0/source/boost_1_77_0.tar.bz2),
然后放到 -DWITH_BOOST 后面接的目录中即可。
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/data/mysql8 -DWITH_BOOST=/data/mysql-8.0.40
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!