drew33
asked on
LINUX and GLUI *HELP*
Hey everybody, im still having problems.
running red hat 8.0, installed opengl and glut, and my opengl programs work fine. I created a shell script to speed compiling up a little
gcc $@ -I/usr/X11R6/include -L/usr/X11R6/lib -lglui -lglut -lGLU -lGL -lm -lXmu -lX11 -lXext -lXi -lXt -lSM -lICE
everything works fine but i now want to use glui to make some snazzy interface and i have hit a problem. I modify the make file and all the .o object files are mafe files are created, then i get this error " off the top of my head /lib/ligglui.a etc... glui_.c blablabla failed.
Found a solution on here but it didnt work
they said
ar -r libglui.a -L/usr/X11R6/lib -lglu glui_add_controls.o glui.o glui_bitmap_img_data.o glui_bitmaps.o glui_button.o glui_edittext.o glui_checkbox.o glui_node.o glui_radio.o glui_statictext.o glui_panel.o glui_separator.o glui_spinner.o glui_control.o glui_column.o glui_translation.o glui_rotation.o glui_mouse_iaction.o glui_listbox.o glui_rollout.o arcball.o algebra3.o quaternion.o
i get the error
ar: -L/usr/X11R6/lib: No such file or directory
however it exists as i can compile my open gl code!,
i cant make my archive,
does it matter where i have all my glui files .cpp, .o ect of should they be in the lib or include directories?, hey come on i am new to all this linux stuff.
Thanks guys
Drew
running red hat 8.0, installed opengl and glut, and my opengl programs work fine. I created a shell script to speed compiling up a little
gcc $@ -I/usr/X11R6/include -L/usr/X11R6/lib -lglui -lglut -lGLU -lGL -lm -lXmu -lX11 -lXext -lXi -lXt -lSM -lICE
everything works fine but i now want to use glui to make some snazzy interface and i have hit a problem. I modify the make file and all the .o object files are mafe files are created, then i get this error " off the top of my head /lib/ligglui.a etc... glui_.c blablabla failed.
Found a solution on here but it didnt work
they said
ar -r libglui.a -L/usr/X11R6/lib -lglu glui_add_controls.o glui.o glui_bitmap_img_data.o glui_bitmaps.o glui_button.o glui_edittext.o glui_checkbox.o glui_node.o glui_radio.o glui_statictext.o glui_panel.o glui_separator.o glui_spinner.o glui_control.o glui_column.o glui_translation.o glui_rotation.o glui_mouse_iaction.o glui_listbox.o glui_rollout.o arcball.o algebra3.o quaternion.o
i get the error
ar: -L/usr/X11R6/lib: No such file or directory
however it exists as i can compile my open gl code!,
i cant make my archive,
does it matter where i have all my glui files .cpp, .o ect of should they be in the lib or include directories?, hey come on i am new to all this linux stuff.
Thanks guys
Drew
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.