FreeGlut and Mac OSX

View: New views
16 Messages — Rating Filter:   Alert me  

FreeGlut and Mac OSX

by Theeba Soundararajan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Everyone;

my apologies if this isn't the appropriate forum, but I was wondering:
if there a working version of FreeGlut for Mac OSX/ Xcode?

everything I've read so far points me to Fink, which gives me an
incomplete package for FreeGlut.


This is the function I'm trying to use:
glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINLOOP_RETURNS);



any help you have would be much appreciated!

All the Best,

Theeba

-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: FreeGlut and Mac OSX

by Favre-Nicolin Vincent :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

        Hi,

> my apologies if this isn't the appropriate forum, but I was wondering:
> if there a working version of FreeGlut for Mac OSX/ Xcode?

  I would not want to prevent you from using _free_glut, but why not use the
GLUT implementation provided by Apple with Xcode ? To use it from Xcode you
just need a bit different includes, e.g.:

#include <OpenGL/glu.h>
#include "AGL/agl.h"
#include <GLUT/glut.h>

  And link with the GLUT framework.

  See http://developer.apple.com/samplecode/glut/index.html

        Vincent
--
Vincent Favre-Nicolin
Université Joseph Fourier
http://v.favrenicolin.free.fr
ObjCryst & Fox : http://objcryst.sourceforge.net

-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: FreeGlut and Mac OSX

by Early Ehlinger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The OP mentioned needing glutSetOption, which isn't part of Glut, but a freeglut extension.


On Feb 8, 2008 7:32 AM, Favre-Nicolin Vincent <vincefn@...> wrote:
       Hi,

> my apologies if this isn't the appropriate forum, but I was wondering:
> if there a working version of FreeGlut for Mac OSX/ Xcode?

 I would not want to prevent you from using _free_glut, but why not use the
GLUT implementation provided by Apple with Xcode ? To use it from Xcode you
just need a bit different includes, e.g.:

#include <OpenGL/glu.h>
#include "AGL/agl.h"
#include <GLUT/glut.h>

 And link with the GLUT framework.

 See http://developer.apple.com/samplecode/glut/index.html

       Vincent
--
Vincent Favre-Nicolin
Université Joseph Fourier
http://v.favrenicolin.free.fr
ObjCryst & Fox : http://objcryst.sourceforge.net

-------------------------------------------------------------------------
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@...
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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: FreeGlut and Mac OSX

by Fay, John F Dr CTR USAF AFMC 46 SK :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Theeba,

        Hello and welcome to the "freeglut" community.  This is indeed
the correct forum.

        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.

        I invite you to try out "freeglut" on your system and if there
are problems, please let us know and I will try to fix them.

John F. Fay
Technical Fellow
Jacobs Technology TEAS Group
850-883-1294

-----Original Message-----
From: freeglut-developer-bounces@...
[mailto:freeglut-developer-bounces@...] On Behalf Of
Theeba Soundararajan
Sent: Thursday, February 07, 2008 8:46 PM
To: freeglut-developer@...
Subject: [Freeglut-developer] FreeGlut and Mac OSX

Hello Everyone;

my apologies if this isn't the appropriate forum, but I was wondering:
if there a working version of FreeGlut for Mac OSX/ Xcode?

everything I've read so far points me to Fink, which gives me an
incomplete package for FreeGlut.


This is the function I'm trying to use:
glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE,
GLUT_ACTION_GLUTMAINLOOP_RETURNS);



any help you have would be much appreciated!

All the Best,

Theeba

------------------------------------------------------------------------
-
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@...
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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: FreeGlut and Mac OSX

by Rolf Schneider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: FreeGlut and Mac OSX

by Fay, John F Dr CTR USAF AFMC 46 SK :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
[mailto:freeglut-developer-bounces@...] 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@...
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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: FreeGlut and Mac OSX

by Theeba Soundararajan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...
>  [mailto:freeglut-developer-bounces@...] 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@...
>  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@...
>  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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: FreeGlut and Mac OSX

by Early Ehlinger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...> 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@...
>  [mailto:freeglut-developer-bounces@...] 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@...
>  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@...
>  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@...
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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Parent Message unknown Re: FreeGlut and Mac OSX

by John F. Fay :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Theeba,

        It looks like the compiler has successfully built the "freeglut" libraries
and is now trying to build the demonstration programs.  "CallbackMaker" is
the first demonstration program.  The "gcc" compiler is looking for the
OpenGL library "libGL.a" (or "libGL.so") and is not finding it.  If you
changed the path to the library in one place (that "CFLAGS" change you
mentioned) you may need to make it in another place where the demonstration
programs are built.

        The simplest alternative is to ignore the demonstration programs.  When
something else goes wrong later, though, working demonstration programs
would be a Very Good Thing to have.  My suggestion is to look for some
place else that has "CFLAGS" and fix it.

                - John


-----Original Message-----
From: Theeba Soundararajan
Sent: Friday, February 08, 2008 11:06 PM
To: FreeGLUT developers list
Subject: Re: [Freeglut-developer] FreeGlut and Mac OSX

 << File: ATT00010.txt; charset = windows-1252 >>


-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: FreeGlut and Mac OSX

by Theeba Soundararajan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok; so i guess if it compiled correctly my next question is:
what file would I use to run a basic freeglut program? In windows,
under microsoft visual studio I would use freeglut.lib and
freeglut.dll.

what's the equivalent for the mac/ anyone know?

also I didn't notice this before, but during the compilation process I
 noticed this message:
* Warning: linker path does not have real file for library -lGL.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libGL and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/lib/libSystem.B.dylib

dunno know if this is a clue to finding the propoer libraries.


thanks in advance!!

Theeba

On Sat, Feb 9, 2008 at 4:02 AM, Early Ehlinger <earlye@...> wrote:

> 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@...>
> 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@...> 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@...
> > >  [mailto:freeglut-developer-bounces@...] 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@...
> > >  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@...
> > >  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@...
> > 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@...
>  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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Parent Message unknown Re: FreeGlut and Mac OSX

by John F. Fay :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Theeba,

        It sounds very much like the linker cannot find the "libGL" library file.
 Unfortunately I have no knowledge of Mac OSX so I cannot givey ou any
direct help there.  From my ignorance, I suggest simply that you search all
the likely places (and if that is not successful, search the entire disk)
for any file that begins with "libGL".  (I am assuming here that "-lGL"
refers to a file named "libGL" followed by an extension, just as "-lm"
refers to a file named "libm" with an extension.  You may wish to find the
"libm" file just to see what the library file names look like.)

        Is there a high-level way to make sure that OpenGL has been installed on
your machine?  I presume that it has, since the include files must be there
for the library to compile.

                - John

-----Original Message-----
From: Theeba Soundararajan
Sent: Sunday, February 10, 2008 1:40 AM
To: FreeGLUT developers list
Subject: Re: [Freeglut-developer] FreeGlut and Mac OSX

 << File: ATT00000.txt; charset = windows-1252 >>


-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: FreeGlut and Mac OSX

by Bernhard Fröhler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

it seems the Mac OS X linker has its own peculiar syntax for addressing
installed libraries. I once had similar problems, maybe the solution I found
works for you too: try "-framework OpenGL" instead of "-lGL".

Bernhard

John F. Fay schrieb:

> Theeba,
>
> It sounds very much like the linker cannot find the "libGL" library file.
>  Unfortunately I have no knowledge of Mac OSX so I cannot givey ou any
> direct help there.  From my ignorance, I suggest simply that you search all
> the likely places (and if that is not successful, search the entire disk)
> for any file that begins with "libGL".  (I am assuming here that "-lGL"
> refers to a file named "libGL" followed by an extension, just as "-lm"
> refers to a file named "libm" with an extension.  You may wish to find the
> "libm" file just to see what the library file names look like.)
>
> Is there a high-level way to make sure that OpenGL has been installed on
> your machine?  I presume that it has, since the include files must be there
> for the library to compile.
>
> - John
>
> -----Original Message-----
> From: Theeba Soundararajan
> Sent: Sunday, February 10, 2008 1:40 AM
> To: FreeGLUT developers list
> Subject: Re: [Freeglut-developer] FreeGlut and Mac OSX
>
>  << File: ATT00000.txt; charset = windows-1252 >>
>
>
> -------------------------------------------------------------------------
> 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@...
> 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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: FreeGlut and Mac OSX

by Theeba Soundararajan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ok; I did a search for libOpenGl and found some .dylib files under the
mac osx version of usr/local/lib. (this is what I need; although my
growing suspicion is that I need a lib file called "freeglut.dylib")

If I have to make any changes to make Mac OSX look for a certain file,
where do I make those changes?  would this be my make file under
freeglut?

thnks,
Theeba


On Sun, Feb 10, 2008 at 10:25 AM, Bernhard Fröhler
<bernhard.froehler@...> wrote:

> Hello,
>
>  it seems the Mac OS X linker has its own peculiar syntax for addressing
>  installed libraries. I once had similar problems, maybe the solution I found
>  works for you too: try "-framework OpenGL" instead of "-lGL".
>
>  Bernhard
>
>  John F. Fay schrieb:
>
>
> > Theeba,
>  >
>  >       It sounds very much like the linker cannot find the "libGL" library file.
>  >  Unfortunately I have no knowledge of Mac OSX so I cannot givey ou any
>  > direct help there.  From my ignorance, I suggest simply that you search all
>  > the likely places (and if that is not successful, search the entire disk)
>  > for any file that begins with "libGL".  (I am assuming here that "-lGL"
>  > refers to a file named "libGL" followed by an extension, just as "-lm"
>  > refers to a file named "libm" with an extension.  You may wish to find the
>  > "libm" file just to see what the library file names look like.)
>  >
>  >       Is there a high-level way to make sure that OpenGL has been installed on
>  > your machine?  I presume that it has, since the include files must be there
>  > for the library to compile.
>  >
>  >               - John
>  >
>  > -----Original Message-----
>  > From: Theeba Soundararajan
>  > Sent: Sunday, February 10, 2008 1:40 AM
>  > To:   FreeGLUT developers list
>  > Subject:      Re: [Freeglut-developer] FreeGlut and Mac OSX
>  >
>  >  << File: ATT00000.txt; charset = windows-1252 >>
>  >
>  >
>  > -------------------------------------------------------------------------
>  > 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@...
>  > 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@...
>  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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Parent Message unknown Re: FreeGlut and Mac OSX

by Early Ehlinger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Theeba,

You probably need the libOpenGL *and* the libFreeGlut.  Remember, freeglut provides windowing support, while OpenGL provides drawing support.  They are basically interdependent, so if you use freeglut, you need OpenGL.  (The reverse isn't necessarily true; you can make OpenGL programs that use Quartz for windowing, I believe)

You'll need to change the Makefile for the program you're building, e.g., the demo program.

-- Early Ehlinger

-----Original Message-----
From: "Theeba Soundararajan" <theebasound@...>
To: "FreeGLUT developers list" <freeglut-developer@...>
Sent: 2/10/08 8:26 PM
Subject: Re: [Freeglut-developer] FreeGlut and Mac OSX

ok; I did a search for libOpenGl and found some .dylib files under the
mac osx version of usr/local/lib. (this is what I need; although my
growing suspicion is that I need a lib file called "freeglut.dylib")

If I have to make any changes to make Mac OSX look for a certain file,
where do I make those changes?  would this be my make file under
freeglut?

thnks,
Theeba


On Sun, Feb 10, 2008 at 10:25 AM, Bernhard Fröhler
<bernhard.froehler@...> wrote:

> Hello,
>
>  it seems the Mac OS X linker has its own peculiar syntax for addressing
>  installed libraries. I once had similar problems, maybe the solution I found
>  works for you too: try "-framework OpenGL" instead of "-lGL".
>
>  Bernhard
>
>  John F. Fay schrieb:
>
>
> > Theeba,
>  >
>  >       It sounds very much like the linker cannot find the "libGL" library file.
>  >  Unfortunately I have no knowledge of Mac OSX so I cannot givey ou any
>  > direct help there.  From my ignorance, I suggest simply that you search all
>  > the likely places (and if that is not successful, search the entire disk)
>  > for any file that begins with "libGL".  (I am assuming here that "-lGL"
>  > refers to a file named "libGL" followed by an extension, just as "-lm"
>  > refers to a file named "libm" with an extension.  You may wish to find the
>  > "libm" file just to see what the library file names look like.)
>  >
>  >       Is there a high-level way to make sure that OpenGL has been installed on
>  > your machine?  I presume that it has, since the include files must be there
>  > for the library to compile.
>  >
>  >               - John
>  >
>  > -----Original Message-----
>  > From: Theeba Soundararajan
>  > Sent: Sunday, February 10, 2008 1:40 AM
>  > To:   FreeGLUT developers list
>  > Subject:      Re: [Freeglut-developer] FreeGlut and Mac OSX
>  >
>  >  << File: ATT00000.txt; charset = windows-1252 >>
>  >
>  >
>  > -------------------------------------------------------------------------
>  > 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@...
>  > 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@...
>  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@...
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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Parent Message unknown Re: FreeGlut and Mac OSX

by Early Ehlinger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just to clarify a bit, here's my understanding of the dependencies involved:

application depends on freeglut
application depends on OpenGL

freeglut depends on OpenGL
freeglut depends on Windowing System (X, Quartz, Windows, Etc)

OpenGL depends on operating system (Linux, OSX, Windows)
Windowing System depends on operating system (Linux, OSX, Windows)

-- Early


On Feb 11, 2008 6:57 AM, Early Ehlinger <earlye@...> wrote:
Hi Theeba,

You probably need the libOpenGL *and* the libFreeGlut.  Remember, freeglut provides windowing support, while OpenGL provides drawing support.  They are basically interdependent, so if you use freeglut, you need OpenGL.  (The reverse isn't necessarily true; you can make OpenGL programs that use Quartz for windowing, I believe)

You'll need to change the Makefile for the program you're building, e.g., the demo program.

-- Early Ehlinger

-----Original Message-----
From: "Theeba Soundararajan" <theebasound@...>
To: "FreeGLUT developers list" <freeglut-developer@...>
Sent: 2/10/08 8:26 PM
Subject: Re: [Freeglut-developer] FreeGlut and Mac OSX

ok; I did a search for libOpenGl and found some .dylib files under the
mac osx version of usr/local/lib. (this is what I need; although my
growing suspicion is that I need a lib file called "freeglut.dylib")

If I have to make any changes to make Mac OSX look for a certain file,
where do I make those changes?  would this be my make file under
freeglut?

thnks,
Theeba


On Sun, Feb 10, 2008 at 10:25 AM, Bernhard Fröhler
<bernhard.froehler@...> wrote:
> Hello,
>
>  it seems the Mac OS X linker has its own peculiar syntax for addressing
>  installed libraries. I once had similar problems, maybe the solution I found
>  works for you too: try "-framework OpenGL" instead of "-lGL".
>
>  Bernhard
>
>  John F. Fay schrieb:
>
>
> > Theeba,
>  >
>  >       It sounds very much like the linker cannot find the "libGL" library file.
>  >  Unfortunately I have no knowledge of Mac OSX so I cannot givey ou any
>  > direct help there.  From my ignorance, I suggest simply that you search all
>  > the likely places (and if that is not successful, search the entire disk)
>  > for any file that begins with "libGL".  (I am assuming here that "-lGL"
>  > refers to a file named "libGL" followed by an extension, just as "-lm"
>  > refers to a file named "libm" with an extension.  You may wish to find the
>  > "libm" file just to see what the library file names look like.)
>  >
>  >       Is there a high-level way to make sure that OpenGL has been installed on
>  > your machine?  I presume that it has, since the include files must be there
>  > for the library to compile.
>  >
>  >               - John
>  >
>  > -----Original Message-----
>  > From: Theeba Soundararajan
>  > Sent: Sunday, February 10, 2008 1:40 AM
>  > To:   FreeGLUT developers list
>  > Subject:      Re: [Freeglut-developer] FreeGlut and Mac OSX
>  >
>  >  << File: ATT00000.txt; charset = windows-1252 >>
>  >
>  >
>  > -------------------------------------------------------------------------
>  > 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@...
>  > 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@...
>  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@...
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@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: FreeGlut and Mac OSX

by smcguffee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

I'm also trying to install freeglut on mac. I should note that this is because I also want to be able to make windows that can be closed without terminating my program, for example to select files in.

I tried the
configure CC=icc CXX=icpc LDFLAGS="-Wl -R/usr/X11R6/lib" CFLAGS="-I/usr/X11R6/include" CXXFLAGS="-I/usr/X11R6/include"
but I found the same effects with
configure CC=icc CXX=icpc

Note, I also have to echo > src/freeglut_joystick.c to get past it.

After the first make fails, I redo it to focus on the problem and here are the results:

make
cd . \
          && CONFIG_FILES= CONFIG_HEADERS=config.h \
             /bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
make  all-recursive
Making all in src
/bin/sh ../libtool --mode=link icc  -I/usr/X11R6/include -Wall -pedantic -Werror  -Wl -R/usr/X11R6/lib -o libglut.la -rpath /usr/local/lib -version-info 11:0:8 libglut_la-freeglut_callbacks.lo libglut_la-freeglut_cursor.lo libglut_la-freeglut_display.lo libglut_la-freeglut_ext.lo libglut_la-freeglut_font.lo libglut_la-freeglut_glutfont_definitions.lo libglut_la-freeglut_font_data.lo libglut_la-freeglut_stroke_roman.lo libglut_la-freeglut_stroke_mono_roman.lo libglut_la-freeglut_gamemode.lo libglut_la-freeglut_geometry.lo libglut_la-freeglut_init.lo libglut_la-freeglut_joystick.lo libglut_la-freeglut_main.lo libglut_la-freeglut_menu.lo libglut_la-freeglut_misc.lo libglut_la-freeglut_overlay.lo libglut_la-freeglut_state.lo libglut_la-freeglut_structure.lo libglut_la-freeglut_teapot.lo libglut_la-freeglut_videoresize.lo libglut_la-freeglut_window.lo -lm -L/usr/X11/lib -lGL -lGLU -lXext -lX11 -lXxf86vm
rm -fr .libs/libglut.la .libs/libglut.* .libs/libglut.*
icc -r -keep_private_externs -nostdlib -o .libs/libglut.3.8.0.dylib-master.o  libglut_la-freeglut_callbacks.lo libglut_la-freeglut_cursor.lo libglut_la-freeglut_display.lo libglut_la-freeglut_ext.lo libglut_la-freeglut_font.lo libglut_la-freeglut_glutfont_definitions.lo libglut_la-freeglut_font_data.lo libglut_la-freeglut_stroke_roman.lo libglut_la-freeglut_stroke_mono_roman.lo libglut_la-freeglut_gamemode.lo libglut_la-freeglut_geometry.lo libglut_la-freeglut_init.lo libglut_la-freeglut_joystick.lo libglut_la-freeglut_main.lo libglut_la-freeglut_menu.lo libglut_la-freeglut_misc.lo libglut_la-freeglut_overlay.lo libglut_la-freeglut_state.lo libglut_la-freeglut_structure.lo libglut_la-freeglut_teapot.lo libglut_la-freeglut_videoresize.lo libglut_la-freeglut_window.lo && icc -dynamiclib -flat_namespace -undefined suppress -o .libs/libglut.3.8.0.dylib .libs/libglut.3.8.0.dylib-master.o  -lm -L/usr/X11/lib -lGL -lGLU -lXext -lX11 -lXxf86vm -lc -install_name /usr/local/lib/libglut.3.dylib -compatibility_version 12 -current_version 12.0
(cd .libs && rm -f libglut.3.dylib && ln -s libglut.3.8.0.dylib libglut.3.dylib)
(cd .libs && rm -f libglut.dylib && ln -s libglut.3.8.0.dylib libglut.dylib)
ar cru .libs/libglut.a  libglut_la-freeglut_callbacks.o libglut_la-freeglut_cursor.o libglut_la-freeglut_display.o libglut_la-freeglut_ext.o libglut_la-freeglut_font.o libglut_la-freeglut_glutfont_definitions.o libglut_la-freeglut_font_data.o libglut_la-freeglut_stroke_roman.o libglut_la-freeglut_stroke_mono_roman.o libglut_la-freeglut_gamemode.o libglut_la-freeglut_geometry.o libglut_la-freeglut_init.o libglut_la-freeglut_joystick.o libglut_la-freeglut_main.o libglut_la-freeglut_menu.o libglut_la-freeglut_misc.o libglut_la-freeglut_overlay.o libglut_la-freeglut_state.o libglut_la-freeglut_structure.o libglut_la-freeglut_teapot.o libglut_la-freeglut_videoresize.o libglut_la-freeglut_window.o
ar: .libs/libglut.a: Invalid operation
make[2]: *** [libglut.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I've also seen this "ar:" some library type of problem before when I tried unsuccessfully to compile gcj.

If anyone has any ideas for me, I'd appreciate it.

Thanks,

Sean