[Pythonmac-SIG] SWIG on MacOS X 10.4

Christopher Barker Chris.Barker at noaa.gov
Thu Dec 6 00:02:22 CET 2007


Bernard B Yoo wrote:
> I'm just joining the list, specifically to figure out how to use SWIG on 
> MacOS X 10.4 (intel).  I have the default Apple Python 2.3.5 as well as 
> MacPython 2.5 installed.
> 
> I've following the tutorial at the swig.org Web site, using the Apple 
> Python 2.3.5.  When I try to create the wrapper library, I get a bunch 
> of undefined symbols, such as:

First, I highly recommend that you use the the MacPython2.5 python

Second, how are you trying to build your wrappers? If you aren't using 
distutils (setup.py), then you're doing it the hard way. You really want 
to use distutils.

Unfortunately, the SWIG docs didn't tel you how to do this until 
recently. There are directions in the docs in the SWIG svn here:

http://swig.svn.sourceforge.net/viewvc/swig/trunk/Doc/Manual/Python.html?view=log

Hopefully that will make it into the released docs soon.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list