Solved

LINUX and GLUI *HELP*

Posted on 2003-10-28
1
240 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now