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.

Thanks,
Kevin

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

Reply via email to