
Originally Posted by
darksaga
it's just the QODBC & QSQLITE driver that the driver combobox shows if i run the demo.
i used the QT += sql flag from the start in my project....
.
You qt4 installation dont have mysql ... otherwise on %QDIR%\demos\sqlbrowser\release textfield driver mysql is visible!
Move your visual compiler to Trash if visual studio is to hard to handle .. and begin on mingw compiler http://www.mingw.org/ ....
After you have get compiler.... and minimal sys.. (like a linux console emulator you can compile all)
cd dir libmysql.lib
reimp -d libmysql.lib
dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a
dlltool --input-def libmysql.def --dllname libmysql.dll --output-lib c:\MingW\lib\libmysql.a
reimp -d libmysql.lib
dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a
dlltool --input-def libmysql.def --dllname libmysql.dll --output-lib c:\MingW\lib\libmysql.a
To copy to clipboard, switch view to plain text mode
now put mysql include to mingw include dir and run..
version qt4.3 ...
configure -qt-sql-mysql -qt-sql-odbc -qt-sql-sqlite -qt-gif -qt-tif -qt-libpng -qt-libjpeg
make
configure -qt-sql-mysql -qt-sql-odbc -qt-sql-sqlite -qt-gif -qt-tif -qt-libpng -qt-libjpeg
make
To copy to clipboard, switch view to plain text mode
cd to %QDIR%\demos\sqlbrowser\release and you can see mysql driver work...
Visual studio have to much option and button ... and confusion ...
I have all two compiler on two pc ... but 90% i work only on mingw ... is more easy...
Bookmarks