Compiling and debugging MySQL source code on Windows7 with vs2013

Source: Internet
Author: User
Tags delete cache

Necessary Preparation conditions:

1) Os:windows7 + VS2013
2) Latest MySQL source (https://github.com/mysql/mysql-server)
3) Perl Tool:activeperl-5.16.3.1604-mswin32-x64-298023.msi "need to configure environment variables"
4) cmake:cmake-3.5.0-win32-x86. exe "need to configure environment variables"
5) Bison:bison-2.4.1-setup.exe "Need to configure environment variables"

6) boost_1_59_0 (source dependent library) "library file is very big >200m"

Use CMake to open the MySQL source directory, then configure & Generate "This will definitely error, and then according to the specific error, find data to solve"

The main problems encountered:

Cl.exe can't find a workaround add an environment variable
No Cmake_cxx_compiler in ' File->delete Cache '
Boost1.59 referencing the path to the source file

Using CMake Build C + + Project

Once the build is successful, clicking on the "Open Project" button will automatically open the solution with vs2013

then re-compile the entire solution "mysql-debug-tools-mysql-server-5.7-vs2013" with VS

Compiling and debugging MySQL source code on Windows7 with vs2013

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.