Solved

LINUX and GLUI *HELP*

Posted on 2003-10-28
1
246 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

756 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