[Qt-interest] QtSql and Qmake/Linker Statements

Stefan Walkner swalkner at gmail.com
Tue Aug 25 21:42:40 CEST 2009


Hello,

I have a question concerning qmake and linker statements using QtSql.
I really would like to control what databases will be supported by my
target (binary) but using "QT += sql" in my .pro file always adds
me lots of "-xslt -pthread" libraries. If I leave the "QT += sql"
statement out of the pro file the Makefile does NOT contain these
statements - so I know this comes from working with QtSql.

I tried to remove these flags manually (from the generated Makefile
[which is of course ... bad]) and the application using sqlite or mysql
still run/work fine.
I guess that xslt etc. is needed for oracle (which I'm not using).

I hope anyone Is able to catch my drift and guide me to the right
direction.

thx in advance, stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090825/819d7b65/attachment.html 


More information about the Qt-interest-old mailing list