PDA

View Full Version : GL librairy as disappeared


c4ctusal
10-24-02, 09:27 PM
I installed the drivers successfully on Mandrake 9.0, but when I tried to compile some app that uses OpenGL I had the following in KDevelop: " libtool: link: cannot find the library `/usr/X11R6/lib/libGL.la' "

I search for the file libGL.la but it no longer exists on my system. I'm sure this happened because of the driver installation because this application compiled without errors just before I installed the driver. (I installed because it was too slow :) )

Thanks for your help !

bwkaz
10-24-02, 11:03 PM
What command is the program you're using executing to link itself? i.e. what does make print out, from outside KDevelop? Am I correct in assuming that even works?

Programs should not be looking for libGL.so (which libGL.la is just a text-file wrapper around) in any hardcoded location, especially not /usr/X11R6/lib.

You can try creating a libGL.la file in /usr/lib, though. Make it look like this:

# libGL.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.3.5 (1.385.2.206 2000/05/27 11:12:27)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname=''

# Names of this library.
library_names='libGL.so.1.0.3123 libGL.so.1 libGL.so'

# Libraries that this one depends upon.
dependency_libs=' -lm -lXext -lX11 -ldl -L/usr/X11R6/lib'

# Version information for libGL.
current=1
age=0
revision=3123

# Is this an already installed library?
installed=yes

# Directory that this library needs to be installed in:
libdir='/usr/lib'

c4ctusal
10-25-02, 06:10 PM
Here is the output of the compilation:

gmake all-recursive
gmake[1]: Entre dans le répertoire `/home/abeaulieu/test3'
cd . && automake-1.4 --foreign ./Makefile
cd . && perl admin/am_edit Makefile.in
cd . \
&& CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status
fast creating Makefile
gmake[1]: Quitte le répertoire `/home/abeaulieu/test3'
gmake[1]: Entre dans le répertoire `/home/abeaulieu/test3'
Making all in test3
gmake[2]: Entre dans le répertoire `/home/abeaulieu/test3/test3'
cd .. && automake-1.4 --gnu test3/Makefile
cd .. && perl admin/am_edit test3/Makefile.in
cd .. \
&& CONFIG_FILES=test3/Makefile CONFIG_HEADERS= /bin/sh ./config.status
fast creating test3/Makefile
gmake[2]: Quitte le répertoire `/home/abeaulieu/test3/test3'
gmake[2]: Entre dans le répertoire `/home/abeaulieu/test3/test3'
/bin/sh ../libtool --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -fno-builtin -g -O2 -O0 -g3 -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wconversion -Wsign-compare -Waggregate-return -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Winline -Woverloaded-virtual -fno-exceptions -fno-check-new -o test3 image.o bitmap.o 3dshapes.o tga.o Main.o light.o debug.o -lSDL -lGLU -lGL -lXext -lX11
gmake[2]: Quitte le répertoire `/home/abeaulieu/test3/test3'
libtool: link: cannot find the library `/usr/X11R6/lib/libGL.la'
gmake[1]: Quitte le répertoire `/home/abeaulieu/test3'
gmake[2]: *** [test3] Erreur 1
gmake[1]: *** [all-recursive] Erreur 1
gmake: *** [all-recursive-am] Erreur 2
*** échec ***

bwkaz
10-26-02, 08:42 AM
Try creating the libGL.la file, as outlined above. See if that helps.

c4ctusal
10-26-02, 03:23 PM
I copied libGL.la in /usr/X11R6/lib and it worked.

However, I don't understand why this file can't be located in /usr/lib. Isn't it supposed to search in all lib directories. Well, I'm new to Linux so I may discover this with time.

Thanks for your help bwkaz

bwkaz
10-26-02, 05:32 PM
Yes, it is supposed to look all over. I think it has something to do with libtool being weird, but I don't know why.

Hmm, whatever.

Yannig
03-17-04, 07:59 AM
Hi,

I'm using mandrake 10 with kernel 2.6.3-4 with the latest drivers (5336) provided by nvidia. While I tried to compile digikam I fell on the same problem :

/bin/sh ../libtool --silent --mode=link --tag=CXX g++
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -O2 -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new

-fno-common -DQT_CLEAN_NAMESPACE -o
kio_digikamthumbnail.la.closure

kio_digikamthumbnail_la_closure.lo -module -avoid-version
-L/usr/X11R6/lib -L/usr/lib/qt3//lib -L/usr/lib
-avoid-version -module -no-undefined -R /usr/lib -R
/usr/lib/qt3//lib -R /usr/X11R6/lib digikamthumbnail.lo -lkio
-ljpeg
libtool: link: cannot find the library `/usr/X11R6/lib/libGL.la'
make[2]: *** [kio_digikamthumbnail.la.closure] Erreur 1
make[2]: Leaving directory `/tmp/digikam3/kioslave'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/tmp/digikam3'
make: *** [all] Erreur 2

The /usr/X11R6/lib/libGL.la as move out to /usr/lib/libGL.la and a simple symlink solve the problem.