Building M2Crypto-0.17 on MacOS X
Marc Hedlund <[email protected]>
| Newsgroups | gmane.comp.python.cryptography |
|---|---|
| Message-ID | <[email protected]> |
Hi, I've been struggling all day to get a working version of M2Crypto-0.17 that I can distribute with an application built on MacOS X, using py2app. Following all of the instructions in INSTALL, I can build an extension for i386, but the Universal build fails. I see this at the end of the build step: gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.5/SWIG/_m2crypto_wrap.o -L/usr/local/lib -lssl -lcrypto -o build/lib.macosx-10.3-fat-2.5/M2Crypto/__m2crypto.so /usr/bin/ld: for architecture ppc /usr/bin/ld: warning /usr/local/lib/libssl.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded) /usr/bin/ld: warning /usr/local/lib/libcrypto.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded) I have followed all of the instructions in the INSTALL file (both for openssl-0.98d and for M2Crypto-0.17). I downloaded and installed the most recent Xcode release, corrected the openssl Makefiles for the linker problem, gave a --prefix argument everywhere, and upgraded to Python-2.5. Any hints or suggestions? Thanks, -M