bayerj / arac

C++ library for neural networks.
Other
39 stars 57 forks source link

osx 64-bit python import failures #16

Open emf opened 12 years ago

emf commented 12 years ago

I can't get this thing to build and load properly for python on OSX 64bit. Assistance is greatly appreciated.

import arac._cppbridge Traceback (most recent call last): File "", line 1, in ImportError: dlopen(arac/_cppbridge.so, 2): no suitable image found. Did find: arac/_cppbridge.so: mach-o, but wrong architecture

$ file arac/_cppbridge.so arac/_cppbridge.so: Mach-O 64-bit bundle x86_64

$ uname -a Darwin macbox 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64

aventuralabs commented 11 years ago

Bump

gerardodiego commented 11 years ago

I have the same problem. I've tried to use CFLAGS and CXXFLAGS environment variables, but no luck. Scons doc is very poor about architecture. I understand that somehow I have to tell the g++ compiler to target i386, but I haven't got any luck with it yet.

semantium commented 10 years ago

ImportError: dlopen(/Users/ustoll/arac/src/python/arac/_cppbridge.so, 2): Library not loaded: libarac.dylib Referenced from: /Users/ustoll/arac/src/python/arac/_cppbridge.so Reason: no suitable image found. Did find: /usr/local/lib/libarac.dylib: stat() failed with errno=62

$ uname -a Darwin kfm.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64