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

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

 

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


_______________________________________________
Bug-gnubg mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnubg

Reply via email to