Doc: Remove section on how build the MySQL driver for MinGW users

The section is clearly outdated. It references MinGW from mingw.org, which
we don't support anymore. With a more modern MinGW you can just use the
recipe to link against the prebuilt binaries the same way we do describe
for MSVC.

Task-number: QTBUG-17268
Change-Id: I15b96fd328605b60d1494a703b9005e2c16aea39
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
Kai Koehne 2014-01-21 15:33:40 +01:00 committed by The Qt Project
parent 81e69ffdba
commit c071b165a3

View File

@ -175,73 +175,6 @@
built in release mode only. If you are expecting a debug version
to be built as well, don't use the \c{"-o Makefile"} option.
\section3 How to build the MySQL driver for MinGW users
The following steps have been used successfully for WinXP SP3. In
this example, Qt 4.6.2 is shown.
\list
\li Download the following components:
\list
\li \c{MinGW-5.1.6.exe}
\li \c{mingw-utils-0.3.tar.gz}
\li Qt sources, e.g. \c{qt-everywhere-opensource-src-4.6.2.zip}
\li \c{mysql-5.1.35-win32.msi}
\endlist
\li Install \c{MinGW-5.1.6.exe} in, e.g. \c{C:\MinGW}.
\li Extract \c{mingw-utils-0.3.tar.gz} into, e.g. \c{C:\MinGW}.
\li Add the path for \c{MinGW-5.1.6.exe} to your \c{PATH} variable,
e.g. \c{C:\MinGW\bin;}
\li Extract the Qt sources, (\c{qt-everywhere-opensource-src-4.6.2.zip}),
into, e.g. \c{C:\Qt}.
\li Add the path for the eventual Qt binary to your \c{PATH} variable,
e.g. \c{C:\Qt\4.6.2\bin;}.
\li Install MySQL (\c{mysql-5.1.35-win32.msi}), customizing the
components. Select only the headers and libraries. Install in,
e.g. \c{C:\MySQL\MySQL51}.
\li Open the DOS prompt, go to \c{C:\MySQL\MySQL51\lib\opt}, and run
the following commands:
\list
\li \c{reimp -d libmysql.lib}
\li \c{dlltool -k -d libmysql.def -l libmysql.a}
\endlist
\li Open the DOS prompt, go to \c{C:\Qt\4.6.2} and run the following commands:
\list
\li \c{configure.exe -debug-and-release -platform win32-g++ -qt-sql-mysql
-l mysql -I C:\MySQL\MySQL51\include -L C:\MySQL\MySQL51\lib\opt}
\li \c{mingw32-make sub-src}
\endlist
This step takes a long time.
\li Open the DOS prompt, go to
\c{C:\Qt\4.6.2\src\plugins\sqldrivers\mysql} and run the
following command:
\list
\li \c{qmake "INCLUDEPATH+=C:/MySQL/MySQL51/include" "LIBS+=-L. mysql" mysql.pro}
\endlist
\li Now the following libraries are ready in \c{C:\Qt\4.6.2\plugins\sqldrivers}.
\list
\li \c{libqsqlmysql4.a}
\li \c{libqsqlmysqld4.a}
\li \c{qsqlmysql4.dll}
\li \c{qsqlmysqld4.dll}
\endlist
To use the SDK and QtCreator directly, copy these libraries to
your \c{C:\Qt\...\qt\plugins\sqldrivers\}, and copy
\c{C:\MySQL\MySQL51\lib\opt\libmysql.dll} to your \c{C:\Qt\...\qt\bin\}.
\endlist
\target QOCI
\section2 QOCI for the Oracle Call Interface (OCI)