Solved

LINUX and GLUI *HELP*

Posted on 2003-10-28
1
245 Views
Last Modified: 2010-04-22
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

0
Comment
Question by:drew33
1 Comment
 
LVL 3

Accepted Solution

by:
guynumber5764 earned 200 total points
ID: 9656321
My ar doesn't have an option -L (or -l for that matter).  In that case, the message would mean that ./-L/usr/X11R6/lib does not exist.

It looks like you have combined a "ld" and and an "ar" command.  Remove the link libraries from the command.

ar -r libglui.a 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

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question