Re: [Pharo-project] Athens Mac os doc like animation
Igor, it seems the cairo lib that comes within jenkins crashes the image when used. I switched back to the one i've built, and it works just fine. Stef, if you replace the one in the Plugins folder with the attached it should work. (and making the changes i posted before). On Wed, Jul 4, 2012 at 10:57 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Oops, replace NBCog in the path by NBCog.app , as in:
TCairoLibrary class>>nbLibraryNameOrHandle ....(Smalltalk vm vmPath asFileReference / 'NBCog.app' / 'Contents'/ 'MacOS' / 'Plugins' / 'libcairo.2.dylib' ) fullName .........
On Wed, Jul 4, 2012 at 10:27 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
To properly run the example, besides installing Athens you need to have Athens-SVG and XML Support.
"SVG support -----------------------------------------------------------------------" Gofer it url: 'http://www.squeaksource.com/MetacelloRepository'; package: 'ConfigurationOfXMLSupport'; load. (Smalltalk globals classNamed: 'ConfigurationOfXMLSupport') load.
Gofer it squeaksource: 'Athens'; package: 'Athens-SVG'; load.
To fix the previous mentioned library path modification install this, as temporal HACK, before Igors get's the change to review it.
TCairoLibrary class>>nbLibraryNameOrHandle (NativeBoost platformId = NativeBoostConstants linux32PlatformId) ifTrue: [ ^ '/usr/lib/libcairo.so' ]. (NativeBoost platformId = NativeBoostConstants mac32PlaformId) ifTrue: [ ^ (Smalltalk vm vmPath asFileReference / 'NBCog' / 'Contents'/ 'MacOS' / 'Plugins' / 'libcairo.2.dylib' ) fullName ]. self error: 'define your own path'
On Wed, Jul 4, 2012 at 10:04 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Hi Stef, surely is happening because the path to the Cairo Lib changed.
It used to in the MacPorts path, but now Igor is shipping NB vm's with Cairo. So we should change the following method.
TCairoLibrary>>nbLibraryNameOrHandle (NativeBoost platformId = NativeBoostConstants linux32PlatformId) ifTrue: [ ^ '/usr/lib/libcairo.so' ]. (NativeBoost platformId = NativeBoostConstants mac32PlaformId) ifTrue: [ ^ '/opt/local/lib/libcairo.2.dylib' ]. self error: 'define your own path'
Fixing it now, will send the new method .
Fernando
On Wed, Jul 4, 2012 at 7:26 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
ASZoomerMorph new svg: 'Coche_ok_verte.svg' zoom: 0.1; openInWorld
Alex this is the example I was talking to you about.
Igor this is strange when I executed the athens image in which you hacked the animation on the latest NBCog vm it crashes.
Do you know where I can find the latest Athens friendly vm?
Stef
thanks fernando could you publish your image and vm somewhere? Because I have a lot more problems and this is a pain. Stef On Jul 4, 2012, at 11:08 PM, Fernando Olivero wrote:
Igor, it seems the cairo lib that comes within jenkins crashes the image when used.
I switched back to the one i've built, and it works just fine.
Stef, if you replace the one in the Plugins folder with the attached it should work. (and making the changes i posted before).
On Wed, Jul 4, 2012 at 10:57 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Oops, replace NBCog in the path by NBCog.app , as in:
TCairoLibrary class>>nbLibraryNameOrHandle ....(Smalltalk vm vmPath asFileReference / 'NBCog.app' / 'Contents'/ 'MacOS' / 'Plugins' / 'libcairo.2.dylib' ) fullName .........
On Wed, Jul 4, 2012 at 10:27 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
To properly run the example, besides installing Athens you need to have Athens-SVG and XML Support.
"SVG support -----------------------------------------------------------------------" Gofer it url: 'http://www.squeaksource.com/MetacelloRepository'; package: 'ConfigurationOfXMLSupport'; load. (Smalltalk globals classNamed: 'ConfigurationOfXMLSupport') load.
Gofer it squeaksource: 'Athens'; package: 'Athens-SVG'; load.
To fix the previous mentioned library path modification install this, as temporal HACK, before Igors get's the change to review it.
TCairoLibrary class>>nbLibraryNameOrHandle (NativeBoost platformId = NativeBoostConstants linux32PlatformId) ifTrue: [ ^ '/usr/lib/libcairo.so' ]. (NativeBoost platformId = NativeBoostConstants mac32PlaformId) ifTrue: [ ^ (Smalltalk vm vmPath asFileReference / 'NBCog' / 'Contents'/ 'MacOS' / 'Plugins' / 'libcairo.2.dylib' ) fullName ]. self error: 'define your own path'
On Wed, Jul 4, 2012 at 10:04 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Hi Stef, surely is happening because the path to the Cairo Lib changed.
It used to in the MacPorts path, but now Igor is shipping NB vm's with Cairo. So we should change the following method.
TCairoLibrary>>nbLibraryNameOrHandle (NativeBoost platformId = NativeBoostConstants linux32PlatformId) ifTrue: [ ^ '/usr/lib/libcairo.so' ]. (NativeBoost platformId = NativeBoostConstants mac32PlaformId) ifTrue: [ ^ '/opt/local/lib/libcairo.2.dylib' ]. self error: 'define your own path'
Fixing it now, will send the new method .
Fernando
On Wed, Jul 4, 2012 at 7:26 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
ASZoomerMorph new svg: 'Coche_ok_verte.svg' zoom: 0.1; openInWorld
Alex this is the example I was talking to you about.
Igor this is strange when I executed the athens image in which you hacked the animation on the latest NBCog vm it crashes.
Do you know where I can find the latest Athens friendly vm?
Stef
<libcairo.2.dylib>
On 4 July 2012 23:08, Fernando Olivero <fernando.olivero@usi.ch> wrote:
Igor, it seems the cairo lib that comes within jenkins crashes the image when used.
it doesn't crashes my image.. it is simply not loads in my image, as well as freetype. i checking that..
I switched back to the one i've built, and it works just fine.
Stef, if you replace the one in the Plugins folder with the attached it should work. (and making the changes i posted before).
On Wed, Jul 4, 2012 at 10:57 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Oops, replace NBCog in the path by NBCog.app , as in:
TCairoLibrary class>>nbLibraryNameOrHandle ....(Smalltalk vm vmPath asFileReference / 'NBCog.app' / 'Contents'/ 'MacOS' / 'Plugins' / 'libcairo.2.dylib' ) fullName .........
On Wed, Jul 4, 2012 at 10:27 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
To properly run the example, besides installing Athens you need to have Athens-SVG and XML Support.
"SVG support -----------------------------------------------------------------------" Gofer it url: 'http://www.squeaksource.com/MetacelloRepository'; package: 'ConfigurationOfXMLSupport'; load. (Smalltalk globals classNamed: 'ConfigurationOfXMLSupport') load.
Gofer it squeaksource: 'Athens'; package: 'Athens-SVG'; load.
To fix the previous mentioned library path modification install this, as temporal HACK, before Igors get's the change to review it.
TCairoLibrary class>>nbLibraryNameOrHandle (NativeBoost platformId = NativeBoostConstants linux32PlatformId) ifTrue: [ ^ '/usr/lib/libcairo.so' ]. (NativeBoost platformId = NativeBoostConstants mac32PlaformId) ifTrue: [ ^ (Smalltalk vm vmPath asFileReference / 'NBCog' / 'Contents'/ 'MacOS' / 'Plugins' / 'libcairo.2.dylib' ) fullName ]. self error: 'define your own path'
On Wed, Jul 4, 2012 at 10:04 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Hi Stef, surely is happening because the path to the Cairo Lib changed.
It used to in the MacPorts path, but now Igor is shipping NB vm's with Cairo. So we should change the following method.
TCairoLibrary>>nbLibraryNameOrHandle (NativeBoost platformId = NativeBoostConstants linux32PlatformId) ifTrue: [ ^ '/usr/lib/libcairo.so' ]. (NativeBoost platformId = NativeBoostConstants mac32PlaformId) ifTrue: [ ^ '/opt/local/lib/libcairo.2.dylib' ]. self error: 'define your own path'
Fixing it now, will send the new method .
Fernando
On Wed, Jul 4, 2012 at 7:26 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
ASZoomerMorph new svg: 'Coche_ok_verte.svg' zoom: 0.1; openInWorld
Alex this is the example I was talking to you about.
Igor this is strange when I executed the athens image in which you hacked the animation on the latest NBCog vm it crashes.
Do you know where I can find the latest Athens friendly vm?
Stef
-- Best regards, Igor Stasenko.
thanks igor. On Jul 5, 2012, at 9:33 AM, Igor Stasenko wrote:
On 4 July 2012 23:08, Fernando Olivero <fernando.olivero@usi.ch> wrote:
Igor, it seems the cairo lib that comes within jenkins crashes the image when used.
it doesn't crashes my image.. it is simply not loads in my image, as well as freetype. i checking that..
I switched back to the one i've built, and it works just fine.
Stef, if you replace the one in the Plugins folder with the attached it should work. (and making the changes i posted before).
On Wed, Jul 4, 2012 at 10:57 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Oops, replace NBCog in the path by NBCog.app , as in:
TCairoLibrary class>>nbLibraryNameOrHandle ....(Smalltalk vm vmPath asFileReference / 'NBCog.app' / 'Contents'/ 'MacOS' / 'Plugins' / 'libcairo.2.dylib' ) fullName .........
On Wed, Jul 4, 2012 at 10:27 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
To properly run the example, besides installing Athens you need to have Athens-SVG and XML Support.
"SVG support -----------------------------------------------------------------------" Gofer it url: 'http://www.squeaksource.com/MetacelloRepository'; package: 'ConfigurationOfXMLSupport'; load. (Smalltalk globals classNamed: 'ConfigurationOfXMLSupport') load.
Gofer it squeaksource: 'Athens'; package: 'Athens-SVG'; load.
To fix the previous mentioned library path modification install this, as temporal HACK, before Igors get's the change to review it.
TCairoLibrary class>>nbLibraryNameOrHandle (NativeBoost platformId = NativeBoostConstants linux32PlatformId) ifTrue: [ ^ '/usr/lib/libcairo.so' ]. (NativeBoost platformId = NativeBoostConstants mac32PlaformId) ifTrue: [ ^ (Smalltalk vm vmPath asFileReference / 'NBCog' / 'Contents'/ 'MacOS' / 'Plugins' / 'libcairo.2.dylib' ) fullName ]. self error: 'define your own path'
On Wed, Jul 4, 2012 at 10:04 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Hi Stef, surely is happening because the path to the Cairo Lib changed.
It used to in the MacPorts path, but now Igor is shipping NB vm's with Cairo. So we should change the following method.
TCairoLibrary>>nbLibraryNameOrHandle (NativeBoost platformId = NativeBoostConstants linux32PlatformId) ifTrue: [ ^ '/usr/lib/libcairo.so' ]. (NativeBoost platformId = NativeBoostConstants mac32PlaformId) ifTrue: [ ^ '/opt/local/lib/libcairo.2.dylib' ]. self error: 'define your own path'
Fixing it now, will send the new method .
Fernando
On Wed, Jul 4, 2012 at 7:26 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
ASZoomerMorph new svg: 'Coche_ok_verte.svg' zoom: 0.1; openInWorld
Alex this is the example I was talking to you about.
Igor this is strange when I executed the athens image in which you hacked the animation on the latest NBCog vm it crashes.
Do you know where I can find the latest Athens friendly vm?
Stef
-- Best regards, Igor Stasenko.
ok.. 1. fixed FFI dependency, just try to load same config of athens over again (if in fresh image).. 2. the plugin search path change was not committed, we checked that with Esteban, neither NBCog, nor vanilla Cog VMs see freetype plugin.. lets wait till jenkins produce a new VM builds... On 5 July 2012 09:48, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
thanks igor.
On Jul 5, 2012, at 9:33 AM, Igor Stasenko wrote:
On 4 July 2012 23:08, Fernando Olivero <fernando.olivero@usi.ch> wrote:
Igor, it seems the cairo lib that comes within jenkins crashes the image when used.
it doesn't crashes my image.. it is simply not loads in my image, as well as freetype. i checking that..
I switched back to the one i've built, and it works just fine.
Stef, if you replace the one in the Plugins folder with the attached it should work. (and making the changes i posted before).
On Wed, Jul 4, 2012 at 10:57 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Oops, replace NBCog in the path by NBCog.app , as in:
TCairoLibrary class>>nbLibraryNameOrHandle ....(Smalltalk vm vmPath asFileReference / 'NBCog.app' / 'Contents'/ 'MacOS' / 'Plugins' / 'libcairo.2.dylib' ) fullName .........
On Wed, Jul 4, 2012 at 10:27 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
To properly run the example, besides installing Athens you need to have Athens-SVG and XML Support.
"SVG support -----------------------------------------------------------------------" Gofer it url: 'http://www.squeaksource.com/MetacelloRepository'; package: 'ConfigurationOfXMLSupport'; load. (Smalltalk globals classNamed: 'ConfigurationOfXMLSupport') load.
Gofer it squeaksource: 'Athens'; package: 'Athens-SVG'; load.
To fix the previous mentioned library path modification install this, as temporal HACK, before Igors get's the change to review it.
TCairoLibrary class>>nbLibraryNameOrHandle (NativeBoost platformId = NativeBoostConstants linux32PlatformId) ifTrue: [ ^ '/usr/lib/libcairo.so' ]. (NativeBoost platformId = NativeBoostConstants mac32PlaformId) ifTrue: [ ^ (Smalltalk vm vmPath asFileReference / 'NBCog' / 'Contents'/ 'MacOS' / 'Plugins' / 'libcairo.2.dylib' ) fullName ]. self error: 'define your own path'
On Wed, Jul 4, 2012 at 10:04 PM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Hi Stef, surely is happening because the path to the Cairo Lib changed.
It used to in the MacPorts path, but now Igor is shipping NB vm's with Cairo. So we should change the following method.
TCairoLibrary>>nbLibraryNameOrHandle (NativeBoost platformId = NativeBoostConstants linux32PlatformId) ifTrue: [ ^ '/usr/lib/libcairo.so' ]. (NativeBoost platformId = NativeBoostConstants mac32PlaformId) ifTrue: [ ^ '/opt/local/lib/libcairo.2.dylib' ]. self error: 'define your own path'
Fixing it now, will send the new method .
Fernando
On Wed, Jul 4, 2012 at 7:26 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
ASZoomerMorph new svg: 'Coche_ok_verte.svg' zoom: 0.1; openInWorld
Alex this is the example I was talking to you about.
Igor this is strange when I executed the athens image in which you hacked the animation on the latest NBCog vm it crashes.
Do you know where I can find the latest Athens friendly vm?
Stef
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
On Jul 5, 2012, at 9:53 AM, Igor Stasenko wrote:
ok..
1. fixed FFI dependency, just try to load same config of athens over again (if in fresh image)..
2. the plugin search path change was not committed, we checked that with Esteban, neither NBCog, nor vanilla Cog VMs see freetype plugin.. lets wait till jenkins produce a new VM buildsâ¦
Ok I really want to have fun with athens so tell when this is ok :) Stef
On 5 July 2012 11:02, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
On Jul 5, 2012, at 9:53 AM, Igor Stasenko wrote:
ok..
1. fixed FFI dependency, just try to load same config of athens over again (if in fresh image)..
2. the plugin search path change was not committed, we checked that with Esteban, neither NBCog, nor vanilla Cog VMs see freetype plugin.. lets wait till jenkins produce a new VM buildsâ¦
Ok I really want to have fun with athens so tell when this is ok :)
Stef
ok, the latest VM build seems to be working. what i did: 1. download VM [ https://ci.lille.inria.fr/pharo/view/NativeBoost/job/NB-Cog-Mac-Cocoa/28/art... ] 2. downloaded 2.0 image 3. loaded ConfigurationOfAthens 4. doit: ConfigurationOfAthens loadVersion: '1.2.1' 5: doit: AthensFlakeDemo new openInWorld and it works , as in here: https://vimeo.com/45137985 :) -- Best regards, Igor Stasenko.
On 5 July 2012 11:48, Igor Stasenko <siguctua@gmail.com> wrote:
On 5 July 2012 11:02, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
On Jul 5, 2012, at 9:53 AM, Igor Stasenko wrote:
ok..
1. fixed FFI dependency, just try to load same config of athens over again (if in fresh image)..
2. the plugin search path change was not committed, we checked that with Esteban, neither NBCog, nor vanilla Cog VMs see freetype plugin.. lets wait till jenkins produce a new VM buildsâ¦
Ok I really want to have fun with athens so tell when this is ok :)
Stef
ok, the latest VM build seems to be working. what i did: 1. download VM [ https://ci.lille.inria.fr/pharo/view/NativeBoost/job/NB-Cog-Mac-Cocoa/28/art... ] 2. downloaded 2.0 image 3. loaded ConfigurationOfAthens
4. doit: ConfigurationOfAthens loadVersion: '1.2.1'
5: doit: AthensFlakeDemo new openInWorld
and it works , as in here: https://vimeo.com/45137985
:)
and then i loaded ConfigurationOfXMLSupport from config browser, filed in the ASAnimation.st then ASZoomerMorph.st and then did ASZoomerMorph new svg: 'Coche_ok_verte.svg' zoom: 0.1; openInWorld and here what i got (see attached)
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
On 5 July 2012 11:55, Igor Stasenko <siguctua@gmail.com> wrote:
On 5 July 2012 11:48, Igor Stasenko <siguctua@gmail.com> wrote:
On 5 July 2012 11:02, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
On Jul 5, 2012, at 9:53 AM, Igor Stasenko wrote:
ok..
1. fixed FFI dependency, just try to load same config of athens over again (if in fresh image)..
2. the plugin search path change was not committed, we checked that with Esteban, neither NBCog, nor vanilla Cog VMs see freetype plugin.. lets wait till jenkins produce a new VM buildsâ¦
Ok I really want to have fun with athens so tell when this is ok :)
Stef
ok, the latest VM build seems to be working. what i did: 1. download VM [ https://ci.lille.inria.fr/pharo/view/NativeBoost/job/NB-Cog-Mac-Cocoa/28/art... ] 2. downloaded 2.0 image 3. loaded ConfigurationOfAthens
4. doit: ConfigurationOfAthens loadVersion: '1.2.1'
5: doit: AthensFlakeDemo new openInWorld
and it works , as in here: https://vimeo.com/45137985
:)
and then i loaded ConfigurationOfXMLSupport from config browser,
ah, yes.. missing "loaded Athens-SVG" step here ...
filed in the ASAnimation.st then ASZoomerMorph.st
and then did
ASZoomerMorph new svg: 'Coche_ok_verte.svg' zoom: 0.1; openInWorld
and here what i got (see attached)
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
participants (3)
-
Fernando Olivero -
Igor Stasenko -
Stéphane Ducasse