Hello,
* Windows XP SP3;
* "Full" SDK 2009.04 installed (in D:\Dev\Qt\);
* developing a Qt application which uses the SQLite plugin.
So I added to the .pro:
At compile, I got the error:Qt Code:
QT += sql QTPLUGIN += qslqliteTo copy to clipboard, switch view to plain text mode
D:\Dev\Qt\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\.. \..\..\mingw32\bin\ld.exe: cannot find -lqsqlited
Looking at the last compiler command, I noticed:
g++ [...many options removed...],-subsystem,windows [...many object files removed...] -L"d:\Dev\Qt\qt\lib" -lmingw32 -lqtmaind -LD:/Dev/Qt/qt/plugins/sqldrivers -lqsqlited -lQtWebKitd4 -lQtSqld4 -lQtXmld4 -lQtGuid4 -lQtCored4
Now, the D:/Dev/Qt/qt/plugins/sqldrivers directory does NOT contain any qsqlited.dll file, but it DOES contain a qsqlited4.dll file!
So, I copied qsqlited4.dll to qsqlited.dll, recompiled and, lo! everything works.
Now, the question:
Is this supposed to work this way, by renaming a distribution file? May this trick have side effects? None surfaced so far, but I cannot be sure. Has anybody had similar experiences?
Thanks,
M.
Bookmarks