Hi,
i was trying to load JNIPort as described on squeaksource on my Macbook (OS X 10.6.6). I downloaded the latest Pharo 1.2 from Hudson (https://pharo-ic.lille.inria.fr/hudson/view/Pharo/job/Pharo%201.2/) and opened it using SqueakVM 5.8b12. I was able to load Alien using the following command:
Gofer it
squeaksource:'MetacelloRepository' ;
package: 'ConfigurationOfAlien';
load.
((Smalltalk globals classNamed: 'ConfigurationOfAlien')
project version: 'Pharo 1.2')
load: 'Core'; load: 'LibC Then i loaded the JNIPort Configuration:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi Matthias,
Thanks for reporting. I forwarded the message to the Pharo mailing list as well. Can anyone help? Cheers, Doru On 14 Feb 2011, at 12:10, Matthias Junker wrote: > Hi, > > i was trying to load JNIPort as described on squeaksource on my Macbook (OS X 10.6.6). I downloaded the latest Pharo 1.2 from Hudson (https://pharo-ic.lille.inria.fr/hudson/view/Pharo/job/Pharo%201.2/) and opened it using SqueakVM 5.8b12. I was able to load Alien using the following command: > > Gofer it > squeaksource:'MetacelloRepository' ; > package: 'ConfigurationOfAlien'; > load. > > ((Smalltalk globals classNamed: 'ConfigurationOfAlien') > project version: 'Pharo 1.2') > load: 'Core'; load: 'LibC > > Then i loaded the JNIPort Configuration: > Gofer it > squeaksource: 'JNIPort'; > package: 'ConfigurationOfJNIPort'; > load. > > But when i load the actual project with this: > ConfigurationOfJNIPort project latestVersion load > I get the following error in the class StandardLibInterface(AlienLibrary)>>load > libraryName: '/System/Library/Frameworks/System.framework/System' > errorCode: #'not found' > > When i check on the file system i find a symbolic link which points to /usr/lib/libSystem.B.dylib (which also exists there). > > Any hints to what i'm doing wrong? > > Cheers, > Matt > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev -- www.tudorgirba.com "In a world where everything is moving ever faster, one might have better chances to win by moving slower." _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi Cyrille,
Did you manage to get JNIPort working on Pharo 1.2? Cheers, Doru On 14 Feb 2011, at 12:16, Tudor Girba wrote: > Hi Matthias, > > Thanks for reporting. I forwarded the message to the Pharo mailing list as well. > > Can anyone help? > > Cheers, > Doru > > > On 14 Feb 2011, at 12:10, Matthias Junker wrote: > >> Hi, >> >> i was trying to load JNIPort as described on squeaksource on my Macbook (OS X 10.6.6). I downloaded the latest Pharo 1.2 from Hudson (https://pharo-ic.lille.inria.fr/hudson/view/Pharo/job/Pharo%201.2/) and opened it using SqueakVM 5.8b12. I was able to load Alien using the following command: >> >> Gofer it >> squeaksource:'MetacelloRepository' ; >> package: 'ConfigurationOfAlien'; >> load. >> >> ((Smalltalk globals classNamed: 'ConfigurationOfAlien') >> project version: 'Pharo 1.2') >> load: 'Core'; load: 'LibC >> >> Then i loaded the JNIPort Configuration: >> Gofer it >> squeaksource: 'JNIPort'; >> package: 'ConfigurationOfJNIPort'; >> load. >> >> But when i load the actual project with this: >> ConfigurationOfJNIPort project latestVersion load >> I get the following error in the class StandardLibInterface(AlienLibrary)>>load >> libraryName: '/System/Library/Frameworks/System.framework/System' >> errorCode: #'not found' >> >> When i check on the file system i find a symbolic link which points to /usr/lib/libSystem.B.dylib (which also exists there). >> >> Any hints to what i'm doing wrong? >> >> Cheers, >> Matt >> >> _______________________________________________ >> Moose-dev mailing list >> [hidden email] >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > -- > www.tudorgirba.com > > "In a world where everything is moving ever faster, > one might have better chances to win by moving slower." > > > -- www.tudorgirba.com "When people care, great things can happen." _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hey,
i got one step further by using Squeak VM 4.2.5beta1U with Pharo 1.2. I now am able to load JNIPort via the following:
So far everything looks alright. I attached the Debug.log with all the detail. Any help is appreciated. Cheers Matt
On Wed, Feb 16, 2011 at 7:50 PM, Tudor Girba <[hidden email]> wrote: Hi Cyrille, _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev PharoDebug.log (295K) Download Attachment |
And another thing:
can anyone explain what the IAB32 plugin is? The wiki page says: To use JNIPort for Pharo and Squeak, you need a Squeak virtual machine with the IAB32 plugin which contains the primitives used by the Alien foreign function interface library.
Can anybody explain what this means? Is this already included when i download squeakvm or do i have to do anything else? i couldn't find anything on this subject.
Cheers Matt
On Wed, Feb 16, 2011 at 10:50 PM, Matthias Junker <[hidden email]> wrote: Hey, _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
That's how I used to load JNIPort in a 1.2 image:
Gofer new
package: 'JNIPortExample'; load. Then I know that my examples were working on 1.1, I will try in a 1.2 2011/2/16 Matthias Junker <[hidden email]> And another thing: _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
The configurationOfJNIPort works well. But I'm then not able to start the JVM. I have the same error than mathias
2011/2/17 Cyrille Delaunay <[hidden email]> That's how I used to load JNIPort in a 1.2 image: _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |