QIBASE问题(firebird + Ubuntu) [英] Problem with QIBASE (firebird + Ubuntu)
问题描述
早上好.
我尝试编译QIBASE驱动程序以使用%QTDIR/demos中的sqlbrowser访问FireBird数据库.但是在我填写了sqlbrowser中的所有字段并按下OK按钮后,程序崩溃并显示以下消息:
I've tried to compile QIBASE driver to access FireBird database using sqlbrowser from %QTDIR/demos. But after i filled all fields in sqlbrowser and pushed OK button the program crashed with message:
/opt/qt-everywhere-opensource-src-4.7.3/demos/sqlbrowser-build-desktop/sqlbrowser: symbol lookup error:
/usr/lib/qt4/plugins/sqldrivers/libqsqlibase.so: undefined symbol: isc_attach_database
要编译QIBASE驱动程序,我已经完成了以下步骤:
To compile QIBASE driver i've done following steps:
- 将FirebirdCS-2.5.0安装到/opt/firebird.
- 将qt源解压缩到/opt/qt4.
-
编译QIBASE驱动程序:
- Installing FirebirdCS-2.5.0 to /opt/firebird.
- Unzipping qt sources to /opt/qt4.
Compiling QIBASE driver:
cd/opt/qt/src/plugins/sqldrivers/ibase qmake -o Makefile"INCLUDEPATH + =/opt/firebird/include""LIBS + =-L/opt/firebird/lib/libfbclient.so" ibase.pro
cd /opt/qt/src/plugins/sqldrivers/ibase qmake -o Makefile "INCLUDEPATH+=/opt/firebird/include" "LIBS+=- L/opt/firebird/lib/libfbclient.so" ibase.pro
将libqsqlibase.so放入/usr/lib/qt4/plugins/sqldrivers
Put libqsqlibase.so to /usr/lib/qt4/plugins/sqldrivers
数据库正常:我已经连接到数据库并通过isql执行查询.
The database is OK: i've connected to it and executed queries by isql.
请帮助我解决问题. 谢谢.
Help me please to solve the problem. Thank you.
Ubuntu 10.10,Qt4,firebird 2.5.0.
Ubuntu 10.10, Qt4, firebird 2.5.0.
推荐答案
已解决. 问题是我用从二进制文件安装的qt4.7.0编译了sqlbrowser,但是QIBASE驱动程序是用qt4.7.3.编译的.
Solved. The problem was that i compiled sqlbrowser with qt4.7.0 installed from binaries, but QIBASE driver was compiled with qt4.7.3.
这篇关于QIBASE问题(firebird + Ubuntu)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!