[Pharo-project] Athens Mac os doc like animation

Stéphane Ducasse stephane.ducasse at inria.fr
Thu Jul 5 01:42:17 EDT 2012


On Jul 5, 2012, at 1:58 AM, Igor Stasenko wrote:

> On 4 July 2012 22:57, Fernando Olivero <fernando.olivero at 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
>>           .........
>> 
> 
> i changed the trait to use the extra class - CairoLibraryLoader
> so trait just calls to that class, and path finding is residing in
> class methods instead.
> 
> 
> damn, i should commit more often :)

yes
can you commit before I leave on vacation?
So that I can have a look at athens a bit more?

Stef

> 
>> 
>> On Wed, Jul 4, 2012 at 10:27 PM, fernando.olivero at usi.ch
>> <fernando.olivero at 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 at usi.ch
>>> <fernando.olivero at 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 at 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.
> 





More information about the Pharo-dev mailing list