Added:
trunk/BUILD.win
Modified:
trunk/README.source
trunk/connector-odbc.vpj
Log:
ENH: Added some doc.
Added: trunk/BUILD.win
===================================================================
--- trunk/BUILD.win 2006-11-02 01:37:19 UTC (rev 645)
+++ trunk/BUILD.win 2006-11-03 15:56:36 UTC (rev 646)
@@ -0,0 +1,157 @@
+MySQL Connector/ODBC
+BUILD
+======================================================
+
+DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT
+
+Here is what one dev (me) does to build on MS Windows.
+
+Environment
+-----------
+
+MS Windows XP
+MySQL v5.0
+Visual Studio 2003
+Qt v4
+
+MS Windows XP
+-------------
+
+Get all the latest updates.
+
+MySQL v5.0
+----------
+
+Install the binary distro. You only need the dev stuff
+but installing complete client and possibly server
+would make sense.
+
+Visual Studio 2003
+------------------
+
+VS 2005 may work but you may have special issues to
+deal with.
+
+Qt v4
+-----
+
+Any v4 of Qt should work. One needs to use the source
+install. You must tweak the Qt make spec file
+BEFORE building Qt in order to get Qt to use the same
+link options as is used by MySQL client. This is done
+as follows;
+
+cd QTDIR\mkspecs\win32-msvc.net
+edit qmake.conf
+
+Change following lines...
+
+QMAKE_CFLAGS_RELEASE = -O2 -MD
+QMAKE_CFLAGS_DEBUG = -Zi -MDd
+
+to...
+
+QMAKE_CFLAGS_RELEASE = -O2 -MT
+QMAKE_CFLAGS_DEBUG = -Zi -MTd
+
+Now build qt as follows;
+
+cd QTDIR
+configure -static
+make
+
+Environment Variables
+---------------------
+
+You need to set the following environment variables
+BEFORE building C/ODBC and preferrably before
+building Qt.
+
+QTDIR
+QMAKESPEC
+PATH
+MYODBC_LOG
+MYSQL_DIR
+MYWIX_DIR
+
+QMAKESPEC
+---------
+
+This tells Qt where to get its default build
+options. For example;
+
+SET QMAKESPEC=win32-msvc.net
+
+QTDIR
+-----
+
+This is a convenience var for setting our path etc.
+For example;
+
+SET QTDIR=C:\Qt\qt-win-commercial-src-4.1.3
+
+PATH
+----
+
+We want Qt command-line tools to be in PATH. For
+example;
+
+SET PATH=C:\Qt\qt-win-commercial-src-4.1.3\bin;%PATH%;
+
+MYODBC_LOG
+----------
+
+This is where the driver will write its trace/log
+info. For example;
+
+SET MYODBC_LOG=C:\MYODBC.txt
+
+MYSQL_DIR
+---------
+
+This is used to tell the C/ODBC build where the MySQL
+client lib and include files are. NOTE: This should be
+the shortened (8.3) name (using ~). For example;
+
+SET MYSQL_DIR=C:\PROGRA~1\MySQL\MYSQLS~1.0
+
+MYWIX_DIR
+---------
+
+This tells the C/ODBC scripts where the wix stuff is.
+The wix stuff is used when building an MSI distribtion
+(GUI installer). For example;
+
+SET MYWIX_DIR=C:\SandBox\MySQL\installer-wix
+
+QMake Spec. Files
+-----------------
+
+Please review the *.pri and *.pro files in the root
+dir of C/ODBC sources to ensure that the desired
+options are set. The defaults are probably ok.
+
+These files are used by Qt's qmake to create either
+command-line make files or IDE project files.
+
+CommandLine Build
+-----------------
+
+From the command-line do the following;
+
+build
+
+CommandLine Install
+-------------------
+
+You can install/upgrade/uninstall from the
+command-line using the following commands;
+
+install
+uninstall
+upgrade
+
+======================================================
+Enjoy!
+MySQL Connectors Team
+
Modified: trunk/README.source
===================================================================
--- trunk/README.source 2006-11-02 01:37:19 UTC (rev 645)
+++ trunk/README.source 2006-11-03 15:56:36 UTC (rev 646)
@@ -30,6 +30,9 @@
| Upgrade | Upgrades an existing install. |
+-----------+----------------------------------------+
+Please see BUILD file for details on building for your
+platform.
+
======================================================
Enjoy!
MySQL Connectors Team
Modified: trunk/connector-odbc.vpj
===================================================================
--- trunk/connector-odbc.vpj 2006-11-02 01:37:19 UTC (rev 645)
+++ trunk/connector-odbc.vpj 2006-11-03 15:56:36 UTC (rev 646)
@@ -70,6 +70,7 @@
Name="Other Files"
Filters="">
<F N="Build.bat"/>
+ <F N="BUILD.win"/>
<F N="ChangeLog"/>
<F N="CMakeLists.txt"/>
<F N="common.pri"/>
| Thread |
|---|
| • Connector/ODBC 5 commit: r646 - trunk | pharvey | 3 Nov |