Jump to content


Photo
- - - - -

Glut installation problem


  • Please log in to reply
13 replies to this topic

#1 Vash

Vash

    I broke 10 posts and all I got was this lousy title!

  • Members
  • 18 posts

Posted 15 February 2003 - 03:45 AM

Hey all,

I have a small problem, I am trying to install glut on my linux box for days now (slackware 8.1) I am following all the instructions that are written in the readme file, but after rebooting my system, the compiler (gcc) still can’t find the gl/glut.h headers.
I think that the problem is in the last installation point, I must place a file called path in my local profile or in the /etc/profile directory, but I don’t have a local profile and instead if a /etc/profile I have an /etc/profile.d (and it doesn't work either), so does anyone got some ideas about this ??
Thanks in advanced

Glut http://www.opengl.or...ut.htm#glot0015

#2 dual

dual

    BinRev veteran

  • Agents of the Revolution
  • 1,196 posts
  • Gender:Male

Posted 15 February 2003 - 06:23 AM

This sounds like one for JHVH-1...

#3 ChZ

ChZ

    SUP3R 31337

  • Members
  • 150 posts

Posted 15 February 2003 - 09:49 AM

Try creating the file ~/.profile and put the line from the file 'path' in it. You'll have to log out and log back in for it to take effect.

#4 Vash

Vash

    I broke 10 posts and all I got was this lousy title!

  • Members
  • 18 posts

Posted 15 February 2003 - 10:00 AM

yeah , i tryed that but it's still not working, and when I search for the glut headers I get no result :help:

#5 0ccupant

0ccupant

    DDP Fan club member

  • Members
  • 56 posts

Posted 15 February 2003 - 10:56 AM

Is it a file called "path" or could it be the path (location) of a file (like where you have glut)?

#6 Vash

Vash

    I broke 10 posts and all I got was this lousy title!

  • Members
  • 18 posts

Posted 15 February 2003 - 10:58 AM

it's a file called path and in that file is the location string

#7 BoBB

BoBB

    SUP3R 31337

  • Members
  • 155 posts

Posted 15 February 2003 - 11:06 AM

path isn't a file, its an enviroment variable ... try

$: echo $PATH

it should return something like this

#~: echo $PATH
/bin:/usr/bin/wrappers/:/usr/bin:/usr/local/bin:/opt/vmware/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/opt/sun-jdk-1.4.1.01/bin:/opt/sun-jdk-1.4.1.01/jre/bin:/usr/games/bin
#~:

Its basically where the shell looks for stuff to be executed, since your dealing with a library problem its probably because the library isn't in the right search path for the libraries on your box, depending on what distro you have you should have a /etc/ld.so.conf file. Open that up and at the end add a line containting the directory where the libs are. Then run ldconfig and it should find the libs. If im not understanding the problem please elaborate :)

#8 0ccupant

0ccupant

    DDP Fan club member

  • Members
  • 56 posts

Posted 15 February 2003 - 12:52 PM

it's a file called path and in that file is the location string


This quote does seem to describe the variable PATH,
but if I were referring to the variable I’d spell it with
all caps. Vash, if you're still having issues could you
yank and put that part of the README file? I’m in
agreement with BoBB here “path” is not likely a
filename, but there’s a small chance "path" refers to
the absolute pathname.

BoBB, anyone, am I wrong?

#9 JHVH-1

JHVH-1

    DDP Fan club member

  • Members
  • 56 posts

Posted 16 February 2003 - 12:47 AM

Could you paste some sample output and the section of the docs that says what to do?

It should be pretty straight forward ./configure ; make ; make install as root and install the headers.

It may be that the headers get placed in /usr/local/include instead of /usr/include because that is usually the default location unless you tell it to.

You could move the headers by hand even probably.

Need more information :D

#10 Vash

Vash

    I broke 10 posts and all I got was this lousy title!

  • Members
  • 18 posts

Posted 16 February 2003 - 03:56 AM

README

Files For Making a Mesa/GLUT System For Linux ELF

      Version 0.0.6

     Peter F. Martone
        updated by Mark Kilgard (for GLUT 3.7)

//************************************************************

There are three files included in this archive:

Glut.cf -- file required by imake-- use this to replace the
  stock version that came with GLUT.

Makefile -- Makefile required to build ELF library,  belongs in
  the $GLUT_HOME/lib/glut/. directory.

path -- the line required for ld.so to find the libraries at
  run-time.  Add this to your .profile file.

//************************************************************

The steps to make this work are:

    1) Change into $GLUT_HOME/. and make a backup copy of the
Glut.cf file. Then, take the copy from this archive and move it
into $GLUT_HOME.

    2) Run the script to build all the makefiles:

  ./mkmkfiles.imake

    3) Change into $GLUT_HOME/lib/glut/. and make a backup copy of
the Makefile.  Now, take the Makefile out of the archive and
replace the old one.

    4) WHILE STILL IN THE $GLUT_HOME/lib/glut/. DIRECTOR, RUN:

  make

This should build the shared library 'libglut.so.3.7'.

IF YOU HAVE PROBLEMS WITH HEADER FILE DEPENDENCIES, try
doing:

  make depend
  make

This should rebuild the Makefile dependencies.

If this does not work, remove all the lines in "Makefile" below
the line saying "DO NOT DELETE" (yes, disregard what the line
says).  Then try "make depend; make"

    5) Make two symbolic links:

  ln -s libglut.so.3.7 libglut.so.3
  ln -s libglut.so.3.7 libglut.so

    6) Now, back up to $GLUT_HOME/. and:

  make

This will make all the example programs.

    7) Add the line from archive file 'path' to your .profile, or
better to your systemwide (/etc/profile).  Then logout out and
back in again (to refresh your path.)

After this, your system should be working fine.  If you are
having any problems with these files, or you have any comments,
please contact me at pmarton@bgnet.bgsu.edu.  I've only tried
this on a Slackware 3.0 (heavily modified) Linux PC, so
different distributions may behave differently.

Good luck, and thank you Brian Paul, Mark Kilgard,
Linus Torvalds and everybody else that fits for giving college
students on a budget a decent learning enviornment.



Contents path file: export LD_LIBRARY_PATH=$GLUT_HOME/lib/glut/:$LD_LIBRARY_PATH


Tutorial that I found, but it's still not working

http://tldp.org/HOWT...n/instglut.html



And the weirdest thing is that I can't even find the headers anywhere ...

#11 BoBB

BoBB

    SUP3R 31337

  • Members
  • 155 posts

Posted 16 February 2003 - 05:20 AM

Okay open up /etc/ld.so.conf and add the line
/path/to/glut-sources/lib/glut

save it and run ldconfig, everyone thing should work just fine.

#12 Vash

Vash

    I broke 10 posts and all I got was this lousy title!

  • Members
  • 18 posts

Posted 16 February 2003 - 07:26 AM

thanks it works now , thank you everybody !!

#13 BoBB

BoBB

    SUP3R 31337

  • Members
  • 155 posts

Posted 16 February 2003 - 08:11 AM

Anytime :)

#14 JHVH-1

JHVH-1

    DDP Fan club member

  • Members
  • 56 posts

Posted 16 February 2003 - 11:59 AM

I had a hunch that it wasnt PATH but something dealing with the ld.so.conf which comes up often. You guys fixed it while I was sleeping though so I don't get to act like a smarty man now :lol:




BinRev is hosted by the great people at Lunarpages!