Bug #57746: Win directory of source distribution - out-of-date files / support for new files
(win/README updated with some more changes)
This commit is contained in:
parent
812827e669
commit
0752b54a49
62
win/README
62
win/README
@ -11,6 +11,7 @@ or ealier.
|
|||||||
The Windows build system uses a tool named CMake to generate build files for
|
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
|
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 bzr clone.
|
files to enable building of MySQL for Windows directly out of a bzr clone.
|
||||||
|
For relevant information, please refer to http://forge.mysql.com/wiki/CMake
|
||||||
The steps required are below.
|
The steps required are below.
|
||||||
|
|
||||||
Step 1:
|
Step 1:
|
||||||
@ -41,53 +42,42 @@ before you start the build)
|
|||||||
|
|
||||||
Step 4
|
Step 4
|
||||||
------
|
------
|
||||||
Clone your bzr tree to any location you like.
|
One of the nice CMake features is "out-of-source" build support, which
|
||||||
|
means not building in the source directory, but in dedicated build
|
||||||
|
directory. This keeps the source directory clean and allows for more than
|
||||||
|
single build tree for the same source tree (e.g debug and release, 32 and
|
||||||
|
64 bit etc). We'll create subdirectory "bld" in the source directory for
|
||||||
|
this purpose. Clone your bzr tree to any location you like.
|
||||||
|
|
||||||
Step 5
|
Step 5
|
||||||
------
|
------
|
||||||
From the root of your installation directory, execute the command:
|
From the root of your installation directory use cmake . -L to see the
|
||||||
|
various configuration parameters.
|
||||||
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
|
|
||||||
__NT__ Enable named pipe support
|
|
||||||
WITHOUT_ATOMICS Do not use atomic instructions
|
|
||||||
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 Default character set is UTF8
|
|
||||||
EMBED_MANIFESTS Embed custom manifests into final exes, otherwise VS
|
|
||||||
default will be used. (Note - This option should only be
|
|
||||||
used by MySQL AB.)
|
|
||||||
WITH_EMBEDDED_SERVER Configure solution to produce libmysqld.dll
|
|
||||||
and the static mysqlserver.lib
|
|
||||||
|
|
||||||
So the command line could look like:
|
So the command line could look like:
|
||||||
|
|
||||||
win\configure WITH_INNOBASE_STORAGE_ENGINE WITH_PARTITION_STORAGE_ENGINE MYSQL_SERVER_SUFFIX=-pro
|
cmake .. -G "target" -DWITH_INNOBASE_STORAGE_ENGINE=1
|
||||||
|
|
||||||
|
The recommended way of configuring would be to use -DBUILD_CONFIG=mysql_release
|
||||||
|
to build binaries exactly the same as the official MySQL releases.
|
||||||
|
|
||||||
Step 6
|
Step 6
|
||||||
------
|
------
|
||||||
|
|
||||||
From the root of your installation directory/bzr clone, you can
|
From the root of your installation directory/bzr clone, you can
|
||||||
use cmake to compile the sources.Use cmake --help when necessary.
|
use cmake to compile the sources. Use cmake --help when necessary.
|
||||||
Before you run cmake with changed settings (compiler, system
|
Before you start building the sources, please remove the old build area
|
||||||
libraries, options, ...), make sure you delete the CMakeCache.txt
|
created from an earlier run and start afresh.
|
||||||
generated by your previous run.
|
|
||||||
|
C:\> del bld
|
||||||
|
C:\> md bld
|
||||||
|
C:\> cd bld
|
||||||
|
C:\> cmake .. -G "target name" -DBUILD_CONFIG=mysql_release
|
||||||
|
|
||||||
C:\>del CMakeCache.txt
|
|
||||||
C:\>cmake . -G "target name"
|
|
||||||
|
|
||||||
For Example:
|
For Example:
|
||||||
To generate the Win64 project files using Visual Studio 9, you would run
|
To generate the Win64 project files using Visual Studio 9, you would run
|
||||||
cmake . -G "Visual Studio 9 2008 Win64"
|
cmake .. -G "Visual Studio 9 2008 Win64"
|
||||||
|
|
||||||
Other target names supported using CMake 2.6 patch 4 are:
|
Other target names supported using CMake 2.6 patch 4 are:
|
||||||
|
|
||||||
@ -99,8 +89,8 @@ Other target names supported using CMake 2.6 patch 4 are:
|
|||||||
|
|
||||||
For generating project files using Visual Studio 10, you need CMake 2.8
|
For generating project files using Visual Studio 10, you need CMake 2.8
|
||||||
or higher and corresponding target names are
|
or higher and corresponding target names are
|
||||||
Visual Studio 10
|
Visual Studio 10 "Visual Studio 10"
|
||||||
Visual Studio 10 Win64
|
Visual Studio 10 (64 bit) "Visual Studio 10 Win64"
|
||||||
|
|
||||||
Step 7
|
Step 7
|
||||||
------
|
------
|
||||||
@ -109,6 +99,10 @@ From the root of your bzr clone, start your build.
|
|||||||
For Visual Studio, execute mysql.sln. This will start the IDE
|
For Visual Studio, execute mysql.sln. This will start the IDE
|
||||||
and you can click the build solution menu option.
|
and you can click the build solution menu option.
|
||||||
|
|
||||||
|
Alternatively, you could start the build from command line as follows
|
||||||
|
|
||||||
|
devenv mysql.sln /build relwithdebinfo
|
||||||
|
|
||||||
Current issues
|
Current issues
|
||||||
--------------
|
--------------
|
||||||
1. After changing configuration (eg. adding or removing a storage engine), it
|
1. After changing configuration (eg. adding or removing a storage engine), it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user