[gtkada] Configure doesn't find openGL

Pascal p.p14 at orange.fr
Mon Sep 5 22:23:53 CEST 2016


Hello,

The configure script only take in account OpenGL from GL,GL32,MesaGL values.
The GL value is for standard Unix lib and include structure.
That is suitable for OpenGL with X11 thus with MacOS all GTK must be built with X11.
I got it ok with GTK / GTKAda 3.8.

Else a new value GLQuartz or whatever should be added in configure with "-framework GLUT -framework OpenGL" instead of "-lGLU -lGL" for GTK built with Quartz.
See https://developer.apple.com/library/mac/qa/qa1613/_index.html.

Regards, Pascal.
http://blady.pagesperso-orange.fr


> Le 5 sept. 2016 à 14:52, Roger Mc Murtrie <rogermc at grapevine.com.au> a écrit :
> 
> 
> I tried --with-GL-prefix=/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries
> but that didn't work.
> I also tried LDFLAGS='-framework GLUT, -framework OpenGL'
> but configure still returns configure: error: Missing OpenGL library
> 
>> Begin forwarded message:
>> 
>> From: Roger Mc Murtrie <rogermc at grapevine.com.au>
>> Subject: Re: [gtkada] Configure doesn't find openGL
>> Date: 5 September 2016 at 10:31:53 PM AEST
>> To: Emmanuel Briot <briot at adacore.com>
>> Cc: gtkada at lists.adacore.com
>> 
>> This is outside my expertise.
>> Perhaps Pascal can advise?
>> Roger
>> 
>>> On 5 Sep 2016, at 10:25 PM, Emmanuel Briot <briot at adacore.com> wrote:
>>> 
>>>> If I omit --with-GL-prefix=/usr/X11
>>>> I get:
>>>> configure: error: Missing OpenGL library
>>> 
>>> right, I noticed this as well. But doesn't this mean we should find some other OpenGL library
>>> on OSX (and thus need further refinement to configure) rather than rely on an X11 library,
>>> when the rest of gtk+ doesn't use X11 on that platform ?
>>> 
>>> Emmanuel
>>> 
>> 
> 
> _______________________________________________
> gtkada mailing list
> gtkada at lists.adacore.com
> http://lists.adacore.com/mailman/listinfo/gtkada



More information about the gtkada mailing list