[squeak-dev] Re: [Pharo-project] [ANN] JNIPort 2.0 for VisualWorks,
Pharo and Squeak
Joachim Geidel
joachim.geidel at onlinehome.de
Sat Feb 5 19:09:53 UTC 2011
Am 05.02.11 18:11 schrieb Tudor Girba:
> What are the impediments of getting it to work with Cog on Pharo?
JNIPort relies on Alien, and I have not yet found a Cog VM working with
Alien and JNIPort.
I tried Squeak 5.8b12 for Mac OS X which identifies itself as Cog, but it
crashes when you just evaluate "LibCLibrary uniqueInstance". Apparently this
VM version doesn't work with Alien.
Eliot's latest Cog build for Mac OS X at
http://www.mirandabanda.org/files/Cog/VM/VM.r2349/ is able to load libc.
When I try to use JNIPort, it can't find the library libjvm.dylib when I
create a symbolic link to it in the working directory. When I create a
symbolic link in the subdirectory Cog.app/Contents/Resources, it is able to
load the library, but the VM crashes with a bus error when I try to call the
first function of the library. I currently have no idea what causes the
error. As the same code runs without problems on a Squeak VM, I don't think
that the problem is in the JNIPort code, but I may be wrong.
So, no JNIPort on Cog for now. This may change soon, of course.
Regards,
Joachim Geidel
More information about the Squeak-dev
mailing list
|