GLUI 2.3 Framework for Mac OS X
Update: A newer and mo’ betta’ version is available.
Previously I published a quick tutorial on how to get GLUI installed on Mac OS X. Enough people were still having problems getting it to play nicely with XCode that I decided to just package it up as a nice little framework.
This is the first time I’ve made a framework for OS X, so tell me if it works or if it makes your computer go boom.
20 comments20 Comments so far
Leave a reply

Seemed to work for me, no booms here.
Now let me see if it works.
Thanks a lot for sharing this!
You should probably mention whether this is PPC,Intel or Universal. It seems to work fine on my Macbook Pro, so I guess it’ll have to be either Intel or Universal?
It’s compiled as a universal binary.
Thanks a lot. I have been messing with GLUI all day to get it to work on OSX, but without any result. This instantly solved all the issues. Really great!
Hi there! Thanks a lots for it! I was able to compile for MAC but the resulting graphical interface was completely messed up. I have no idea of what could have caused it…
Would it be possible for you to publish the makefile and the sources you used? We could take to the GLUI people and have from now on compilation for mac too.
Please, let me know by email.
Any chance of a package for OS 10.3.9? When I try opening your package, it says the Bill of Material is missing so it closes.
Just started learning GLUI and OpenGL on the PC and was hoping I can get it working on my Mac.
Any chance I could get a quick explanation as to how to use this? I installed this, but what would I use in in the #include statement? I tried #include and it couldnt find the file? and, I believe I added the framework correctly to the Xcode project.
Hello !
Thanks for the GLUI framework !
But I still have problems to compile.
(like that :
“glui.h:59:19: error: cstdlib: No such file or directory
glui.h:60:18: error: cstdio: No such file or directory
glui.h:61:19: error: cstring: No such file or directory
glui.h:62:18: error: string: No such file or directory
glui.h:63:18: error: vector: No such file or directory”)
I think I can’t include headers
(“To include GLUI in your own apps, add the glui library to your
makefile (before the glut library ‘libglut.a’), and include “glui.h”
in your sources.”)
Do you have an example of a makefile, please?
Thanks to help me !
I’m having the same trouble as Louise. I’m compiling my project in Xcode 3.1 and with a single *.c file. I don’t have a makefile.
Hi,
Thanks for putting this together. I tried to use the framework and I noticed that there are instances of variables named id in the glui.h file. This produces errors of course if you are integrating this code into an app that uses Cocoa.
Changing the variables from id to idx wasn’t too hard.
Again, thanks for the framework!
Where is the default location that the .framework is installed? The installation seemed to go okay, but I can’t find the .framework anywhere. What is the name, i.e. GLUI.framework? This will be great if I can get it working. Thanks.
Scott: It goes in /Library/Frameworks, so you should be able to access it through XCode just like any other installed framework.
Jaime: Great idea. Consider sending your modifications upstream.
Everyone else: Sorry, I don’t have much time to help you with this. If somebody can whip up an example XCode project that uses it, I would be happy to post it with credit.
Hi,
I have the same error message, and I can’t figure it out.
I do #include , the glui.h file is found, and the includes that are in it give an error:
“glui.h:59:19: error: cstdlib: No such file or directory
glui.h:60:18: error: cstdio: No such file or directory
glui.h:61:19: error: cstring: No such file or directory
glui.h:62:18: error: string: No such file or directory
glui.h:63:18: error: vector: No such file or directory”
Any suggestions are welcome
A friend pointed me towards this link: http://www.box2d.org/forum/viewtopic.php?f=7&t=1343&view=previous
So basically the problem with the above presented error was solved if I renamed my main.c or main.m file to main.cpp or main.mm.
Apparently XCode considers that .c and .m files use only C, and not C++, so that the includes for a code that uses C++ would not work.
Hope this helps others.
And more news. If you still have problems with GLUI on MacOS and by some chance get the following error message:
GLUT Fatal Error: internal error:
NSInternalInconsistencyException, reason: Error (1002) creating CGSWindow
…the problem could be that you forgot to initialize OpenGL, by putting this line:
glutInit(&argc, argv);
…in the main function.
http://www.idevgames.com/forum/archive/index.php/t-6635.html
Thanks for this. For anyone using eclipse, right click your project -> Properties -> C/C++ Build -> Settings. Under MacOSX C++ Linker -> Miscellaneous and under Linker Flags add the line -framework GLUI
I’m using Xcode 2.4.1 and Max OS X 10.4.11. I grabbed the most recent GLUI framework you made, but I can’t get Xcode to find the library headers even after I added the framework so I can’t compile. I’ve tried changing the file to a C++ file like someone suggested, but this hasn’t helped. Am I using the wrong GLUI header link? I’ve tried
“glui.h”
etc.
Any suggestions?
Any chance that this package could be built for 64 bit (x86_64) ?
I also am having trouble with getting XCode to find the GLUI framework. Have tried placing it in various frameworks folders, changed the paths, renamed the main, etc. and am still getting the error:
error: Glui/glui.h: No such file or directory
Anyone have an answer yet?
I did get GLUI working – but not on my Tiger system. I tried it on my new iMac when it came and it works fine so far, so the latest framework must not work with Tiger…
Thanks