views:

33

answers:

1

Installing QT plain is no problem, but when you've got to recompile QT with a MySQL driver plugin? Confusing. And when I do run configure, Qt registers my MySQL driver, but when I attempt to run mingw32-make, this abomination shows up on my command prompt:

g++.exe: ....corelibcodecsqisciicodec.cpp: No such file or directory
g++.exe: no input files
mingw32-make[2]: *** [tmp/obj/release_shared/qisciicodec.o] Error 1
mingw32-make[2]: Leaving directory 'C:/Qt/2010.04/qt/src/tools/bootstrap'
mingw32-make[1]: *** [release Error 2]
mingw32-make[1]: Leaving directory 'C:/Qt/2010.04/qt/src/tools/bootstrap'
mingw32-make: *** [sub-tools-bootstrap-make_default-ordered] Error 2

Here are my specs:

  • Windows 7 Nokia's Open Source QT
  • Qt SDK for Windows (C:\Qt\2010.04\qt)
  • Linux MinGW Version 5.1.6 (C\Linux\MinGW)
  • MySQL5 with C++ files (C:\MySQL5)

And my environmental variables:

QMAKESPEC    win32-g++
QTDIR        C:\Qt\2010.04\qt
Path         C:\Linux\MinGW\bin;%C:\Linux\Cygwin\bin;C:\MySQL5\bin 

These sites each have their own method of doing this. I tried following them, but failed
http://www.qtcentre.org/wiki/index.php?title=Building_the_QMYSQL_plugin_on_Windows_using_mingw
http://jeethurao.com/blog/?p=18.

Assist me in allowing me to use the MySQL driver plugin.

Thanks for your time.

A: 

I just ended up installing the PyQT driver @ http://www.riverbankcomputing.co.uk/software/pyqt/download

This executable has MySQL support out of the box. If mysql does not work, your application is the problem.

"The issue is that you either have to use the addLibraryPath method or create a QCoreApplication instance before your first call to loading a database"

Danny Hatt