[Pharo-project] How-to load Alien FFI on Pharo?
Hi, I saw a lot of discussions about Alien FFI 2 weeks ago. I still can't load it on Pharo because of the following syntax error: Ccalloc: byteSize "<Integer> ^<Integer>" <primitive: 'primCalloc' error: Literal constant expected ->errorCode module: 'IA32ABI'> ^self primitiveFailed Can one of you help me load it? I would like to work on CairoGraphics (http://www.squeaksource.com/CairoGraphics.html) but this requires Alien. I used: ScriptLoader loadLatestPackage: 'AlienLoader' from: 'http://www.squeaksource.com/Alien'. (Smalltalk at: #AlienLoader) load Thank you -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
There is a package Alien-Prereqs in the repo. You need to load this package before the rest of Alien. Marco Schmidt -- View this message in context: http://n2.nabble.com/How-to-load-Alien-FFI-on-Pharo-tp3711371p3711622.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
On Fri, Sep 25, 2009 at 10:34 AM, Stéphane Ducasse < stephane.ducasse@inria.fr> wrote:
It would be good to have the AlienLoader fixed.
Yes please. I also want to load easily Alien in Pharo. Sorry if this was asked, but is somewhere the plugin compiled for different architectures? I mean, I want to use Alien in Windows, Linux and Mac. Is this possible? where are those files? Thanks! Mariano
Stef
There is a package Alien-Prereqs in the repo. You need to load this package before the rest of Alien.
Marco Schmidt
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
2009/9/25 Mariano Martinez Peck <marianopeck@gmail.com>:
On Fri, Sep 25, 2009 at 10:34 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
It would be good to have the AlienLoader fixed.
Yes please. I also want to load easily Alien in Pharo.
I attached a fixed loader in another email today. Let's hope it will soon be commited. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
On Fri, Sep 25, 2009 at 12:00 PM, Damien Cassou <damien.cassou@gmail.com>wrote:
2009/9/25 Mariano Martinez Peck <marianopeck@gmail.com>:
On Fri, Sep 25, 2009 at 10:34 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
It would be good to have the AlienLoader fixed.
Yes please. I also want to load easily Alien in Pharo.
I attached a fixed loader in another email today. Let's hope it will soon be commited.
Yeah, I tried and seems to load ok. But I couldn't run tests as I need the library ;) I got a "a primiteve has failed"
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (4)
-
Damien Cassou -
Marco Schmidt -
Mariano Martinez Peck -
Stéphane Ducasse