GOPHERSPACE.DE - P H O X Y
gophering on sdf.org
GLUT on MacOS X
===============

As you might know, I have a software [1] that uses the OpenGL and which
has some sort of  GUI (Gtk+ - based). It is quite  portable but some of
libraries  which it  uses are  not.  I selected  the Gtk+  2.x for  the
software  some 17  year ago.  It  was current  in these  days. Later  I
back-ported some basic parts of the GUI  to Gtk+ 1.2 to make it work on
older systems (at that time I had a SGI Indy with smal RAM and just the
R4600PC CPU @133MHz - such setup was  too slow to run Gtk+ 2.x). Before
I started to play  with GUI I have made a simple  OpenGL output (just a
window  with picture,  nothing more)  to  have at  least some  graphics
output. Such  simple solution  have proved  to be  very useful  in many
situations (for remote works and so). So it is still available in code.
This sort of things uses the GLUT  [2] for basic window control. I even
didn't implemented any menu.

I have been using  this thing from time to time. For  example, I use it
on my AIX box and I used it on the IRIX 5.3 before I installed the Gtk+
1.2 here.

But I wasn't able  to use this thing on my PowerBook G4.  I ave OS 10.5
here but I  don't have any working  version of the Gtk  library on this
computer (is this thing still available? I once read that even a native
Gtk+ exists but never saw it). Using  FEA software just in text mode is
not feasible today so I wanted to have at leas the GLUT-enabled version
here.

It proved  to be possible. But  it's Apple so some  things are special.
OpenGL and  GLU stuff  dwell in /System/Library/Framework.*  The static
library for glut is not named  "libglut.a" but "GLUT" (yes, without the
suffix!) and it  is not located in the "Libraries"  subdirectory of the
Framework.GLUT.

But  it works.  And  it does  not  require X11  subsystem  which is  an
additions (albeit small) plus.


References:

[1] htps://github.com/jurabr
[2] https://www.opengl.org/resources/libraries/glut/