[Qt-interest] Building TDS Libraries on Windows

Christian Dähn daehn at asinteg.de
Wed Oct 14 15:21:30 CEST 2009


Hi,

>>normally you have to search these files in the web and then add them to
>>QTDIR\src\plugins\sqldrivers\tds\
>
>thanks for the files. You may have guessed by now that this is my first
>project using Qt, and thanks to your efforts I have managed to build the
>libraries. I get a qsqltdsd4.DLL and a libqsqltdsd4.a file as a result.
>
>However, regardless of this the application, on start up, tells me that
>the QTDS driver isn't installed. I've executed mingw32-make install and
>all it seems to have done is copied a DLL.
>
>Starting E:\QT\SManager\debug\SManager.exe...
>QSqlDatabase: QTDS driver not loaded
>QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC

That's just a problem of deploying the sqldriver DLLs - just do the following steps:

1. create "E:\QT\SManager\debug\sqldrivers\"
2. copy all DLLs from "<QTDIR>\plugins\sqldrivers\" to the above dir
3. start your app and you should see QTDS as available driver

The same problems occurr when you need support for JPEG etc. -
then just repeat the same steps for "<QTDIR>\plugins\imageformats\"
and the new dir "<YOURAPP>\imageformats\".

Hope that helps - otherwise don't hesitate to ask :-)

ciao,
Chris




More information about the Qt-interest-old mailing list