[PyKDE] libqassistantclient
Aaron BRICE
aaron.brice at st.com
Thu May 18 18:19:39 BST 2006
Ulrich Berning wrote:
> The option "-Wl,-a,shared" instructs the linker to search only for
> shared libraries when linking, static libraries are completely ignored.
> The correct option would be "-Wl,-a,shared_archive". I think this is a
> bug in Qt's mkspecs. I just have forgotten to inform Trolltech about this.
>
> In $QTDIR/mkspecs/hpux-acc/qmake.conf change the definition of
> QMAKE_FLAGS_SHLIB
>
> from
>
> QMAKE_FLAGS_SHLIB = -b -Wl,-a,shared
>
> to
>
> QMAKE_FLAGS_SHLIB = -b -Wl,-a,shared_archive
>
> You don't need to rebuild Qt, it affects only shared libs/modules (like
> qt.sl) that are linked with static libraries.
>
Thanks, after that the compile works ok. However, when I run a test
script, I get:
Traceback (most recent call last):
File "./autoTool.py", line 4, in ?
from qt import *
ImportError: Failed to load
/automation/python2.4/lib/python2.4/site-packages/qt.sl
The path is correct there. Doesn't seem to be a permission problem. I
ran ldd on the qt.sl and it shows:
/usr/lib/X11R6/libX11.3 => /usr/lib/X11R6/libX11.3
/usr/lib/X11R6/libXext.3 => /usr/lib/X11R6/libXext.3
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/X11R6/libICE.2 => /usr/lib/X11R6/libICE.2
/usr/lib/X11R6/libSM.2 => /usr/lib/X11R6/libSM.2
/automation/usr/lib/qt3.3/lib/libqt-mt.3 =>
/automation/usr/lib/qt3.3/lib/libqt-mt.3
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/X11R6/libICE.2 => /usr/lib/libICE.2
/usr/lib/X11R6/libSM.2 => /usr/lib/libSM.2
/usr/lib/X11R6/libX11.3 => /usr/lib/libX11.3
/usr/lib/X11R6/libXext.3 => /usr/lib/libXext.3
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libm.2 => /usr/lib/libm.2
Which looks ok, anything else I can do to get more information on why it
can't load the qt.sl?
More information about the PyQt
mailing list