[Top][All Lists]

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

[Bug-gnubg] compilation error: "'gl.h' file not found" on Mac OS X

From: Daisuke Takahashi
Subject: [Bug-gnubg] compilation error: "'gl.h' file not found" on Mac OS X
Date: Sat, 28 Jun 2014 19:15:53 +0900

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.

Daisuke Takahashi

Attachment: opengl_header-path_Mac_fun3d-h.diff
Description: Binary data


Attachment: opengl_header-path_Mac_inc3d-h.diff
Description: Binary data

reply via email to

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