必要准备条件:

1)OS:windows7 + VS2013
2)最新mysql 源码(https://github.com/mysql/mysql-server
3)perl tool:ActivePerl-5.16.3.1604-MSWin32-x64-298023.msi【需要配置环境变量】
4)Cmake:cmake-3.5.0-win32-x86 .exe【需要配置环境变量】
5)Bison:bison-2.4.1-setup.exe【需要配置环境变量】

6)boost_1_59_0(源码依赖库)【库文件很大>200M吧】

使用Cmake 打开mysql源码目录,然后配置&生成【这其中肯定会报错,然后根据具体的错误提示,找资料解决】

主要遇到的问题:

cl.exe 找不到   解决办法  添加环境变量
No cmake_cxx_compiler  在  ‘’File ->Delete Cache“
Boost1.59  引用到源码文件的路径

 

使用 CMake Build c++ Project

在windows7上用vs2013编译和调试mysql源代码

 

 生成成功后,点击【Open Project】 按钮,会自动用vs2013 打开解决方案

然后重新用vs编译整个解决方案 【mysql-debug-tools-mysql-server-5.7-vs2013】

在windows7上用vs2013编译和调试mysql源代码

相关文章:

  • 2021-11-08
  • 2021-03-31
  • 2022-12-23
  • 2022-01-22
  • 2021-07-01
  • 2021-12-20
  • 2021-07-13
猜你喜欢
  • 2021-11-07
  • 2021-12-26
  • 2021-07-24
  • 2021-10-04
  • 2021-08-22
  • 2022-12-23
相关资源
相似解决方案