Latest from hg on OSX

Thomas Treichl Thomas.Treichl at gmx.net
Tue Jun 17 15:43:57 CDT 2008


Ben Abbott schrieb:
> On Tuesday, June 17, 2008, at 03:39PM, "Thomas Treichl" <Thomas.Treichl at gmx.net> wrote:
>> Shai Ayal schrieb:
>>> On Tue, Jun 17, 2008 at 9:18 PM, Carlo de Falco <carlo.defalco at gmail.com> wrote:
>>>> 2) I had to change
>>>> #include GL/gl.h    to     #include OpenGL/gl.h
>>>> and
>>>> #include GL/glu.h   to     #include OpenGL/glu.h
>>>> in gl-renderer.h
>>> Michael,
>>>
>>> I think the fltk team have figured out a cross platform way of
>>> including the OpenGL headers:
>>>
>>> http://svn.easysw.com/public/fltk/fltk/tags/release-1.1.8/FL/gl.h
>>> http://svn.easysw.com/public/fltk/fltk/tags/release-1.1.8/FL/glu.h
>>>
>>> maybe we should adopt it?
>> I wonder where this OpenGL directory comes from or where it should be placed? I 
>> searched my Mac for that OpenGL directory but couldn't find it. I have used 
>> Apple's original GL framework, the headers are in /usr/X11R6/include/GL and the 
>> libs can be accessed by '-framework OpenGL'. There are no changes necessary from 
>> my point of view. Somebody please posts the output from
>>
>>   bash~$ sudo find / -iname OpenGL
>>
>> and
>>
>>   bash~$ sudo find / -iname gl.h
>>
>> Thanks,
>>   Thomas
>>
> 
> Intel based Mac running Leopard (10.5.3)
> 
<STRIP>
> bens-macbook:~ bpabbott$ sudo find / -iname gl.h 
> Password:
> /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h
> /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
> /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/GL/gl.h
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
> /Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/GL/gl.h
> /sw/include/FL/gl.h
> /sw/include/mesa/GL/gl.h
> /System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h
> /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
> /usr/X11/include/GL/gl.h
> /usr/X11R6 1/include/GL/gl.h
> 
> Ben
> 
> p.s. If useful I can supply PPC (G4) results for Leopard as well.

Thanks Ben, not necessary - that's enough. I can see the same output that I can 
also see on my Mac. But I still do not understand why it should be necessary to 
#include <OpenGL/gl.h> instead of #include <GL/gl.h> on a Mac platform? I think 
we need Carlo's output of

   bash~$ sudo find / -iname gl.h

I also tried to replace the #include <GL/gl.h> with #include <OpenGL/gl.h> and 
the same for the glu.h. Next I tried the -FOpenGL flag with CPPFLAGS. All with 
the same result: a compilation error. So, might there be some mismatch of GL 
headers? BTW, I'm posting my output from my Intel 10.4.9 system (that, BTW, I 
try to keep as clean as possible):

/Applications/Octave.app/Contents/Resources/include/FL/gl.h
/Developer/SDKs/MacOSX10.2.8.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h
/Developer/SDKs/MacOSX10.2.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
/Developer/SDKs/MacOSX10.3.9.sdk/usr/X11R6/include/GL/gl.h
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/GL/gl.h
/System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h
/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
/usr/X11R6/include/GL/gl.h

Thomas


More information about the Octave-maintainers mailing list