QIBASE问题(firebird + Ubuntu) [英] Problem with QIBASE (firebird + Ubuntu)

查看:150
本文介绍了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:

  1. 将FirebirdCS-2.5.0安装到/opt/firebird.
  2. 将qt源解压缩到/opt/qt4.
  3. 编译QIBASE驱动程序:

  1. Installing FirebirdCS-2.5.0 to /opt/firebird.
  2. Unzipping qt sources to /opt/qt4.
  3. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆