From: Sunanda Menon Date: November 11 2010 12:33pm Subject: bzr commit into mysql-5.5-bugteam branch (sunanda.menon:3120) List-Archive: http://lists.mysql.com/commits/123600 Message-Id: <20101111123359.15152.qmail@astra04> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0558006946==" --===============0558006946== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline #At file:///net/helheim/store/bteam/bzr/mysql-bug57746-5.5/ based on revid:sunanda.menon@stripped 3120 Sunanda Menon 2010-11-11 #57746: Win directory of source distribution - out-of-date files / support for new files ( Based on review comments) modified: win/README === modified file 'win/README' --- a/win/README 2010-11-04 10:11:43 +0000 +++ b/win/README 2010-11-11 12:32:12 +0000 @@ -1,114 +1,8 @@ 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 bzr clone. -For relevant information, please refer to http://forge.mysql.com/wiki/CMake -The steps required are below. - -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 3 ------- -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. - -(As an 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 ------- -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 ------- -From the root of your installation directory use cmake . -L to see the -various configuration parameters. - -So the command line could look like: - -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 ------- - -From the root of your installation directory/bzr clone, you can -use cmake to compile the sources. Use cmake --help when necessary. -Before you start building the sources, please remove the old build area -created from an earlier run and start afresh. - -C:\> del bld -C:\> md bld -C:\> cd bld -C:\> cmake .. -G "target name" -DBUILD_CONFIG=mysql_release - - -For Example: -To generate the Win64 project files using Visual Studio 9, you would run -cmake .. -G "Visual Studio 9 2008 Win64" - -Other target names supported using CMake 2.6 patch 4 are: - - Visual Studio 7 "Visual Studio 7 .NET 2003" - Visual Studio 8 "Visual Studio 8 2005" - Visual Studio 8 (64 bit) "Visual Studio 8 2005 Win64" - Visual Studio 9 "Visual Studio 9 2008" - Visual Studio 9 (64 bit) "Visual Studio 9 2008 Win64" - -For generating project files using Visual Studio 10, you need CMake 2.8 -or higher and corresponding target names are - Visual Studio 10 "Visual Studio 10" - Visual Studio 10 (64 bit) "Visual Studio 10 Win64" - -Step 7 ------- -From the root of your bzr clone, start your build. - -For Visual Studio, execute mysql.sln. This will start the IDE -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 --------------- -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 5 you only need to add the libraries advapi32.lib and user32.lib to -the file "corewin_express.vsprops" in order to avoid link errors. +For relevant information and/or for building binaries from source distribution, +please refer to http://forge.mysql.com/wiki/CMake --===============0558006946== MIME-Version: 1.0 Content-Type: text/bzr-bundle; charset="us-ascii"; name="bzr/sunanda.menon@stripped" Content-Transfer-Encoding: 7bit Content-Disposition: inline # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: sunanda.menon@stripped\ # qlfj5ae61ua28hre # target_branch: file:///net/helheim/store/bteam/bzr/mysql-bug57746-\ # 5.5/ # testament_sha1: 4acc663f73cdb41ceddacc864b3a7c8c704d6391 # timestamp: 2010-11-11 13:33:59 +0100 # base_revision_id: sunanda.menon@stripped\ # d1bwo73vwdrcpwt3 # # Begin bundle IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWaiHda8AAYrfgCAQWGf/938C GIC////wUAPZbu92922vTUy9e8EoiATQwCZGmjU9JtE1P1RkH6kMgSkmpoyn5E9FPaUz1Aag0MjR 6ExMAaJkJiTAnqZE0aGIDQGQ0AEimo0Em1G1MnqDEABoAAGgSUTCZEeiU9kKe9RTyh+qDT1GgDQZ KQXbfnG/xUXZfigRri5BMyCtmi4Klcb14U3bpGRrYOKPMzrVlRo7Nu5k8+P2mBMNMnt+3aN7cr3L qRYMkg4cdaBs9We+vV+e6MVCu+/KuZr5KIcTn7wJTyht0WkR0373qO7zQviNVYiCqKlYcbI5GxVa JBHipiJH3xYgsEg9t0oDUyjbRMhMGmSklYQNQPS1IRF9KDKW3oCcBkDyQEhFY59QAg3TB6VpMvIS b8ytDX0P8NnShdbgrS7DY043idt3DbhT9QJgto7Mt7CiPGUE5ywuHgOe0uk9Bjck8nlKNY4SHydC ukpsnvSjgsRv0pGGNhi8KU0DBYBp1IkWTvCSAwaJhMaAoyS1wGsvCM32w9/qzCoSSY5DuE2Nlcrg 7duEdCip84q5VQm63oVi5mpVz44ncsAnItH69tKLyxniQiqulylAm3YtVDgVjEypWTaYB4uqFs67 MYxkBbofUbaGBHIRuNoeB6UH4F7HPnt1LSYrblk4iHo9EqKRNe++nu+/ppDHvZI/rYHf2cYgmh4i f78g0gc/alwIrQV7gy9lKOwsBZ9I0G6utxtUZzPIUgOVDY/O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