Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2ad0c288
Commit
2ad0c288
authored
Nov 04, 2010
by
smenon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #57746: Win directory of source distribution - out-of-date files / support for new files
(win/README updated with some more changes)
parent
14c710a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
35 deletions
+29
-35
win/README
win/README
+29
-35
No files found.
win/README
View file @
2ad0c288
...
@@ -11,6 +11,7 @@ or ealier.
...
@@ -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)
...
@@ -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:
...
@@ -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.
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment