Solved

LINUX and GLUI *HELP*

Posted on 2003-10-28
1
242 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 demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 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