How to use GLUI with Xcode?

Discussion in 'Mac Programming' started by kashmoney2006, Apr 17, 2008.

  1. kashmoney2006 macrumors regular

    Joined:
    Dec 12, 2007
    #1
    I am trying to build an application using GL User Interface.
    http://glui.sourceforge.net/
    Does anybody know how to get this working under Xcode? ive found this:
    http://lukecyca.com/2007/02/14/glui-23-framework-for-mac-os-x/
    but im not sure how to incorporate the framework into my project. I believe I added it correctly added the framework but it still gives an error on the line #include<GLUI/glui.h> and says there is no such file or directory. Can anybody offer some help? can anyone tell me how to get the GLUI libraries added to my project? Thanks for any help.
     
  2. kashmoney2006 thread starter macrumors regular

    Joined:
    Dec 12, 2007
    #2
    Can nobody help me with this? I would greatly appreciate it.
     
  3. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #3
    Just add the framework as you would with any other Mac OS X framework. Make sure it is stored in the same folder as the other frameworks though.

    That's it pretty much.
     
  4. Muncher macrumors 65816

    Muncher

    Joined:
    Apr 19, 2007
    Location:
    California
    #4
    Adding frameworks is easy:
    Step 1. Open your project.
    Step 2. In the Project window (the one with all the frameworks and files and headers and stuff), on the left there is a bar called "Groups & Files." Just beneath the name should be the name of the project and the xcode project icon. Right-click (or ctrl-click) and click on "existing frameworks." Find the framework, and click Add!
    Step 3. Find an old record player, and some old music and start randomly dancing/freaking other people out! It's fun!
     
  5. kashmoney2006 thread starter macrumors regular

    Joined:
    Dec 12, 2007
  6. Daniel C. macrumors newbie

    Joined:
    Sep 11, 2008
    #6
    Oh please please tell the world too how you got it to work.

    Personally, when I try to include <GLUI/glui.h> I get:

    “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 sugestions?
    Thanks
     

Share This Page