To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 3776
3775  |  3777
Subject: 
Re: ldglite (ldlite for OpenGL and Linux) new stuff
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 26 Jan 2000 21:31:41 GMT
Viewed: 
1407 times
  
In lugnet.cad.dev, Todd Lehman writes:
Is the ldglite executable supposed to be statically linked?  As far as I
can tell, my system seems to be wanting to load the Mesa libraries at
runtime, right when ldglite is invoked from the command line.  The ldglite
executable is still pretty huge, though -- 196142 bytes -- which suggests
that it's got quite a bit of _some_ kind of baggage in it.  :)

Weird.  It was looking for the object libraries at runtime, yet the filesize
was wicked huge.  (I wonder what's up with that?  It should only be a few Kb
in size.)

Now I just linked it a different way -- closer to what the Mesa demos do --
and it comes out nice and small -- 3360 bytes.  (Unfortunately, it still
just gives a blank white window, same as before.  :)

$ cd ~/ldglite0.2
$ rm -f ldglite
$ ~/Mesa-3.1/libtool --mode=link gcc -g -DUNIX -DUSE_OPENGL -o ldglite *.o \
~/Mesa-3.1/src-glut/libglut.la ~/Mesa-3.1/src-glu/libGLU.la \
~/Mesa-3.1/src/libGL.la -lm
gcc -g -DUNIX -DUSE_OPENGL -o .libs/ldglite ldliteVR_main.o lex.yy.o main.o
qbuf.o stub.o y.tab.o /home/todd/Mesa-3.1/src-glut/.libs/libglut.so
-L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11
/home/todd/Mesa-3.1/src-glu/.libs/libGLU.so
/home/todd/Mesa-3.1/src/.libs/libGL.so -lvga -lSM -lICE -lXmu -lXext -lXi -lX11
-lm -Wl,--rpath -Wl,/home/todd/Mesa-3.1/src-glut/.libs -Wl,--rpath
-Wl,/home/todd/Mesa-3.1/src-glu/.libs -Wl,--rpath
-Wl,/home/todd/Mesa-3.1/src/.libs -Wl,--rpath -Wl,/usr/local/lib
creating ldglite
$ ls -l ldglite
-rwxrwxr-x   1 todd     todd         3360 Jan 26 16:22 ldglite

(The second command line above is 3 lines long -- and then libtool and gcc
spit out the next 9 lines.)

--Todd



Message has 1 Reply:
  Re: ldglite (ldlite for OpenGL and Linux) new stuff
 
libtool eh? What the heck is that? I seem to have it in /usr/local/bin but "man libtool" turns up nothing. I guess I'll have to read the man pages on gcc and ld to find out more about the shared libs vs static linking switches. Oh well, I was gonna (...) (25 years ago, 26-Jan-00, to lugnet.cad.dev)

Message is in Reply To:
  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)

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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR