[Qt-interest] Fwd: symbol lookup error on execution, Linux

Nikos Geronitidis geronik444 at gmail.com
Mon Feb 23 19:42:31 CET 2009


---------- Forwarded message ----------
From: Thiago Macieira <thiago.macieira at trolltech.com>
Date: Mon, Feb 23, 2009 at 7:58 PM
Subject: Re: [Qt-interest] symbol lookup error on execution, Linux
To: qt-interest at trolltech.com


Em Segunda-feira 23 Fevereiro 2009, às 17:54:01, Nikos Geronitidis escreveu:
> Hello Qt
>
> My application can be executed without a problem on my Mandriva laptop,
> where also the development has been done.. but
> when I am trying to execute this application in a different Mandriva Linux
> machine, there is an error produced :
>
> *symbol lookup error: ./WaterAnalystInterface: undefined symbol:
> _ZNK10QBoxLayout7stretchEi*

This symbol was added in Qt 4.5. That means you built your application for
use
with Qt 4.5, but you're running it against Qt 4.4 or earlier.

That cannot work.

You have to either upgrade all your machines to use Qt 4.5 or you must
compile
your application with an earlier version of Qt. (You don't have to downgrade
the system Qt for that. Technically speaking, you don't even need to compile
Qt 4.4: you just need its headers and you can link against the Qt 4.5
libraries)

--
Thiago Macieira - thiago.macieira (AT) nokia.com
 Senior Product Manager - Nokia, Qt Software
    Sandakerveien 116, NO-0402 Oslo, Norway

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



The ldd output was not the same and has some differences in the Qt
libraries..\

*Laptop machine:
libQtSql.so.4 => /usr/local/Trolltech/Qt-4.5.0-rc1/lib/libQtSql.so.4
(0xb808f000)
libQtXml.so.4 => /usr/local/Trolltech/Qt-4.5.0-rc1/lib/libQtXml.so.4
(0xb804c000)
libQtGui.so.4 => /usr/local/Trolltech/Qt-4.5.0-rc1/lib/libQtGui.so.4
(0xb7681000)*

*Other machine:
libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0xb7f1b000)
libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb7ed7000)
libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb75af000)*

so it must be the fact that the other machine has different version of Qt..

I think I ll do the upgrade. One last question, how is it possible to build
a new Qt 4.5 application
 and run it without any problems to other Mandriva machines, but when I
do the same thing with my application problems exist?


-- 
Best Regards
Nikos Gerontidis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090223/fd5f5e6d/attachment.html 
-------------- next part --------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQBJouOqM/XwBW70U1gRAsEHAJ9A9EGNR48za6y5NkP7VLJ0PhjiywCfV99T
PVVYrUNxn7XYYtgF4YDpv2A=
=IlFF
-----END PGP SIGNATURE-----


More information about the Qt-interest-old mailing list