Is there a way to build the QtSql plugins as separate static libs, or must the entire Qt library be rebuilt with the plugins compiled into the monolithic library?
Is there a way to build the QtSql plugins as separate static libs, or must the entire Qt library be rebuilt with the plugins compiled into the monolithic library?
I would like to build a separate static lib for the Sqlite plugin, so I can just link the SQL driver lib into my project. This way I avoid having to maintain an entirely custom compiled static Qt library in the repository.
If you can grab code on subversion have a look on code:
http://sourceforge.net/projects/qtexcel-xslt/
is a excel "emulator" wo work on sqlite3 and convert in many other format....
is build on qt4.1 ... but i tested && you can build to on qt4.3 beta
on folder /static_sqlite_table/
otherwise you must write your own lib....
if you like to run on qt3 have a look on sqlitebrowser on sf.net
I'm going to ask my question here.
I have rebuilt Qt with the -static option passed to the configure script.
And then run qmake on my project and started to recompile. It compile good and it runs. But the problem is when I try to connect my app to SQLite database.
I get two messages:
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
And this is how I construct it:
It worked like a charm before I didn't have compiled Qt with the -static option.Qt Code:
To copy to clipboard, switch view to plain text mode
I am including the QtSql in the app.
And Qt version is 4.3.1 OpenSource
Try adding Q_IMPORT_PLUGIN(qsqlite) to your sources and QTPLUGIN += qsqlite to your .pro file.
http://doc.trolltech.com/4.2/plugins...static-plugins
Bookmarks