I have problems with QMYSQL Driver!
-
What should you do after building mysql plugin?
Hm. Maybe use it? -
Where I did wrong?
!http://img641.imageshack.us/img641/1700/unledvfc.png!I can`t find
- libqsqlmysql4.a
- libqsqlmysqld4.a
- qsqlmysql4.dll
- qsqlmysqld4.dll
-
[quote author="kaloo" date="1307294661"]
"qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro"it says mysql.pro don`t exist. What shoul I do?
[/quote]your last statement was the reason to ask my question, if mysql.pro exists. I guess you added this file now. Your output does not show the error message anymore. Is that right?
-
typically you would have also the following statements @
INCLUDEPATH ...
LIBS ...
@
I do not know the details of qmake, but possibly you can do as you did.Maybe should do a
@
mingw32-make clean
@
to clean up the directories and retry.
Unfportunately, I cannot give more or better advice, since I am not using mingw on windows. -
did you try "these":http://www.lmgtfy.com/?q=qmsql+tutorial+
-
There is (or at least should be) a mysql.pro file in your Qt sources. If there isn't, you either are not looking hard enough, or you have an incomplete installation of the Qt sources. The former is more likely. Just making up a .pro file yourself is obviously not going to result in a valid project that is going to help you build the drivers.
-
@kallo here are the steps to build mysql plug-in driver ( and I assure you it works :-) ):
- download mysql-connector-c-noinstall-6.0.2-win32 binary package from mysql downloads.
- open %QTDIR%\src\plugins\sqldrivers\mysql\mysql.pro in QtCreator
- add LIBS and INCLUDEPATH in mysql.pro to match with your mysql-connector-c-noinstall-6.0.2-win32 path
- after mysql.pro is succesfully build, copy the qsqlmysqld4.dll + qsqlmysql4.dll in %QTDIR%\Desktop...etc...\plugins\sqldrivers (there should already be qsqlite4.dll)
- copy libmysql.dll in %QTDIR%\Desktop...etc...\bin
that's all