summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorunknown <monty@mysql.com/narttu.mysql.fi>2007-02-23 22:48:15 +0200
committerunknown <monty@mysql.com/narttu.mysql.fi>2007-02-23 22:48:15 +0200
commit338cb6a83644debcb4fae9a8bdd8880294b30383 (patch)
tree9a321f9e0de20010f1b6404c37f8f704e33711a6 /win
parent069362205ccf28a24bc1d9f45d05cccfc1c40cac (diff)
downloadmariadb-git-338cb6a83644debcb4fae9a8bdd8880294b30383.tar.gz
Fixed compilations problems and warnings on windows
extra/yassl/include/openssl/ssl.h: Move things up to avoid problems with defines in winsock2 extra/yassl/include/socket_wrapper.hpp: Don't include winsock2.h twice include/config-win.h: Use winsock2.h instead of winsock.h (winsock2.h must be included before windows.h and will automaticly include windows.h) include/mysql.h: Use winsock2.h libmysqld/examples/builder-sample/emb_samples.cpp: Use winsock2.h server-tools/instance-manager/IMService.cpp: Use winsock2.h sql/item_strfunc.cc: Remove duplicate include sql/lex.h: Fixed conflict with external GROUP define sql/net_serv.cc: winsock.h is already included in my_global.h sql/sql_class.cc: Fixed compiler warning on windows sql/sql_table.cc: Fixed compiler warning sql/sql_yacc.yy: Fixed conflict with external GROUP define sql/udf_example.c: Use winsock2 instead of winsock.h win/README: Updated readme
Diffstat (limited to 'win')
-rw-r--r--win/README27
1 files changed, 19 insertions, 8 deletions
diff --git a/win/README b/win/README
index d1092c3e969..b52e8134aba 100644
--- a/win/README
+++ b/win/README
@@ -13,13 +13,21 @@ 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
+Step 1:
+-------
+
+Install a Windows C++ compiler. If you don't have one, you can use
+the free compiler "Visual C++ 2005 express edition", which from Cmake
+point of view is same as Visual studio 8:
+http://msdn.microsoft.com/vstudio/express/
+
+Step 2
------
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
+Step 3
------
Download and install bison for Windows. It can be downloaded from
http://gnuwin32.sourceforge.net/packages/bison.htm. Please download using
@@ -27,11 +35,15 @@ 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
+(Alternative you, can take the sql_yacc.yy and sql_yacc.h files from a
+matching mysql tar distribution and drop them into the sql directory just
+before you start the build)
+
+Step 4
------
Clone your bk tree to any location you like.
-Step 4
+Step 5
------
From the root of your bk clone, execute the command: win\configure <options>.
The options right now are
@@ -42,7 +54,6 @@ The options right now are
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"
@@ -53,17 +64,17 @@ So the command line could look like:
win\configure WITH_INNOBASE_STORAGE_ENGINE WITH_PARTITION_STORAGE_ENGINE MYSQL_SERVER_SUFFIX=-pro
-Step 5
+Step 6
------
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 8 (or Visual C++ 2005 express edition), 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
+Step 7
------
From the root of your bk clone, start your build.