[PyKDE] Buling PyQt into Python: Errors

Hihn, Jason Jason.Hihn at verint.com
Thu Oct 21 14:53:58 BST 2004

Ah, ok. I got it mostly working.

I get errors on qtext and qtgl modules. I guess they weren't built by
PyQt for some reason...

Now I get one final error:
case $MAKEFLAGS in \
*-s*)  CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG
-g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*)  CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g
-O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
./python: relocation error: ./python: undefined symbol:
make: *** [sharedmods] Error 127

I am compiling against Qt-x11-commercial-3.3.3

Any ideas?

> -----Original Message-----
> From: Phil Thompson [mailto:phil at riverbankcomputing.co.uk]
> Sent: Thursday, October 21, 2004 3:17 AM
> To: Hihn, Jason
> Cc: Phil Thompson; pykde at mats.imk.fraunhofer.de
> Subject: RE: [PyKDE] Buling PyQt into Python: Errors
> >
> > Yes, that worked!
> >
> > Now I just get them as unresolveds by the linker in the final step.
> > think this comes from confusion in the first part of "Rebuilding
> > Python". When it says:
> > 	Edit Makefile.pre.in and add the macros PYQT_OBJS and PYQT_LIBS.
> >
> > 	PYQT_OBJS contains the path names of all the object files that
> > were 	created when you built the static SIP and PyQt modules,
> the
> > outputs of ls siplib/*.o and ls qt*/*.o from the SIP and PyQt source
> > directories respectively.
> >
> > 	PYQT_LIBS contains the command line flags needed to link the
> > various 	Qt libraries. For example:
> >
> > 	PYQT_LIBS= -L/usr/local/qt/lib -lqscintilla -lqassistantclient
> > -lqui -	lqt-mt
> > Where it says "add the macros" I am assuming that PYQT_OBJS and
> > PYQT_LIBS are already defined and that I do not have to define them?
> > I don't see where they are specified.
> No, "add the macros" means define them. The standard Python
> knows nothing about PyQt.
> Phil

This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries.
The information is intended to be for the use of the individual(s) or
entity(ies) named above.  If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message.  If you have received this electronic message in error, please notify us by replying to this e-mail. (1)

More information about the PyQt mailing list