octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Latest from hg on OSX


From: Thomas Treichl
Subject: Re: Latest from hg on OSX
Date: Tue, 17 Jun 2008 22:43:57 +0200
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)

Ben Abbott schrieb:
On Tuesday, June 17, 2008, at 03:39PM, "Thomas Treichl" <address@hidden> wrote:
Shai Ayal schrieb:
On Tue, Jun 17, 2008 at 9:18 PM, Carlo de Falco <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]