[Qt-interest] mySQL plugin
mmiacca
mmiacca at invap.com.ar
Mon Nov 16 20:42:58 CET 2009
First you need download the c connector for mysql, the recent is
"mysql-connector-c-6.0.2-win32", install it and observe the destination
folder.
After install i:
a) copy the header folder from the destination of the instalation to
c:\qt\qtsdk-2009.04\qt\src\plugins\sqldrivers\mysql.
b) copy libmysql.lib from the destination of the instalation to
c:\qt\qtsdk-2009.04\qt\src\plugins\sqldrivers\mysql.
Open a qt command prompt and:
a) qmake "INCLUDEPATH+=.\\" "LIBS+=.\\libmysql.lib" mysql.pro
b) nmake or mingw32-make (mingw32-make is installed with open source of qt)
c) nmake install or mingw32-make install (this copy the dll to the
c:\qt\qtsdk-2009.04\qt\plugins\sqldrivers
d)You get qsqlmysql4.dll
For the release:
a) qmake "INCLUDEPATH+=.\\" "LIBS+=.\\libmysql.lib" mysql.pro
b) nmake or mingw32-make release (mingw32-make is installed with open
source of qt)
c) nmake install or mingw32-make install (this copy the dll to the
c:\qt\qtsdk-2009.04\qt\plugins\sqldrivers
d)You get qsqlmysql4d.dll
d) REMEMBER, if your proyect is builded in debug mode the mysql dll must
be build in debug mode, if your proyect is builded in release mode the
mysql dll must be in release mode.
hope this help
Shaun van Wyngaard (Home) escribió:
> I saw another posting on installing a plugin for Qt, and not wanting
> to steal the post, I have to ask a similar question.
>
> Having installed the SDK 2009.04, I now want to install the mysQL
> plugin, but everything I have read so far leads me to believe that the
> people manually built the libraries themselves using qmake/make/nmake.
> (Sorry, I really don't know what is happening here, as I say I did
> mine through the SDK and this did everything for me)
>
> I now want to install the mySQL plugin, and so is it as simple as
> going to the directory in question and just running qmake. then nmake?
> Not knowing too much about plugins, it seems it is the dll file that
> is needed, so why not just download it and place it in the correct
> directory?
>
> Please forgive my ignorance on this subject matter, I know about
> database programming, just not how plugins work.
>
> Shaun
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091116/96d60adf/attachment.html
More information about the Qt-interest-old
mailing list