On Nov 6, 2012, at 7:07 AM, Alexander Burger wrote:

> Hi Jorge,
> 
>> The following patch makes it work on Mac:
>> 
>> (default
>> -   *GluLib "libGLU.so"
>> -   *GlutLib "libglut.so" )
>> +   *GluLib (if (= *OS "Darwin")
>> +              "/System/Library/Frameworks/OpenGL.framework/OpenGL"
>> +              "libGLU.so" )
>> +   *GlutLib (if (= *OS "Darwin")
>> +               "/System/Library/Frameworks/GLUT.framework/GLUT"
>> +               "libglut.so" ) )
> 
> Great, thanks!
> 
> 
> However, instead of hard-coding a system dependency, I would suggest we
> stay with the current version of "lib/openGl.l"

Shouldn't it just provide sane defaults for the platform in question? There is 
no libGLU.so on OS X...


> 
>>  (default
>>     *GluLib "libGLU.so"
>>     *GlutLib "libglut.so" )
> 
> and pass such "special" pathes in the application before calling the
> library:
> 
>   (setq
>      *GluLib  "/System/Library/Frameworks/OpenGL.framework/OpenGL"
>      *GlutLib "/System/Library/Frameworks/GLUT.framework/GLUT" )
> 
>   (load "@lib/openGl.l")
> 
> In that way, the 'default' in the library won't override it.

But that seems contrary to the DRY motto. All applications will need to do that 
in order to run on OS X.


> 
> Cheers,
> - Alex
> -- 
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to