Scroll the webpage down until you see a section called "Similar Threads". Click and enjoy.
Scroll the webpage down until you see a section called "Similar Threads". Click and enjoy.
i tried everything mentioned on the other threads except clearing the cache before. (tried to copy the sqldriver-folder into the app-folder, even the whole plugins-folder didn't change anything)
but i don't think clearing would help since i'm able to use the driver as long as it is in qt/plugins/sqldrivers/ .
i just don't get what is wrong :/
structure:
1st try:
/App/app.exe
/App/QtCore4.dll
/App/QtGui4.dll
/App/QtNetwork4.dll
/App/QtSql4.dll
/App/QtWebkit4.dll
/App/QtXmlPatterns4.dll
/App/qsqlmysql4.dll
2nd try:
/App/app.exe
.
.
.
/App/sqldrivers/qsqlmysql4.dll
3rd try:
/App/app.exe
.
.
.
/App/plugins/sqldrivers/qsqlmysql4.dll
everytime i got the message that the driver is missing, if its also removed from the qt-path
Then read the first of "similar threads" careful! First answer is your solution. You are missing an important library for MySQL (and this was a BIG hint...)!
you mean the libmysql.dll right?
sorry, i just forgot to mention it, but it was already in the app-folder.
Last edited by KTvsPeacock; 16th September 2010 at 11:51.
If you are using the "Qt Sdk" (libraries+Creator) release of Qt be sure you copy files from the right directory.
i got a same problem... on my machine i can find following
locate qt|grep -i mysql
/usr/include/qt4/Qt/qsql_mysql.h
/usr/include/qt4/QtSql/QMYSQLDriver
/usr/include/qt4/QtSql/QMYSQLResult
/usr/include/qt4/QtSql/qsql_mysql.h
/usr/lib/qt4/plugins/sqldrivers/libqsqlmysql.so
/usr/share/doc/libqt4-sql-mysql
/usr/share/doc/libqt4-sql-mysql/LGPL_EXCEPTION.txt
/usr/share/doc/libqt4-sql-mysql/changelog.Debian.gz
/usr/share/doc/libqt4-sql-mysql/changelog.gz
/usr/share/doc/libqt4-sql-mysql/copyright
/var/lib/dpkg/info/libqt4-sql-mysql.list
/var/lib/dpkg/info/libqt4-sql-mysql.md5sums
is the /usr/lib/qt4/plugins/sqldrivers/libqsqlmysql.so right library???
Huh, are we now talking about Linux? Wasn't it windows in the first
EDIT: Ah, different guy! You are targeting which distro? The most have qt installed, so you normally don't need to deliver the Qt libraries along your application.
EDIT 2: Yeah, noticed that. Took a while...
i'm using the qt sdk and i took the dll from the qt/bin-folder (except the qsqlmysql4.dll of course).
doesn't QApplication only looks in the given library paths for plugins?
normally it searches in qt/plugins/ and the app-folder. i removed both using setLibraryPath(""), but still the qsqlmysql4.dll in qt/plugins was found and used. this is confusing
The plugin has to reside in a sqldrivers subdirectory of the directory containing the binary of your application.
Bookmarks