[PyKDE] libqassistantclient
Phil Thompson
phil at riverbankcomputing.co.uk
Thu May 18 08:33:40 BST 2006
On Thursday 18 May 2006 12:14 am, Ulrich Berning wrote:
> Aaron BRICE schrieb:
> > I'm trying to compile PyQt 3.16 on HP-UX 11.00 using aCC. I've got Qt
> > 3.3.5, python 2.4.3 and sip 4.4.3 compiled. PyQt is giving me this
> > error:
> >
> > aCC +DAportable -Wl,+s -b -Wl,-a,shared -O
> > -Wl,+b,/automation/usr/lib/qt3.3/lib -Wl,+e,initqt -o qt.sl
> > sipqtcmodule.o ... -L/usr/lib/qt3.3/lib -L/usr/lib/X11R6
> > -lqassistantclient -lm -lqt-mt -lSM -lICE -ldld -lpthread -lm -lqt-mt
> > -lXext -lX11 -lpthread
> >
> > /usr/ccs/bin/ld: Can't find library: "qassistantclient"
> >
> > (I've edited out the long list of .o files)
> >
> > When I check the $QTDIR/lib directory, I see that Qt is compiled as a
> > shared library (libqt-mt.sl), but libqassistantclient is compiled
> > staticly (libqassistantclient.a). Is that incorrect? Is this a Qt
> > issue or should PyQt handle this case? Can I get it to skip the
> > libqassistantclient library since I don't care about that one?
>
> 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.
>
> ---
>
> Phil, maybe you should also modify specs/hpux-acc in sip.
It wouldn't make a difference in this case as PyQt uses the spec files from
your Qt installation instead of those included with SIP.
Phil
More information about the PyQt
mailing list