mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
8f4477281e
CMakeLists.txt: New BitKeeper file ``CMakeLists.txt'' bdb/CMakeLists.txt: New BitKeeper file ``bdb/CMakeLists.txt'' client/CMakeLists.txt: New BitKeeper file ``client/CMakeLists.txt'' dbug/CMakeLists.txt: New BitKeeper file ``dbug/CMakeLists.txt'' extra/CMakeLists.txt: New BitKeeper file ``extra/CMakeLists.txt'' extra/yassl/CMakeLists.txt: New BitKeeper file ``extra/yassl/CMakeLists.txt'' extra/yassl/taocrypt/CMakeLists.txt: New BitKeeper file ``extra/yassl/taocrypt/CMakeLists.txt'' heap/CMakeLists.txt: New BitKeeper file ``heap/CMakeLists.txt'' innobase/CMakeLists.txt: New BitKeeper file ``innobase/CMakeLists.txt'' libmysql/CMakeLists.txt: New BitKeeper file ``libmysql/CMakeLists.txt'' myisam/CMakeLists.txt: New BitKeeper file ``myisam/CMakeLists.txt'' myisammrg/CMakeLists.txt: New BitKeeper file ``myisammrg/CMakeLists.txt'' mysys/CMakeLists.txt: New BitKeeper file ``mysys/CMakeLists.txt'' regex/CMakeLists.txt: New BitKeeper file ``regex/CMakeLists.txt'' server-tools/CMakeLists.txt: New BitKeeper file ``server-tools/CMakeLists.txt'' server-tools/instance-manager/CMakeLists.txt: New BitKeeper file ``server-tools/instance-manager/CMakeLists.txt'' sql/CMakeLists.txt: New BitKeeper file ``sql/CMakeLists.txt'' sql/examples/CMakeLists.txt: New BitKeeper file ``sql/examples/CMakeLists.txt'' strings/CMakeLists.txt: New BitKeeper file ``strings/CMakeLists.txt'' tests/CMakeLists.txt: New BitKeeper file ``tests/CMakeLists.txt'' vio/CMakeLists.txt: New BitKeeper file ``vio/CMakeLists.txt'' win/Makefile.am: New BitKeeper file ``win/Makefile.am'' win/README: New BitKeeper file ``win/README'' win/build-vs71.bat: New BitKeeper file ``win/build-vs71.bat'' win/build-vs8.bat: New BitKeeper file ``win/build-vs8.bat'' win/build-vs8_x64.bat: New BitKeeper file ``win/build-vs8_x64.bat'' win/configure.js: New BitKeeper file ``win/configure.js'' zlib/CMakeLists.txt: New BitKeeper file ``zlib/CMakeLists.txt''
81 lines
2.9 KiB
Text
81 lines
2.9 KiB
Text
Windows building readme
|
|
======================================
|
|
|
|
----------------IMPORTANT----------------------------
|
|
This readme outlines the instructions for building
|
|
MySQL for Windows staring from version 5.1.
|
|
This readme does not apply to MySQL versions 5.0
|
|
or ealier.
|
|
-----------------------------------------------------
|
|
|
|
The Windows build system uses a tool named CMake to generate build files for
|
|
a variety of project systems. This tool is combined with a set of jscript
|
|
files to enable building of MySQL for Windows directly out of a bk clone.
|
|
The steps required are below.
|
|
|
|
Step 1
|
|
------
|
|
Download and install CMake. It can be downloaded from http://www.cmake.org.
|
|
Once it is installed, modify your path to make sure you can execute
|
|
the cmake binary.
|
|
|
|
Step 2
|
|
------
|
|
Download and install bison for Windows. It can be downloaded from
|
|
http://gnuwin32.sourceforge.net/packages/bison.htm. Please download using
|
|
the link named "Complete package, excluding sources". This includes an
|
|
installer that will install bison. After the installer finishes, modify
|
|
your path so that you can execute bison.
|
|
|
|
Step 3
|
|
------
|
|
Clone your bk tree to any location you like.
|
|
|
|
Step 4
|
|
------
|
|
From the root of your bk clone, execute the command: win\configure <options>.
|
|
The options right now are
|
|
|
|
WITH_INNOBASE_STORAGE_ENGINE Enable particular storage engines
|
|
WITH_PARTITION_STORAGE_ENGINE
|
|
WITH_ARCHIVE_STORAGE_ENGINE
|
|
WITH_BLACKHOLE_STORAGE_ENGINE
|
|
WITH_EXAMPLE_STORAGE_ENGINE
|
|
WITH_FEDERATED_STORAGE_ENGINE
|
|
WITH_INNOBASE_STORAGE_ENGINE
|
|
__NT__ Enable named pipe support
|
|
MYSQL_SERVER_SUFFIX=<suffix> Server suffix, default none
|
|
COMPILATION_COMMENT=<comment> Server comment, default "Source distribution"
|
|
MYSQL_TCP_PORT=<port> Server port, default 3306
|
|
CYBOZU
|
|
|
|
So the command line could look like:
|
|
|
|
win\configure WITH_INNOBASE_STORAGE_ENGINE WITH_PARTITION_STORAGE_ENGINE MYSQL_SERVER_SUFFIX=-pro
|
|
|
|
Step 5
|
|
------
|
|
From the root of your bk clone, execute one of the batch files to generate the type
|
|
of project files you desire.
|
|
|
|
For Visual Studio 8, do win\build-vs8.
|
|
For Visual Studio 7.1, do win\build-vs71.
|
|
|
|
We will support building with nmake in the near future.
|
|
|
|
Step 6
|
|
------
|
|
From the root of your bk clone, start your build.
|
|
|
|
For Visual Studio, simply execute mysql.sln. This will start the IDE and you can
|
|
click the build solution menu option.
|
|
|
|
Current issues
|
|
--------------
|
|
1. After changing configuration (eg. adding or removing a storage engine), it
|
|
may be necessary to clean the build tree to remove any stale objects.
|
|
|
|
2. To use Visual C++ Express Edition you also need to install the Platform SDK.
|
|
Please see this link: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
|
|
At step 4 you only need to add the libraries advapi32.lib and user32.lib to
|
|
the file "corewin_express.vsprops" in order to avoid link errors.
|