Skip to content

Building On Mac OS X

kumar303 edited this page Sep 13, 2010 · 6 revisions

[Hi Paul. John J. Lee told me you were working on this. Cool!]

Any suggestions on building this for OS X?

I typed :
python setup.py build

but was missing jsapi.h

I had a download of the XULRunner SDK lying around (no idea what version or where I got it); this includes jsapi.h in xulrunner-sdk/include/js

After adding that to $C_INCLUDE_PATH I saw progress but got this error:

gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5/spidermonkey/spidermonkey.o -L/usr/lib -L/usr/local/lib -L/opt/local/lib -ljs -o build/lib.macosx-10.3-i386-2.5/spidermonkey.so

ldld: : library not found for -ljs

what library might it be looking for? I see libmozjs.dylib in /Users/kumar/src/xulrunner-sdk/lib/ but if I set:

export DYLD_LIBRARY_PATH=/Users/kumar/src/xulrunner-sdk/lib/

then there is no affect.

Clone this wiki locally