cmake 编译mysql8.4时候报:Please do not build in-source. Out-of source builds are highly recommended

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=R...

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

  • 发表于 2024-09-30 00:22
  • 阅读 ( 30 )

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
shitian
shitian

662 篇文章

作家榜 »

  1. shitian 662 文章
  2. 石天 437 文章
  3. 每天惠23 33 文章
  4. 小A 29 文章