How to link SQLite through the .pro file?
-
I've been trying to link SQLite as a replacement for Berkeley DB for awhile now, still running into walls and would appreciate some assistance if possible.
-
I've been trying to link SQLite as a replacement for Berkeley DB for awhile now, still running into walls and would appreciate some assistance if possible.
@SaltineChips said in How to link SQLite through the .pro file?:
How to link SQLite through the .pro file?
I've been trying to link SQLite as a replacement for Berkeley DB for awhile nowHello and welcome.
There should be no "linking" involved. Obtain the SQLite plugin-driver for your platform (may have to build it, may be able to get it already-built hoefully), specify it through
QSqlDatabase::addDatabase("QSQLITE");
, and off you go. Qt program loads the plugin-driver dynamically when called for at runtime, nothing to put into.pro
file/link against. -
@SaltineChips said in How to link SQLite through the .pro file?:
How to link SQLite through the .pro file?
I've been trying to link SQLite as a replacement for Berkeley DB for awhile nowHello and welcome.
There should be no "linking" involved. Obtain the SQLite plugin-driver for your platform (may have to build it, may be able to get it already-built hoefully), specify it through
QSqlDatabase::addDatabase("QSQLITE");
, and off you go. Qt program loads the plugin-driver dynamically when called for at runtime, nothing to put into.pro
file/link against.@JonB said in How to link SQLite through the .pro file?:
@SaltineChips said in How to link SQLite through the .pro file?:
How to link SQLite through the .pro file?
I've been trying to link SQLite as a replacement for Berkeley DB for awhile nowHello and welcome.
There should be no "linking" involved. Obtain the SQLite plugin-driver for your platform (may have to build it, may be able to get it already-built hoefully), specify it through
QSqlDatabase::addDatabase("QSQLITE");
, and off you go. Qt program loads the plugin-driver dynamically when called for at runtime, nothing to put into.pro
file/link against.Unfortunately, I'm building static, so everything has to be linked through the .pro file during compilation.