Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 13, 2009, 09:22 PM   #1
GregWong
macrumors newbie
 
Join Date: Jun 2009
GLUI/glui.h not found

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
GregWong is offline   0 Reply With Quote
Old Jun 13, 2009, 09:51 PM   #2
larkost
macrumors 6502a
 
Join Date: Oct 2007
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.
larkost is offline   0 Reply With Quote
Old Jun 13, 2009, 11:21 PM   #3
GregWong
Thread Starter
macrumors newbie
 
Join Date: Jun 2009
Quote:
Originally Posted by larkost View Post
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.
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?
GregWong is offline   0 Reply With Quote
Old Jun 16, 2009, 12:49 AM   #4
GregWong
Thread Starter
macrumors newbie
 
Join Date: Jun 2009
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
GregWong is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Just found this and need help ItBeMe22 iPhone Tips, Help and Troubleshooting 5 Aug 7, 2013 09:39 AM
I found the only improvement. steve knight iOS 6 0 Sep 20, 2012 02:48 AM
Just found this for retina.. LRJordan MacBook Pro 4 Aug 6, 2012 10:32 AM

Forum Jump

All times are GMT -5. The time now is 03:17 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC