Indeed, but for some reason it won't find my sqldrivers/qsqlmysqld4.dll, go figure...
Indeed, but for some reason it won't find my sqldrivers/qsqlmysqld4.dll, go figure...
Try this, it works for me.
int main(int argc, char *argv[])
{
QString app_path = QFileInfo(QString::fromLocal8Bit(argv[0])).absolutePath();
QCoreApplication::addLibraryPath(app_path);
OpcService service(argc, argv);
return service.exec();
}
And copy qsqlmysql4.dll to "sqldrivers" subdirectory of your .exe file.
Bookmarks