GLUI/glui.h not found

Discussion in 'Mac Programming' started by GregWong, Jun 13, 2009.

  1. macrumors newbie

    Joined:
    Jun 13, 2009
    #1
    I have a C++ program that uses OpenGL (glut and glui). I was able to compile it using XCode on my mac at work (running OS 10.4). However, I can't get it to compile on my mac at home (running OS 10.5). I have added the GLUT.framework. But when I try to build it, I get a complaint for the line:

    #include <GLUI/glui.h>

    saying, "error: GLUI/glui.h: No such file or directory.

    As I said, it compiles on a Mac running OS 10.4, but won't under 10.5.

    What do I need to do to get past this error?

    Thanks.

    --Greg
     
  2. macrumors 6502a

    Joined:
    Oct 13, 2007
    #2
    It is probably because you don't have the GLUI framework at the same location on both computers. So compiler does not find it where it expects it to be.
     
  3. thread starter macrumors newbie

    Joined:
    Jun 13, 2009
    #3
    Well, it can find GLUT/glut.h but it can't find GLUI/glui.h. The GLUT.framework appears to be in the same place /System/Library/Frameworks/GLUT.framework. But if this indeed the problem, how do I fix it?
     
  4. thread starter macrumors newbie

    Joined:
    Jun 13, 2009
    #4
    I solved the GLUI/glui.h not found problem. It turns out that the GLUI.framework wasn't installed on my home computer, so I downloaded it and installed it. However, I'm now getting these linking errors. How do I fix these errors?

    mkdir /Developer/geosect_4.1/code/geosect2.0/build/Debug
    cd /Developer/geosect_4.1/code/geosect2.0
    setenv MACOSX_DEPLOYMENT_TARGET 10.5
    /Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Developer/geosect_4.1/code/geosect2.0/build/Debug -F/Developer/geosect_4.1/code/geosect2.0/build/Debug -filelist /Developer/geosect_4.1/code/geosect2.0/build/geosect2.0.build/Debug/geosect2.0.build/Objects-normal/i386/geosect2.0.LinkFileList -mmacosx-version-min=10.5 -framework GLUI -o /Developer/geosect_4.1/code/geosect2.0/build/Debug/geosect2.0
    Undefined symbols:
    "_glRectf", referenced from:
    draw_function() in gui2d.o
    "_glutBitmapCharacter", referenced from:
    print_bitmap_string(void*, char const*)in gui2d.o
    "_glGetIntegerv", referenced from:
    zprMotion(int, int)in zpr.o
    zprPick(double, double, double, double)in zpr.o
    zprMouse(int, int, int, int)in zpr.o
    zprMouse(int, int, int, int)in zpr.o
    "_glOrtho", referenced from:
    draw_function() in gui2d.o
    zprReshape(int, int)in zpr.o
    "_glViewport", referenced from:
    myGlutReshape(int, int)in gui2d.o
    zprReshape(int, int)in zpr.o
    "_glutSolidSphere", referenced from:
    draw_function() in gui2d.o
    "_glLineWidth", referenced from:
    gui2d::draw_lat_long() in gui2d.o
    gui2d::draw_lat_long() in gui2d.o
    gui2d::draw_lat_long() in gui2d.o
    gui2d::draw_lat_long() in gui2d.o
    gui2d::draw_lat_long() in gui2d.o
    gui2d::draw_lat_long() in gui2d.o
    draw_select_region() in gui2d.o
    gui2d::draw_centers() in gui2d.o
    draw_path() in gui2d.o
    gui2d::draw_us_map() in gui2d.o
    gui2d::draw_dyn_geo_sectors() in gui2d.o
    gui2d::draw_initial_region() in gui2d.o
    gui2d::draw_suas() in gui2d.o
    gui2d::draw_dominant_flows() in gui2d.o
    gui2d::draw_geo_sectors() in gui2d.o
    gui2d::draw_sectors_wl_heat_map() in gui2d.o
    gui2d::draw_tracks() in gui2d.o
    "_gluUnProject", referenced from:
    zprMouse(int, int, int, int)in zpr.o
    "_glLoadMatrixf", referenced from:
    gui_main(int, char**)in gui2d.o
    gui_main_without_loop(int, char**)in gui2d.o
    "_glRotatef", referenced from:
    zprMotion(int, int)in zpr.o
    "_glutInitWindowSize", referenced from:
    gui_main(int, char**)in gui2d.o
    gui_main_without_loop(int, char**)in gui2d.o
    "_glPushMatrix", referenced from:
    draw_function() in gui2d.o
    control_cb(int) in gui2d.o
    zprPick(double, double, double, double)in zpr.o
    "_glEnd", referenced from:
    gui2d::draw_lat_long() in gui2d.o
    gui2d::draw_lat_long() in gui2d.o
    draw_circle(double, double, double)in gui2d.o
    draw_search_nodes() in gui2d.o
    draw_search_nodes() in gui2d.o
    draw_select_region() in gui2d.o
    gui2d::draw_centers() in gui2d.o
    draw_path() in gui2d.o
    draw_path() in gui2d.o
    draw_path() in gui2d.o
    gui2d::draw_us_map() in gui2d.o
    gui2d::draw_dyn_geo_sectors() in gui2d.o
    draw_heat_map() in gui2d.o
    draw_search_edges() in gui2d.o
    draw_search_edges() in gui2d.o
    gui2d::draw_initial_region() in gui2d.o
    gui2d::draw_suas() in gui2d.o
    gui2d::draw_dominant_flows() in gui2d.o
    gui2d::draw_airports() in gui2d.o
    gui2d::draw_geo_sectors() in gui2d.o
    gui2d::draw_sectors_wl_heat_map() in gui2d.o
    gui2d::draw_tracks() in gui2d.o
    "_glutReshapeFunc", referenced from:
    _zprInit in zpr.o
    "_glutDisplayFunc", referenced from:
    gui_main(int, char**)in gui2d.o
    gui_main_without_loop(int, char**)in gui2d.o
    "_glutBitmapTimesRoman24", referenced from:
    _glutBitmapTimesRoman24$non_lazy_ptr in gui2d.o
    "_glScalef", referenced from:
    zprMotion(int, int)in zpr.o
    "_glutMouseFunc", referenced from:
    _zprInit in zpr.o
    "_glutInitWindowPosition", referenced from:
    gui_main(int, char**)in gui2d.o
    gui_main_without_loop(int, char**)in gui2d.o
    "_glutPostRedisplay", referenced from:
    myGlutKeyboard(unsigned char, int, int)in gui2d.o
    myGlutMotion(int, int)in gui2d.o
    myGlutReshape(int, int)in gui2d.o
    myGlutIdle() in gui2d.o
    zprMotion(int, int)in zpr.o
    zprMouse(int, int, int, int)in zpr.o
    "_glBegin", referenced from:
    gui2d::draw_lat_long() in gui2d.o
    gui2d::draw_lat_long() in gui2d.o
    draw_circle(double, double, double)in gui2d.o
    draw_search_nodes() in gui2d.o
    draw_search_nodes() in gui2d.o
    draw_select_region() in gui2d.o
    gui2d::draw_centers() in gui2d.o
    draw_path() in gui2d.o
    draw_path() in gui2d.o
    draw_path() in gui2d.o
    gui2d::draw_us_map() in gui2d.o
    gui2d::draw_dyn_geo_sectors() in gui2d.o
    draw_heat_map() in gui2d.o
    draw_search_edges() in gui2d.o
    draw_search_edges() in gui2d.o
    gui2d::draw_initial_region() in gui2d.o
    gui2d::draw_suas() in gui2d.o
    gui2d::draw_dominant_flows() in gui2d.o
    gui2d::draw_airports() in gui2d.o
    gui2d::draw_geo_sectors() in gui2d.o
    gui2d::draw_sectors_wl_heat_map() in gui2d.o
    gui2d::draw_tracks() in gui2d.o
    "_glMatrixMode", referenced from:
    zprReshape(int, int)in zpr.o
    zprReshape(int, int)in zpr.o
    zprPick(double, double, double, double)in zpr.o
    zprPick(double, double, double, double)in zpr.o
    zprPick(double, double, double, double)in zpr.o
    zprPick(double, double, double, double)in zpr.o
    "_glutInitDisplayMode", referenced from:
    gui_main(int, char**)in gui2d.o
    gui_main_without_loop(int, char**)in gui2d.o
    "_glutSwapBuffers", referenced from:
    myGlutDisplay() in gui2d.o
    "_glColor3f", referenced from:
    gui2d::draw_lat_long() in gui2d.o
    draw_search_nodes() in gui2d.o
    draw_search_nodes() in gui2d.o
    draw_select_region() in gui2d.o
    gui2d::draw_centers() in gui2d.o
    draw_path() in gui2d.o
    draw_path() in gui2d.o
    draw_path() in gui2d.o
    gui2d::draw_us_map() in gui2d.o
    gui2d::draw_dyn_geo_sectors() in gui2d.o
    draw_heat_map() in gui2d.o
    draw_disc_offsets() in gui2d.o
    draw_search_edges() in gui2d.o
    draw_search_edges() in gui2d.o
    gui2d::draw_initial_region() in gui2d.o
    gui2d::draw_suas() in gui2d.o
    gui2d::draw_dominant_flows() in gui2d.o
    gui2d::draw_airports() in gui2d.o
    gui2d::draw_geo_sectors() in gui2d.o
    gui2d::draw_sectors_wl_heat_map() in gui2d.o
    gui2d::draw_tracks() in gui2d.o
    draw_function() in gui2d.o
    draw_function() in gui2d.o
    "_glGetFloatv", referenced from:
    control_cb(int) in gui2d.o
    "_glTranslatef", referenced from:
    zprMotion(int, int)in zpr.o
    zprMotion(int, int)in zpr.o
    zprMotion(int, int)in zpr.o
    zprMotion(int, int)in zpr.o
    zprMotion(int, int)in zpr.o
    "_glPopMatrix", referenced from:
    gui_main(int, char**)in gui2d.o
    gui_main_without_loop(int, char**)in gui2d.o
    draw_function() in gui2d.o
    zprPick(double, double, double, double)in zpr.o
    "_glReadBuffer", referenced from:
    SaveScreenGrab(char const*)in screengrab.o
    "_glGetDoublev", referenced from:
    getMatrix() in zpr.o
    zprPick(double, double, double, double)in zpr.o
    zprMouse(int, int, int, int)in zpr.o
    zprMouse(int, int, int, int)in zpr.o
    "_glClear", referenced from:
    myGlutDisplay() in gui2d.o
    "_glutMainLoop", referenced from:
    gui_main(int, char**)in gui2d.o
    "_glRenderMode", referenced from:
    zprPick(double, double, double, double)in zpr.o
    zprPick(double, double, double, double)in zpr.o
    "_glFrustum", referenced from:
    myGlutDisplay() in gui2d.o
    "_glutGetWindow", referenced from:
    myGlutIdle() in gui2d.o
    "_glLoadIdentity", referenced from:
    zprReshape(int, int)in zpr.o
    zprMotion(int, int)in zpr.o
    zprPick(double, double, double, double)in zpr.o
    "_glPointSize", referenced from:
    draw_search_nodes() in gui2d.o
    draw_search_nodes() in gui2d.o
    draw_heat_map() in gui2d.o
    gui2d::draw_airports() in gui2d.o
    draw_function() in gui2d.o
    "_glutGet", referenced from:
    SaveScreenGrab(char const*)in screengrab.o
    SaveScreenGrab(char const*)in screengrab.o
    SaveScreenGrab(char const*)in screengrab.o
    zprMouse(int, int, int, int)in zpr.o
    "_glutMotionFunc", referenced from:
    myInit() in gui2d.o
    _zprInit in zpr.o
    "_glSelectBuffer", referenced from:
    zprPick(double, double, double, double)in zpr.o
    "_glMultMatrixd", referenced from:
    zprMotion(int, int)in zpr.o
    zprPick(double, double, double, double)in zpr.o
    "_glutSetWindow", referenced from:
    myGlutIdle() in gui2d.o
    myGlutDisplay() in gui2d.o
    SaveScreenGrab(char const*)in screengrab.o
    "_glReadPixels", referenced from:
    SaveScreenGrab(char const*)in screengrab.o
    "_glRasterPos2f", referenced from:
    print_string(double, double, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)in gui2d.o
    "_glClearColor", referenced from:
    myGlutDisplay() in gui2d.o
    "_gluPickMatrix", referenced from:
    zprPick(double, double, double, double)in zpr.o
    "_glutInit", referenced from:
    gui_main(int, char**)in gui2d.o
    gui_main_without_loop(int, char**)in gui2d.o
    "_glVertex2f", referenced from:
    draw_circle(double, double, double)in gui2d.o
    "_glVertex3f", referenced from:
    gui2d::draw_lat_long() in gui2d.o
    gui2d::draw_lat_long() in gui2d.o
    gui2d::draw_lat_long() in gui2d.o
    gui2d::draw_lat_long() in gui2d.o
    draw_search_nodes() in gui2d.o
    draw_search_nodes() in gui2d.o
    draw_select_region() in gui2d.o
    gui2d::draw_centers() in gui2d.o
    draw_path() in gui2d.o
    draw_path() in gui2d.o
    draw_path() in gui2d.o
    gui2d::draw_us_map() in gui2d.o
    gui2d::draw_us_map() in gui2d.o
    gui2d::draw_dyn_geo_sectors() in gui2d.o
    gui2d::draw_dyn_geo_sectors() in gui2d.o
    draw_heat_map() in gui2d.o
    draw_search_edges() in gui2d.o
    draw_search_edges() in gui2d.o
    draw_search_edges() in gui2d.o
    draw_search_edges() in gui2d.o
    gui2d::draw_initial_region() in gui2d.o
    gui2d::draw_suas() in gui2d.o
    gui2d::draw_suas() in gui2d.o
    gui2d::draw_dominant_flows() in gui2d.o
    gui2d::draw_dominant_flows() in gui2d.o
    gui2d::draw_airports() in gui2d.o
    gui2d::draw_airports() in gui2d.o
    gui2d::draw_geo_sectors() in gui2d.o
    gui2d::draw_geo_sectors() in gui2d.o
    gui2d::draw_sectors_wl_heat_map() in gui2d.o
    gui2d::draw_sectors_wl_heat_map() in gui2d.o
    gui2d::draw_tracks() in gui2d.o
    gui2d::draw_tracks() in gui2d.o
    "_glInitNames", referenced from:
    zprPick(double, double, double, double)in zpr.o
    "_glutCreateWindow", referenced from:
    gui_main(int, char**)in gui2d.o
    gui_main_without_loop(int, char**)in gui2d.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
     

Share This Page