[Pythonmac-SIG] py2app/64-bit/Mach-O Headers

Ronald Oussoren ronaldoussoren at mac.com
Tue Oct 6 18:22:05 CEST 2009


On 6 Oct, 2009, at 16:30, Kevin Walzer wrote:

> I'm trying to bundle up a Python application that uses four-way  
> universal builds of Python and Tk (64-bit/32-bit for PPC and x86).  
> py2app chokes when trying to link the Tk frameworks in the app bundle:
>
> linking /Users/kevin/Programming/phynchronicity/dist/ 
> Phynchronicity.app/Contents/Frameworks/Tk.framework/Versions/Current  
> -> 8.5
> WARNING: Mach-O header may be too large to relocate
> WARNING: Mach-O header may be too large to relocate
> WARNING: Mach-O header may be too large to relocate
> WARNING: Mach-O header may be too large to relocate
> Traceback (most recent call last):
>  File "/Library/Frameworks/Python64.framework/Versions/2.6/lib/ 
> python2.6/site-packages/py2app-0.4.2-py2.6.egg/py2app/build_app.py",  
> line 589, in _run
>    self.run_normal()
>  File "/Library/Frameworks/Python64.framework/Versions/2.6/lib/ 
> python2.6/site-packages/py2app-0.4.2-py2.6.egg/py2app/build_app.py",  
> line 660, in run_normal
>    self.create_binaries(py_files, pkgdirs, extensions, loader_files)
>  File "/Library/Frameworks/Python64.framework/Versions/2.6/lib/ 
> python2.6/site-packages/py2app-0.4.2-py2.6.egg/py2app/build_app.py",  
> line 777, in create_binaries
>
> <snip>
>
> I ran across this error in the mailing list archives and saw that it  
> may pertain to the "-headerpad_max_install_names" LD flag. I added  
> this flag to LDFLAGS in my ~/.profile and rebuilt Tcl and Tk with  
> the link flag, but py2app still returns this error.
>
> Not sure what to do here. I think py2app should be able to handle  
> building a Tkinter application as 64-bit without these errors;  
> Tkinter isn't some weird edge case. I've installed the latest dev  
> versions of py2app and macholib. I'm also running 10.5.8.

My gut feeling is that macholib does not yet support 64-bit binaries.  
I know for sure that I have never used it with 64-bit binaries yet.

Ronald

>
> Thanks,
> Kevin
>
> -- 
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3567 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20091006/538098d1/attachment.bin>


More information about the Pythonmac-SIG mailing list