PDA

View Full Version : Qmysql



arjoshi
1st April 2011, 15:11
Dear QT'ians:

I have a question which seems to be a "burning" question as I realize in my search for its solution. It has been posted but the solutions have not been found - or atleast they are not working out for me. I tried http://www.pikopong.com/blog/2010/04/11/how-to-enable-mysql-support-in-qt-sdk-for-windows/
and http://www.lemon-factory.com/2010/04/24/qt-building-the-mysql-plugin-on-windows/
but during either of the cases I get the output shown in the attached snapshot.

Would appreciate any help.

ps: the entries for reimp appear twice because in the first case I did not have that mingw tool. I downloaded and then ran it and hence it has successfully executed during my second attempt. This is an explanation for the two entries.

high_flyer
1st April 2011, 15:20
Why go to some external links when its all in the documentation?
http://doc.qt.nokia.com/latest/sql-driver.html
Make sure you follow the instructions there.

arjoshi
1st April 2011, 15:44
Thanks. It worked but it just produced the debug versions. I need the release versions as well. I think in the documentation you provided me the link to, seems to have an incomplete command line. See the section
"How to Build the QMYSQL Plugin on Windows" I can't see the command after mysql.pr
Can you help me with the complete command so that I can have the release version as well?

high_flyer
1st April 2011, 15:49
I am not sure I follow.
Can you post what you see?(copy&paste)

arjoshi
1st April 2011, 15:58
This is all I see in the command supplied in the documentation:

qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro

I got success on running this but, it produced only debug version not the release.

high_flyer
1st April 2011, 16:09
try
make all
or
make release

arjoshi
1st April 2011, 16:21
it worked !! Thanks very much.