Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GLUI



> From: Aaron Boothello 
> 
> Hey guys,
> i need to be able to incorporate the GLUI header file, but it's not in
> the GLUT or OpenGL framework. how do i  go about getting the GLUI stuff
> to work on OSX ?
> 

You are referring to this GLUI, right?
http://www.cs.unc.edu/~rademach/glui/

GLUI has never been a part of GLUT or OpenGL on any platform (as far
as I know). It is a 3rd party library built on top of GLUT, so you
won't find its headers with OpenGL or GLUT.

So to get GLUI to work for you, you need to treat it like any other
library. Build GLUI into a library and link against it.

Your compile line might look something like:
gcc -I<pathToGLUIHeader> testprogram.c -L<pathToGLUILibrary> -lGLUI
-framework GLUT -framework OpenGL -framework Cocoa

(You could also compile GLUI into a framework, so there are several
variations of the above.)

I expect the hard part will be compiling GLUI itself. I haven't used
GLUI in many years, but I remember the code base at the time had
trouble making the transition from gcc 2.95 to gcc 3.0. I don't know
if that has been cleaned up. And now you are looking at gcc 3.3 or gcc
4.0 on OS X so you might still have to do extra clean up.

I also remember the GLUI build system being really primative, so you
will probably have to modify the build system to get it to work. I
think GLUI only builds a static library too. So you have to be careful
about linking order. (You might consider changing it to do dynamic
libraries too.)

There were already 2 threads this week on building OpenGL programs on
the Mac. Please check the archives.
http://lists.apple.com/archives/mac-opengl/2005/Apr/msg00115.html
http://lists.apple.com/archives/mac-opengl/2005/Apr/msg00124.html
http://lists.apple.com/archives/mac-opengl/2005/Apr/msg00160.html

-Eric
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.