As the topic says, i can't get SQLITE drivers to work.
I'm currently running Suse 9.2 with QT 3.3.3.
I have installed the qt-sqlite driver under /usr/lib/qt3/plugins/sqldrivers.
This driver seems to work fine under the QT Designer when trying to establish a database connection, but when I run my prog it comes up with:
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: QSQLITE
The contents of main.cpp is just a simple database connection, as I was just testing
and trying to grasp database concepts under QT
Code:
int main( int argc, char ** argv )
{
QApplication a( argc, argv );
QSqlDatabase *db=QSqlDatabase::addDatabase("QSQLITE");
Form1 w;
bool dbconnect;
db->driver("QSQLITE");
db->setDatabaseName("/home/lw/Desktop/SQL/adress.db");
if(!db->open())
{
db->lastError().showMessage();
dbconnect=false;
}
else {dbconnect=true;}
w.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}
Now I have been searching around for this problem and on Trolltech's Site
doc.trolltech.com/3.3/sql-driver.html
the section for SQLITE mentions the parameters "-plugin-sql-sqlite" and "-qt-sql-sqlite" for some configure-file!? Also at the start of that page there is mention of a configure command. I have tried running "configure" or "./configure" but my system doesn't know what it is.
I'm not to clued up with the linux environment, so if anybody can point me in the right direction or post the right "configure"-command with the all the necessary parameters I would be very thankfull.
PS: Does this even solve my problem? Or is it something else?