[Qt-interest] undefined symbol on Linux/ubuntu
Thiago Macieira
thiago.macieira at trolltech.com
Mon Jul 20 18:44:53 CEST 2009
Em Domingo 19 Julho 2009, às 10:38:51, M. Bashir Al-Noimi escreveu:
> Hi All,
>
> I tried to run QCat software on my ubuntu but it gave me the following
> error message:
>
> ./qcat: symbol lookup error: ./qcat: undefined symbol: _Z13qFlagLocationPKc
>
>
> How I can fix this issue for running my executable? is there any missing
> libs?
You're missing Qt 4.5. Your program was compiled for that version but it's
finding an earlier version.
> * my system path is:
>
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/op
>t/qtsdk-2009.03/qt/bin:/opt/qtsdk-2009.03/qt/lib
PATH is for finding executables.
For finding libraries, it's LD_LIBRARY_PATH.
> * The ldd output for qcat executable is:
>
> linux-gate.so.1 => (0xb8014000)
> libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0xb7fa2000)
> libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb7f5e000)
> libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb765a000)
[snip]
As you can see, your executable found the system library, which is most likely
Qt 4.4.
Your options are:
1) upgrade your system to Qt 4.5
2) set LD_LIBRARY_PATH to point to the SDK-provided Qt 4.5
3) use RPATH when linking your executable
4) any combination of the above.
From the options available, the combination 1 & 2 is the best.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Software
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090720/72d223f9/attachment.bin
More information about the Qt-interest-old
mailing list