[Qt-interest] configuring Qt with MySQL
Duane Hebert
spoo at flarn.com
Thu May 14 16:21:31 CEST 2009
>Thanks Tibor, but I use Qt with Visual studio and not MinGW.
Add the bin folder to windows path. Check the help and follow instructions on building the
plugin dll. In my case, I use the command prompt for Qt (sets up the environment etc.) then
I go to the src/plugins/sqldrivers/mysql directory and run this batch:
qmake -o Makefile "INCLUDEPATH+=D:\MySQL\include" "LIBS+=D:\MySQL\lib\opt\libmysql.lib" mysql.pro
nmake -f Makefile.Release
nmake -f Makefile.Debug
It builds my plugin for both release and debug. For mysql, it needs to know where the legal version of the libmysql.dll is located
though.
HTH
More information about the Qt-interest-old
mailing list