View Full Version : IBASE driver not found ?
vieraci
19th May 2007, 14:07
I'm experimenting with the sqlbrowser example and when I run the app, my firebird (QIBASE) driver doesn't appear in the combo box.
Does this indicate Qt can't find the driver ?
I've installed the sql plugin as per the documentation, and I'm pretty sure it's right, but don't know how to check this.
patrik08
19th May 2007, 17:00
I'm experimenting with the sqlbrowser example and when I run the app, my firebird (QIBASE) driver doesn't appear in the combo box.
Does this indicate Qt can't find the driver ?
I've installed the sql plugin as per the documentation, and I'm pretty sure it's right, but don't know how to check this.
this must you explain on installation from QT..
./configure with -qt-sql-qibase ....
http://www.google.ch/search?q=qt-sql-qibase&btnG=Cerca&meta=
jacek
19th May 2007, 17:01
Does this indicate Qt can't find the driver ?
Most likely, yes.
I've installed the sql plugin as per the documentation
Where did you copy the plugin exactly? What does ldd output when you run it on the plugin?
vieraci
20th May 2007, 02:30
To get the plugin, I had to download the source for Qt4 from Trolltech and compile it.
The install phase copied the plugins and drivers automatically to:
/usr/local/Trolltech/Qt-4.2.3/plugins/sqldrivers
ldd on the file libqsqlibase.so:
linux-gate.so.1 => (0xffffe000)
libfbclient.so.2 => /usr/lib/libfbclient.so.2 (0xb7e8a000)
libQtSql.so.4 => /usr/local/Trolltech/Qt-4.2.3/lib/libQtSql.so.4 (0xb7e52000)
libQtCore.so.4 => /usr/local/Trolltech/Qt-4.2.3/lib/libQtCore.so.4 (0xb7cd2000)
libz.so.1 => /lib/libz.so.1 (0xb7cbf000)
libgthread-2.0.so.0 => /opt/gnome/lib/libgthread-2.0.so.0 (0xb7cb9000)
libglib-2.0.so.0 => /opt/gnome/lib/libglib-2.0.so.0 (0xb7c24000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7c0c000)
libdl.so.2 => /lib/libdl.so.2 (0xb7c08000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7b24000)
libm.so.6 => /lib/libm.so.6 (0xb7afe000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7af1000)
libc.so.6 => /lib/libc.so.6 (0xb79c3000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb7905000)
libncurses.so.5 => /lib/libncurses.so.5 (0xb78be000)
librt.so.1 => /lib/librt.so.1 (0xb78b5000)
/lib/ld-linux.so.2 (0x80000000)
If it's important, QTDIR is pointing to /usr/lib/qt3
If I try to run qtconfig I get the GUI which doesn't seem to have any PATH settings, only settings for my projects.
jacek
20th May 2007, 18:26
To get the plugin, I had to download the source for Qt4 from Trolltech and compile it.
Do you have another copy of Qt4 installed?
libfbclient.so.2 => /usr/lib/libfbclient.so.2 (0xb7e8a000)
So it looks that the linker can find the Firebird libraries.
Check where Qt looks for the plugins with strace:
strace ./sqlbrowser 2>&1 | grep plugins
vieraci
21st May 2007, 12:30
Do you have another copy of Qt4 installed?
Yes, Qt3 and Qt4 form original install.
So it looks that the linker can find the Firebird libraries.
Check where Qt looks for the plugins with strace:
nothing...
jacek
21st May 2007, 13:49
Yes, Qt3 and Qt4 form original install.
Is your application linked against the original Qt4 or the one you have compiled recently?
vieraci
21st May 2007, 14:38
Is your application linked against the original Qt4 or the one you have compiled recently?
I don't know...How do I find out ?
jacek
21st May 2007, 23:01
How do I find out ?
For example with ldd.
vieraci
22nd May 2007, 00:32
For example with ldd.
Looks like the previously installed version.
ldd sqlbrowser
linux-gate.so.1 => (0xffffe000)
libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0xb7e8a000)
libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb77b8000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7794000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb778a000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb7770000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb7767000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb775e000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7759000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7753000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7749000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7744000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb76d8000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb76ad000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb769e000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7581000)
libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb7402000)
libz.so.1 => /lib/libz.so.1 (0xb73ef000)
libdl.so.2 => /lib/libdl.so.2 (0xb73eb000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb73d3000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb72ef000)
libm.so.6 => /lib/libm.so.6 (0xb72c9000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb72bc000)
libc.so.6 => /lib/libc.so.6 (0xb718e000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7188000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7184000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7162000)
/lib/ld-linux.so.2 (0xb7eef000)
The newer install is at
/usr/local/Trolltech/Qt-4.2.3/lib
jacek
22nd May 2007, 14:56
Looks like the previously installed version.
ldd sqlbrowser
linux-gate.so.1 => (0xffffe000)
libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0xb7e8a000)
libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb77b8000)
Yes, in such case Qt might not want to load any plugins from the newer version because of mismatching build keys.
Recompile your application using the new Qt version. If you use qmake, simply run qmake from /usr/local/Trolltech/Qt-4.2.3/bin on your .pro file, then "make clean" and "make".
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.