Bug #53691 Need a build-vs10.bat for Microsoft Visual Studio C++ Express 2010
Submitted: 17 May 2010 5:53 Modified: 21 Jan 2014 10:35
Reporter: Roel Van de Paar Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1.46 (5.1 and later) OS:Windows
Assigned to: CPU Architecture:Any

[17 May 2010 5:53] Roel Van de Paar
Description:
Need a win/build-vs10.bat

Note bug #33907 which was requesting previous one.

How to repeat:
Try to compile with Visual Studio C++ Express 2010

Suggested fix:
Update the build scripts
[4 Mar 2011 16:20] Mattias Jonsson
So you basically need:
cmake -G "Visual Studio 10"

in that file?

btw, the README still refers to bk, not bzr...
[16 Jan 2014 12:46] Ståle Deraas
Posted by developer:
 
No longer using bat files for building.
[16 Jan 2014 21:15] Roel Van de Paar
Ståle, thanks. What is the new method?
[17 Jan 2014 9:58] Ståle Deraas
Roel,

You use cmake as Mattias has suggested above ( which I assume you already knew ...).
[21 Jan 2014 10:35] Roel Van de Paar
Ståle, so bug 33907 describes some issues which eventually resulted in a few lines batch file. Now there is no batch files at all anymore - so I wonder if there is a documented way to build that includes all needed steps?
[21 Jan 2014 11:06] Daniel Fischer
Roel, the batch file that was added for that bug contains one line of code apart from the license text:

  cmake -G "Visual Studio 9 2008"

The actual changes to make the build work happened elsewhere. 

Note that a build-vs10.bat *was* added to MySQL 5.1 in 2011. It looks like the developer who added it wasn't aware of this bug report.

In newer versions of MySQL we've removed the batch files; they all only contained one line similar to the one above. You can run cmake without arguments for a list of generators, although only the more recent Visual Studio ones will work for MySQL.

You can also run cmake without specifying a generator; in this case, it will attempt to determine a suitable default.

Alternatively, you can use cmake-gui and select the generator from a drop-down menu.
[21 Jan 2014 12:57] Ståle Deraas
Posted by developer:
 
http://dev.mysql.com/doc/internals/en/configuration-step.html