[PyQt] compiled with Snow Leopard, error on Leopard

Michael Held michael.held at bc.biol.ethz.ch
Thu Nov 19 18:42:00 GMT 2009


hi guys,

I have a problem running PyQt which was compiled under Snow Leopard on a Leopard machine. 
error message:

> ImportError: dlopen(/Users/analyzer/Desktop/AnalyzerOne.app/Contents/Resources/lib/python2.6/lib-dynload/PyQt4/QtGui.so, 2): no suitable image found.  Did find:
> 	/Users/analyzer/Desktop/AnalyzerOne.app/Contents/Resources/lib/python2.6/lib-dynload/PyQt4/QtGui.so: unknown required load command 0x80000022

SIP was compiled:
> python configure.py --arch=i386 --sdk=MacOSX10.5.sdk

adding --universal gives an error:
> c++ -headerpad_max_install_names -arch i386 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -o sip main.o transform.o gencode.o export.o heap.o parser.o lexer.o 
> ld: library not found for -lcrt1.10.6.o
> collect2: ld returned 1 exit status
> make[1]: *** [sip] Error 1
> make: *** [all] Error 2


I have no problems when I add
> -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
to the CXXFLAGS/CFLAGS

and replacing the LDFLAGS with
> -bundle -flat_namespace -undefined warning -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5

doing that manually after configure is no fun, but it works for Mac OS 10.5 and 10.6

these flags are needed for all C++ extensions I am using to run them under 10.5.

I guess there is a better way...?
thanks a lot,
michael

used: 
sip-4.9.2-snapshot-20091115
PyQt-mac-gpl-4.6.2-snapshot-20091115
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091119/898a0d31/attachment.html


More information about the PyQt mailing list