First of all, I am a Mac OS newbie. I am trying to build PyObjC 2.0
for Python 2.6. I am doing this because I have wxPython for 2.6, but
not 2.7 (the python shipped with the OS).
I started by installing python 2.6 from python.org.
I also installed Xcode 3.5 from Apple. I had to update my system from
10.6.2 to 10.6.8 in order to install Xcode.
I then checked out the pyobj branch:
svn co http://svn.red-bean.com/pyobjc/branches/pyobjc-20x-branch/ PyObjC
To build, I did:
cd PyObjC/pyobjc-core
python2.6 setup.py install
The first attempt failed with:
/usr/bin/gcc-4.2 -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o
.libs/libffi.5.0.9.dylib src/.libs/debug.o src/.libs/prep_cif.o
src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o
src/.libs/closures.o src/powerpc/.libs/ffi_darwin.o
src/powerpc/.libs/darwin.o src/powerpc/.libs/darwin_closure.o
-L/opt/local/lib -arch ppc -arch ppc -install_name
/opt/local/lib/libffi.5.dylib -compatibility_version 6
-current_version 6.9
ld: in src/powerpc/.libs/darwin.o, unsupported encoding in FDE
So I applied the patch from here:
https://trac.macports.org/attachment/ticket/21401/libffi.patch
I was then able to build and import pyobjc:
python2.6
> import pyobjc
>
However, I also want Cocoa, so I did the following to build it:
cd PyObjC/pyobjc-framework-Cocoa
python2.6 setup.py install
However, when that completed, I cannot import PyObjCTools.AppHelper:
python2.6
> from PyObjCTools import AppHelper
...
ValueError: Unknown typestr
The error is the same as noted below.
http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5738
However, I am not able to find any solution to this. Any help is appreciated.
|