[Pharo-project] FFI on Mac OSX
Hello, I'm trying to use an external library through FFI. On the Mac (Snow Leopard) I get the following error on the console: tryLoading /Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib ioLoadModule(/Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib): dlopen(/Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib, 10): no suitable image found. Did find: /Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib: mach-o, but wrong architecture What does "mach-o, but wrong architecture" mean? 64bits instead of 32 or something else? Jan.
On Sun, Jun 12, 2011 at 11:18 PM, Jan van de Sandt <jvdsandt@gmail.com>wrote:
Hello,
I'm trying to use an external library through FFI. On the Mac (Snow Leopard) I get the following error on the console:
tryLoading /Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib
ioLoadModule(/Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib):
dlopen(/Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib, 10): no suitable image found. Did find:
/Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib: mach-o, but wrong architecture
What does "mach-o, but wrong architecture" mean? 64bits instead of 32 or something else?
I guess that thing about 32/64. I think I suffered that for DBXTalk.... -- Mariano http://marianopeck.wordpress.com
yep... you are trying to run a 64bit library in a 32bit application (squeak, or cog, both are 32bits) best, Esteban El 12/06/2011, a las 6:18p.m., Jan van de Sandt escribió:
Hello,
I'm trying to use an external library through FFI. On the Mac (Snow Leopard) I get the following error on the console:
tryLoading /Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib ioLoadModule(/Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib): dlopen(/Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib, 10): no suitable image found. Did find: /Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib: mach-o, but wrong architecture
What does "mach-o, but wrong architecture" mean? 64bits instead of 32 or something else?
Jan.
Thanks, I will start looking for the 32bit version. Jan. On Sun, Jun 12, 2011 at 11:34 PM, Esteban Lorenzano <estebanlm@gmail.com>wrote:
yep... you are trying to run a 64bit library in a 32bit application (squeak, or cog, both are 32bits)
best, Esteban
El 12/06/2011, a las 6:18p.m., Jan van de Sandt escribió:
Hello,
I'm trying to use an external library through FFI. On the Mac (Snow Leopard) I get the following error on the console:
tryLoading /Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib
ioLoadModule(/Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib):
dlopen(/Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib, 10): no suitable image found. Did find:
/Applications/Smalltalk/Cog.app/Contents/Resources/libicui18n.dylib: mach-o, but wrong architecture
What does "mach-o, but wrong architecture" mean? 64bits instead of 32 or
something else?
Jan.
participants (3)
-
Esteban Lorenzano -
Jan van de Sandt -
Mariano Martinez Peck