Re: problems compiling m2crypto-0.07-snap3 on OSX
Douglas Shand <[email protected]>
| Newsgroups | gmane.comp.python.cryptography |
|---|---|
| Message-ID | <[email protected]> |
Thanks for getting back to me. I had already hacked around the OSX makefile and still couldn't get it working. But the good news is that setup.py (your swig hack) worked fine and I am now up an running. Thanks, Douglas. --- Ng Pheng Siong <[email protected]> wrote: > On Tue, Apr 30, 2002 at 05:14:23AM -0700, Douglas > Shand wrote: > > I have installed Python from source and I have > > Python.h available in > > > > /usr/local/include/python2.2/Python.h > > > > but I am not sure which parm in the Makefile.osx > > actually uses this. > > Makefile.osx was contributed by Richard Jones but is > based on the original > Makefiles I wrote. You'll have to fix various > pathnames in it to point to > the right places. > > The output of SWIG - _m2crypto_wrap.c - is in Python > C-extension format and > needs Python.h to build. > > I've pasted Makefile.osx below. I guess you need to > replace all that > /Users/richard stuff, at least. > > # $Id$ > > CFLAGS = -DTHREADING -g -O2 -Xlinker > -bind_at_load > INCLUDE = -I/Users/richard/include -I. > LIBS = /Users/richard/lib/libssl.a > /Users/richard/lib/libcrypto.a > PYVER = 2.1 > PYINCLUDE = -DHAVE_CONFIG_H > -I/Users/richard/include/python$(PYVER) \ > -I/Users/richard/lib/python$(PYVER)/config > PYLIB = > /Users/richard/lib/python$(PYVER)/config > > all: _m2cryptoc.so > > _m2crypto_wrap.c: _m2crypto.i > /Users/richard/bin/swig -shadow -python _m2crypto.i > > _m2crypto_wrap.o: _m2crypto_wrap.c > cc -c -fPIC $(CFLAGS) $(INCLUDE) $(PYINCLUDE) > _m2crypto_wrap.c > > _m2cryptoc.so: _m2crypto_wrap.o > cc -bundle -undefined suppress _m2crypto_wrap.o \ > /Users/richard/lib/libssl.a > /Users/richard/lib/libcrypto.a \ > -lcc_dynamic -o _m2cryptoc.so > cp _m2crypto.py _m2cryptoc.so ../M2Crypto > > clean: > rm -f *_wrap* *.o *.so _*.py *.pyc > > > -- > Ng Pheng Siong <[email protected]> * > http://www.netmemetic.com > __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com