I have problems with QMYSQL Driver!
-
Hello!
I know there are many threads for this, but I tried them all, and I failed to install the QMYSQL Driver. Can someone help me via Team Viewer to instal the driver?
Thanks,
KaLoo -
I don't think you find here someone who will do it. Maybe better will be to describe your problem here? Also please double check forum search for your problem, maybe you've missed some threads with your problem (there are a LOT of mysql driver threads here)
-
-
Do you have a file mysql.pro?
-
I made
"qmake "INCLUDEPATH+=%mySQLDIR%\include" "LIBS+=%mySQLDIR%\lib\opt\libmysql.lib" -o Makefile mysql.pro" and "mingw32-make", I think it was a success. What should I do next? -
I am not understanding your command line notation, especially with your "
If you write a command line in this forum, you should embrace with '@'like this sample line
@
qmake test.pro
@
Just press on quote on my reply in order to see how to do.The example given will start qmake with an input file called "test.pro".
I assume that you try to start qmake with mysql.pro as an input file. If the file does not exist, you do not have an input file. That is the reason why was asking the question.
So, do you have mysql.pro as an input file? -
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?
-
Yes, I have mysql.pro now, and there is no output error message, but I can`t find the 4 files...
-
What do you have in your mysql.pro?
-
@QT += core
QT += sqlQT -= gui
TARGET = mysql
CONFIG += console
CONFIG -= app_bundleTEMPLATE = app
SOURCES += main.cpp
@but I`m guessing that must be other things in the file...
-
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. -
I need a good tutorial for helping me to make the QMYSQL Driver for Qt 2.2 ( latest version )
-
did you try "these":http://www.lmgtfy.com/?q=qmsql+tutorial+
-
Yes... I tried... I know how to use google...
-
Sorry, than I cannot help any further.
Good luck! -
Thanks for your help.
At the begin there is no mysql folder, but I made a new project named mysql and put it in the sqldrives. That is what should I do? Or I did it wrong?
-
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.
-
Andre I think I found the mysql.pro through the source files. I
ll try tomorrow to make the QMYSQL Driver. If I
ll have any problems, I`ll make a reply tomorrow.