[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] compilation error: "'gl.h' file not found" on Mac OS X
From: |
Louis Zulli |
Subject: |
Re: [Bug-gnubg] compilation error: "'gl.h' file not found" on Mac OS X |
Date: |
Sun, 29 Jun 2014 08:14:25 -0400 |
Hi,
On my 10.7.5 system, the header files gl.h and glu.h are present in at least
three different locations:
Apple-supplied in /System/Library/Frameworks/OpenGL.framework/Headers
Xquartz-supplied in /Opt/X11/include/GL
Macports-supplied in /opt/local/include/GL
So one should proceed with caution here ...
Louis
On Jun 28, 2014, at 6:15 AM, Daisuke Takahashi wrote:
> Dear all,
>
> I encountered below compilation error when I configured the gnubg with
> board3d.
>
> In file included from drawboard3d.c:25:
> ./inc3d.h:42:10: fatal error: 'gl.h' file not found
> #include <gl.h>
> ^
> 1 error generated.
>
> On Mac OS X (at least on OS X 10.7 and 10.8), header files for OpenGL seem to
> be provided as 'OpenGL/*.h' instead of '*.h'. With attached two patches,
> which replace <gl.h> and <glu.h> by <OpenGL/gl.h> and <OpenGL/glu.h>, the
> compilation process finished successfully and the resultant binary works fine
> here.
> This is potentially a macports-specific issue because I set up all of the X11
> environment using macports, though, I am really happy if you can check my
> patches. Thank you very much.
>
> Regards,
> Daisuke Takahashi
>
> <opengl_header-path_Mac_fun3d-h.diff><opengl_header-path_Mac_inc3d-h.diff>
>
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-gnubg