added the init error handler example program contributed by Chris Marshall
[freeglut] / README.mac
1                               January 2011
2 To the gentle Mac user,
3
4 I realize that this is hardly a full explanation of how to build on a Mac,
5 but it will need to suffice for now.
6
7 There was an e-mail on the "freeglut" developers mailing list titled
8 "Compiling Static freeglut on mac" with a datestamp of 10/12/2010 at
9 11:20 AM (possibly corrected for Central time, USA).  Another e-mail
10 on the same mailing list from the same person, in reply to his original
11 missive, is dated 11/9/2010 at 10:03 PM.  This file is an attempt to
12 capture the knowledge in those two e-mails.
13
14 The author of the e-mails was trying to compile a static "freeglut"
15 library on Mac OSX version 10.5.8.  He tried building both freeglut
16 versions 2.4.0 and 2.6.0 with a command ...
17
18 ./configure --disabled-shared --enable-static
19 make
20
21 ... and got a "non_lazy_ptr" error in both cases.  He was able to fix
22 the problem by using the following "configure" command instead:
23
24 ./configure --disable-warnings --disable-shared --enable-static CPPFLAGS=-I/usr/X11/include -L/usr/X11/lib LDFLAGS=-I/usr/X11/include -L/usr/X11/lib -framework GLUT
25
26
27 Any further information on building "freeglut" on a Mac would be deeply
28 appreciated.  I believe that much of the information on building it on
29 *nix systems also applies to the Mac.
30
31 John F. Fay
32 1/22/11
33