what error messages do you get?
what error messages do you get?
i downloaded qtcreator with compiled qt libraries...so there is already compiled ibase library...that solves the problem, but when i finished compiling sqlbroswer he said that there are only sqlite and mysql databases available, how come , when there is compiled ibase library
it worked with me under Ubuntu !
i recompiled Qt with these instructions !
i have Qt 4.4.0 & i use QDevelop !
that's all !
Try just to copy QIBASE.SO to your $QTDIR/src/plugins/sqldrivers/
i think it will work !
I use Qt Creator 1.1.0 Based on Qt 4.5.1 Built on Apr 22 2009 at 12:20:23
From revision e81e94cb44
this is error that i get compiling the code
QSqlDatabase: QIBASE driver not loaded
QSqlDatabase: available drivers: QSQLITE QSQLITE2 QPSQL7 QPSQL
code
-------------
QSqlDatabase db;
db = QSqlDatabase::addDatabase("QIBASE");
db.setDatabaseName("katalog.fdb");
bool ok = db.open();
if (!ok)
{
/*some error message
exit(1);
}
QtCreator has following sql plugins in sql plugin folder
libqsqlibase_debug.so libqsqlibase.so libqsqlite2.so libqsqlite.so libqsqlpsql.so
im not a programer, just wanna be, so i dont se why this isnt working?
libqibase.so in attachements
copy it to your $QTDIR/src/plugins/sqldrivers/
!
on ystem i have qt3, so i didnt put in $QTDIR
as i use qtcreator he has built in qt4.5.1 libraries so i replaced old ones with the ones you supplied...and still the same error..
Hi,
Create the folder "sqldrivers" in your application folder and put libqibase.so here, or locate the others drivers (QSQLITE, QSQLITE2) and put the library in same folder.
Marcelo E. Geyer
i know that, and i did that..i've put the ibase that you gave to
that folder
home qtsdk-2009.02/qt/plugins/sqldrivers
but i receive the same error
here is some code snippet
QSqlDatabase db;
db = QSqlDatabase::addDatabase("QIBASE");
db.setDatabaseName("katalog.fdb");
qDebug()<< "database " << QSqlDatabase::database();
bool ok = db.open();
qDebug()<< "Status konekcije " << ok;
if (!ok)
{
QMessageBox::critical(0, "GOMAL", QString("SQL problem? \n\nOk to exit."));
exit(1);
}
QStringList tables = db.tables();
for (int t = 0; t < tables.count(); ++t)
{
QTreeWidgetItem *table = new QTreeWidgetItem();
table->setText(0, tables.at(t));
}
About this file libqibase.so U've copy it to wrong folder:
home qtsdk-2009.02/qt/plugins/sqldrivers.
U should copy it to:
home qtsdk-2009.02/qt/src/plugins/sqldrivers.
I had the same problem under vista and the solution was to copy:
libqsqlibase4.a
libqsqlibased4.a
qsqlibase4.dll
qsqlibased4.dll
to (in your case) home qtsdk-2009.02/qt/plugins/sqldrivers.
Hello to everyone, I`m using Windows XP SP3 and Ubuntu 10.04. On both systems i`ve got QT4.7.0.
Speaking about visibility ibase driver for QT, it`s not so clear.
For my experience, i`ve made and used ibase under Win and Ubuntu on one mashine, at another machines the way i made plugin doesn`t work.
All goes right and i`ve got the needed files qsqlibase.dll and libqsqlibase.so (on each system) but QT doesn`t see them.
Can somebody advise the way to solve this problem?
Bookmarks