waynew
22nd May 2010, 17:22
Trying to deploy an application on Windows but Sqlite driver is not loading.
After searching the forum, I have it set up as follows:
Executable and other files directory is C:\HRLogger_Release
Drivers qsqlite4.dll and sqlite3.dll are in C:\HRLogger_Release\sqldrivers
Using this code:
QString applPath = QCoreApplication::applicationDirPath();
applPath.append("/sqldrivers");
qApp->addLibraryPath(applPath);
qDebug() << "applPath is now " << applPath;
Produces this:
applPath is now "C:/HRLogger_Release/sqldrivers"
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
What am I missing here?
After searching the forum, I have it set up as follows:
Executable and other files directory is C:\HRLogger_Release
Drivers qsqlite4.dll and sqlite3.dll are in C:\HRLogger_Release\sqldrivers
Using this code:
QString applPath = QCoreApplication::applicationDirPath();
applPath.append("/sqldrivers");
qApp->addLibraryPath(applPath);
qDebug() << "applPath is now " << applPath;
Produces this:
applPath is now "C:/HRLogger_Release/sqldrivers"
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
What am I missing here?