I'm not sure about whether you should've made the changes, but I believe the error you're reporting means that gcc couldn't find the library file to link in GL.

-- Early

On Feb 8, 2008 11:05 PM, Theeba Soundararajan <theebasound@gmail.com> wrote:
hello everyone;
thanks for all your feedback!
well after some time with freeglut here is what I came up with:

1.) I downloaded freeglut 2.4.0 and followed the instructions.

2.) it was looking for some files: glut.h, glu.h, and others included
in the GL framework ;I made local
     copies and changed the includes accordingly.

3.) Based on the freeglut.org website I made the following change:
(for net BSD):
LDFLAGS=-Wl,-R/usr/X11R6/lib

and I also made the following change based on another bulletin board
post I found:
CFLAGS="-I/usr/X11R6/include" CXXFLAGS="-I/usr/X11R6/include"
./configure –disable-warnings
(found on http://www.esden.net/blog/2006/09/18/installing-cl-opengl-on-mac-os-x/)

Everything looks like it's working fine: gcc is compiling and I'm
getting a ton of library files. And then I hit this:

gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I../../../include  -g -O2
-c -o CallbackMaker-CallbackMaker.o `test -f CallbackMaker.c || echo
'./'`CallbackMaker.c
/bin/sh ../../../libtool --mode=link gcc  -g -O2   -o CallbackMaker
-export-dynamic ../../../src/libglut.la CallbackMaker-CallbackMaker.o
mkdir .libs
gcc -g -O2 -o .libs/CallbackMaker CallbackMaker-CallbackMaker.o
-L../../../src/.libs -lglut -lm -lGL -lGLU -lXext -lX11
/usr/bin/ld: can't locate file for: -lGL
collect2: ld returned 1 exit status
make[4]: *** [CallbackMaker] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

what does this mean? Was I not supposed to make the changes?


thanks in advance for your help!

Theeba

On Fri, Feb 8, 2008 at 6:40 AM, Fay John F Dr CTR USAF 46 SK
<john.fay.ctr@eglin.af.mil> wrote:
> Rolf,
>
>         I really have no idea whether one can open or create any
>  "freeglut" windows natively based on the Quartz framework.  I can
>  certainly point people to where in the code the window opening happens.
>
>
>  John F. Fay
>  Technical Fellow
>  Jacobs Technology TEAS Group
>  850-883-1294
>
>  -----Original Message-----
>  From: freeglut-developer-bounces@lists.sourceforge.net
>  [mailto:freeglut-developer-bounces@lists.sourceforge.net] On Behalf Of
>
>
> Rolf Schneider
>  Sent: Friday, February 08, 2008 8:28 AM
>  To: FreeGLUT developers list
>  Subject: Re: [Freeglut-developer] FreeGlut and Mac OSX
>
>  Hi John,
>
>  well, that's interesting indeed! Is it possible to open/create any
>  "freeglut" windows that are natively based on OSX' Quartz framework?
>  (...without using "X11" as a workaround)?
>
>  Thanks,
>
>         Rolf
>
>
>
>  Fay John F Dr CTR USAF 46 SK wrote:
>  >       There are some parts of "freeglut" that are designed
>  > specifically for Mac OSX, so it should support that operating system.
>  > Unfortunately "freeglut" Mac users are fairly rare, so I cannot make
>  any
>  > promises.
>
>  --
>  S c i e n c e . D . V i s i o n s
>
>  Heiliger Weg 60
>  44135 Dortmund
>  Germany
>
>  phone +49.231.1675.450
>  fax   +49.231.1675.451
>
>  ------------------------------------------------------------------------
>  -
>  This SF.net email is sponsored by: Microsoft
>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  _______________________________________________
>  Freeglut-developer mailing list
>  Freeglut-developer@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/freeglut-developer
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by: Microsoft
>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  _______________________________________________
>  Freeglut-developer mailing list
>  Freeglut-developer@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/freeglut-developer
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freeglut-developer