BitRogue
September 27th, 2008, 09:37 PM
Anyone here using QT4 on (K)Ubuntu to program projects for Oracle databases? I could be missing something but it seems the QT4 package in Ubuntu's repos has not been compiled with the QOCI driver.
Running this code :
#include <QtGui>
#include <QtSql>
int main(int argc, char **argv)
{
QApplication a(argc,argv);
QMainWindow mainwin;
QSqlDatabase db;
db.addDatabase("QOCI");
db.setDatabaseName("XE");
db.setUserName("system");
db.setPassword("anypass");
mainwin.show();
return a.exec();
}
produces this output:
QSqlDatabase: QOCI driver not loaded
QSqlDatabase: available drivers: QPSQL7 QPSQL QMYSQL3 QMYSQL QSQLITE QSQLITE2
The QT Assistant docs expressly state that it IS included, so now Im wondering if the Ubuntu developers have deliberately left it out due to some licencing issue and now I have to recompile QT from scratch in order to get included? Or am I missing something?
Running this code :
#include <QtGui>
#include <QtSql>
int main(int argc, char **argv)
{
QApplication a(argc,argv);
QMainWindow mainwin;
QSqlDatabase db;
db.addDatabase("QOCI");
db.setDatabaseName("XE");
db.setUserName("system");
db.setPassword("anypass");
mainwin.show();
return a.exec();
}
produces this output:
QSqlDatabase: QOCI driver not loaded
QSqlDatabase: available drivers: QPSQL7 QPSQL QMYSQL3 QMYSQL QSQLITE QSQLITE2
The QT Assistant docs expressly state that it IS included, so now Im wondering if the Ubuntu developers have deliberately left it out due to some licencing issue and now I have to recompile QT from scratch in order to get included? Or am I missing something?