Subject:
|
Re: ldglite (ldlite for OpenGL and Linux) new stuff
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Wed, 26 Jan 2000 18:16:49 GMT
|
Viewed:
|
1462 times
|
| |
| |
In lugnet.cad.dev, Todd Lehman writes:
> In lugnet.cad.dev, Don Heyse writes:
> > What do you get when you do this?
> >
> > cd /usr/X11R6/lib
> > ls -la *GL*
> > ls -la *gl*
>
> $ cd /usr/X11R6/lib
> $ ls -la *GL*
> ls: *GL*: No such file or directory
> $ ls -la *gl*
> ls: *gl*: No such file or directory
>
> Hmm, maybe that's the problem. I didn't think of making the symlinks from
> there because it stopped complaining at me when I made them from /usr/lib.
>
> $ cd /usr/lib
> $ ls -la *GL*
> lrwxrwxrwx ... 25 Jan 26 02:11 libGL.so.1 -> /usr/local/lib/libGL.so.1
> lrwxrwxrwx ... 26 Jan 26 02:11 libGLU.so.1 -> /usr/local/lib/libGLU.so.1
> $ ls -la *glut*
> lrwxrwxrwx ... 27 Jan 26 02:10 libglut.so.3 -> /usr/local/lib/libglut.so.3
>
> OK, I just su'd to root and mv'd the symlinks to /usr/X11R6/lib. Now I have:
>
> $ cd /usr/X11R6/lib
> $ ls -la *GL*
> lrwxrwxrwx ... 25 Jan 26 02:11 libGL.so.1 -> /usr/local/lib/libGL.so.1
> lrwxrwxrwx ... 26 Jan 26 02:11 libGLU.so.1 -> /usr/local/lib/libGLU.so.1
> $ ls -la *gl*
> lrwxrwxrwx ... 27 Jan 26 02:10 libglut.so.3 -> /usr/local/lib/libglut.so.3
>
> But now when I run ldglite I get this error:
>
> $ ./ldglite cyl.dat
> ./ldglite: error in loading shared libraries: libglut.so.3: cannot open shared
> object file: No such file or directory
>
> (Just like before I made the symlinks from /usr/lib...)
>
> --Todd
Yuk! Your libs and mine are not setup anywhere near the same way.
I have NOTHING in /usr/local/lib. All the X stuff is in /usr/X11R6/lib.
The Mesalibs were already there when I installed off the Mandrake CD so
I left them there, even though the Mesa docs that came off the Mandrake CD
say to put them in /usr/local/lib. When I downloaded the ldglite zip file
I got a link error since the GL softlinks weren't there. This is what I
did. Shoot me if I did it wrong, but it seems to work for me.
[dheyse@localhost lib]$ cd /usr/X11R6/lib
[dheyse@localhost lib]$ su
[root@localhost lib]# ls -l *GL*
lrwxrwxrwx 1 root root 14 Jan 5 07:22 libMesaGL.so ->
libMesaGL.so.3
lrwxrwxrwx 1 root root 16 Jan 5 07:22 libMesaGL.so.3 ->
libMesaGL.so.3.1
-rwxr-xr-x 1 root root 1385162 Jul 16 1999 libMesaGL.so.3.1
lrwxrwxrwx 1 root root 15 Jan 5 07:22 libMesaGLU.so ->
libMesaGLU.so.3
lrwxrwxrwx 1 root root 17 Jan 5 07:22 libMesaGLU.so.3 ->
libMesaGLU.so.3.1
-rwxr-xr-x 1 root root 98332 Jul 16 1999 libMesaGLU.so.3.1
[root@localhost lib]# ls -l *gl*
lrwxrwxrwx 1 root root 12 Jan 5 07:22 libglut.so ->
libglut.so.3
lrwxrwxrwx 1 root root 14 Jan 5 07:22 libglut.so.3 ->
libglut.so.3.7
-rwxr-xr-x 1 root root 290729 Jul 16 1999 libglut.so.3.7
[root@localhost lib]# ln -s libMesaGL.so.3.1 libGL.so
[root@localhost lib]# ln -s libMesaGLU.so.3.1 libGLU.so
[root@localhost lib]#
I cut out all the middleman soft links and hooked libGL.so straight to
LibMesaGL.so.3.1
Same for libGLU.so
libglut.so was there already so I left it alone.
Anyways, after I made those two softlinks I could link ldglite and
it just worked. Did you try removing the executable and relinking?
I didn't provide a "make clean" in the makefile yet so you have to do
that by hand.
Hmmm, I have redhat 5.2 on a 486 somewhere. Perhaps I'll try installing
Mesa from scratch on that and see what happens.
Don
|
|
Message has 3 Replies: | | Re: ldglite (ldlite for OpenGL and Linux) new stuff
|
| I just thought of another thing to try. In main.c search for #ifdef DRAW_AXIS. Put this right above it. #define DRAW_AXIS 1 This will draw the x,y,z axis in red, green, and blue like in the gif file on the website. That'll show if GL is working. I (...) (25 years ago, 26-Jan-00, to lugnet.cad.dev)
| | | Re: ldglite (ldlite for OpenGL and Linux) new stuff
|
| (...) I didn't either, until I compiled & installed Mesa. (...) Yup, same here (except Mesa). (...) Whoa, that's interesting... You had trouble linking before making the softlinks?? I don't remember having trouble linking at all -- but I definitely (...) (25 years ago, 26-Jan-00, to lugnet.cad.dev)
| | | Re: ldglite (ldlite for OpenGL and Linux) new stuff
|
| (...) Hmm, just noticed something else. Your filenames for Mesa say libMesaGL* instead of libGL*. I don't think that's a problem, but it might be a clue. According to the VERSIONS file in the Mesa 3.1 tarball[1], the library names were changed from (...) (25 years ago, 28-Jan-00, to lugnet.cad.dev)
|
Message is in Reply To:
| | Re: ldglite (ldlite for OpenGL and Linux) new stuff
|
| (...) $ cd /usr/X11R6/lib $ ls -la *GL* ls: *GL*: No such file or directory $ ls -la *gl* ls: *gl*: No such file or directory Hmm, maybe that's the problem. I didn't think of making the symlinks from there because it stopped complaining at me when I (...) (25 years ago, 26-Jan-00, to lugnet.cad.dev)
|
70 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|