Link errors loading a Python extension for i386 MacOS that was compiled on a PPC

Posted by deekoo on Stack Overflow See other posts from Stack Overflow or by deekoo
Published on 2010-04-30T23:56:23Z Indexed on 2010/05/01 9:07 UTC
Read the original article Hit count: 350

Filed under:
|

I'm trying to compile a Python extension (written in C) on a PPC mac (running OS X 10.4, XCode 2.5), to run under Ren'Py on both PPC and i386 MacOS. The PPC version works; the i386 version fails to load with

ImportError: dlopen(./fasttint_macos_i386.dylib, 2): Symbol not found: _PyType_GenericNew
   Referenced from: /Applications/Games/Demos/CuteKnightKingdom-demo-0.9.25.1-mac/CuteKnightKingdom-demo.app/Contents/Resources/autorun/game/fasttint_macos_i386.dylib
   Expected in: /Applications/Games/Demos/CuteKnightKingdom-demo-0.9.25.1-mac/CuteKnightKingdomdemo.app/Contents/Resources/autorun/game/fasttint_macos_i386.dylib

As best I can tell, _PyType_GenericNew should be defined by Ren'Py's python - why is it trying to find an internal declaration for the symbol instead of the external one?

© Stack Overflow or respective owner

Related posts about python

Related posts about osx