From: Massimo Di S. <mas...@ya...> - 2011-06-10 15:59:59
|
hi all i'm on osx 10.6, running the system pyrhon in 64 bit mode i compiled swig 2.0.4 (also using the flag for 64 bit) but when i try to build the simple example .. i got a worning and try to run the example it give me a wrong architecture error this the log : MacBook-Pro-15-di-epy:simple epy$ make make -f ../../Makefile SRCS='example.c' SWIG='../../../preinst-swig' \ TARGET='example' INTERFACE='example.i' python ../../../preinst-swig -python example.i gcc -c example_wrap.c example.c -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config cc -bundle -undefined suppress -flat_namespace example.o example_wrap.o -o _example.so ld: warning: in example.o, file was built for i386 which is not the architecture being linked (x86_64) ld: warning: in example_wrap.o, file was built for i386 which is not the architecture being linked (x86_64) MacBook-Pro-15-di-epy:simple epy$ python runme.py Traceback (most recent call last): File "runme.py", line 3, in <module> import example File "/Users/Shared/src/swig-2.0.4/Examples/python/simple/example.py", line 26, in <module> _example = swig_import_helper() File "/Users/Shared/src/swig-2.0.4/Examples/python/simple/example.py", line 22, in swig_import_helper _mod = imp.load_module('_example', fp, pathname, description) ImportError: dlopen(/Users/Shared/src/swig-2.0.4/Examples/python/simple/_example.so, 2): no suitable image found. Did find: /Users/Shared/src/swig-2.0.4/Examples/python/simple/_example.so: mach-o, but wrong architecture thanks for any help! Massimo. |