<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">hi guys,<div><br></div><div>I have a problem running PyQt which was compiled under Snow Leopard on a Leopard machine. </div><div>error message:</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Helvetica Neue'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><blockquote type="cite"><div><font class="Apple-style-span" color="#000000">ImportError: dlopen(/Users/analyzer/Desktop/AnalyzerOne.app/Contents/Resources/lib/python2.6/lib-dynload/PyQt4/QtGui.so, 2): no suitable image found. Did find:</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">        </font></span><font class="Apple-style-span" color="#000000">/Users/analyzer/Desktop/AnalyzerOne.app/Contents/Resources/lib/python2.6/lib-dynload/PyQt4/QtGui.so: unknown required load command 0x80000022</font></div></blockquote><div><br></div><div>SIP was compiled:</div><div><blockquote type="cite"><div>python configure.py --arch=i386 --sdk=MacOSX10.5.sdk</div></blockquote><div><br></div></div><div>adding --universal gives an error:</div><div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000">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 </font></div><div><font class="Apple-style-span" color="#000000">ld: library not found for -lcrt1.10.6.o</font></div><div><font class="Apple-style-span" color="#000000">collect2: ld returned 1 exit status</font></div><div><font class="Apple-style-span" color="#000000">make[1]: *** [sip] Error 1</font></div><div><font class="Apple-style-span" color="#000000">make: *** [all] Error 2</font></div></blockquote></div><div><br></div></span></div><div>I have no problems when I add</div><div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">-isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-<span style="color: #1f0091">min</span>=10.5</div></blockquote>to the CXXFLAGS/CFLAGS</div><div><br></div><div>and replacing the LDFLAGS with</div><div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">-bundle -flat_namespace -undefined <span style="color: #920a92">warning</span> -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-<span style="color: #1f0091">min</span>=10.5</div></blockquote><br></div><div>doing that manually after configure is no fun, but it works for Mac OS 10.5 and 10.6</div><div><br></div><div>these flags are needed for all C++ extensions I am using to run them under 10.5.</div><div><br></div><div>I guess there is a better way...?</div><div>thanks a lot,</div><div>michael</div><div><br></div><div>used: </div><div>sip-4.9.2-snapshot-20091115</div><div>PyQt-mac-gpl-4.6.2-snapshot-20091115</div></div></body></html>