Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-24-02, 09:27 PM   #1
c4ctusal
Guest
 
Posts: n/a
Unhappy GL librairy as disappeared

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 !
  Reply With Quote
Old 10-24-02, 11:03 PM   #2
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

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:

Code:
# 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'
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 10-25-02, 06:10 PM   #3
c4ctusal
Guest
 
Posts: n/a
Default commands passed

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 ***
  Reply With Quote
Old 10-26-02, 08:42 AM   #4
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

Try creating the libGL.la file, as outlined above. See if that helps.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 10-26-02, 03:23 PM   #5
c4ctusal
Guest
 
Posts: n/a
Default It works

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
  Reply With Quote
Old 10-26-02, 05:32 PM   #6
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

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.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 03-17-04, 07:59 AM   #7
Yannig
Registered User
 
Join Date: Mar 2004
Location: France
Posts: 1
Default

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.
Yannig is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:49 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.