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

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-11-03, 03:39 AM   #1
silenus
Registered User
 
Join Date: Jun 2003
Posts: 4
Default Some GL library questions

I have recently switched to an nV card, and I have installed /NVIDIA-Linux-x86-1.0-4363. I run a Linux from Scratch system, so everything is compiled locally, including version on 4.3 of X, which I compiled/installed before installing the new card and the nV drivers.

I have some questions concerning the GL library :

(1) I noted from the Readme that I should copy nV's own gl.h and glx.h into /usr/include/GL/. I have done this, but should I also copy over the nV glxtokens.h?

(2) The nV installer automatically installed its own libGl.so files in /usr/lib. It did not, however, install them in /usr/X11R6/lib, which has its own versions. I discovered this yesterday when trying to compile the game foobillard, which has an option to use nV-extensions for bumpreflections. It would compile only when I temporarily replaced the standard libGL libraries in /usr/X11R6/lib with symlinks to the nV versions in /usr/lib. Should I make this change permanent?

(3) If I do need to make the change permanent, do I also need to recompile X against the nV GL libraries? How else, for example, will I get a correct libGL.a ?

Sorry for the long question.

Thanks,
__________________
Silenus
silenus is offline   Reply With Quote
Old 06-11-03, 04:14 AM   #2
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default

1) Just copy all nvidia's headers over to /usr/include/GL. Note that to compile GL apps more headers are needed for example from Mesa since nvidia doesn't provide all headers.

2) Normally the GL libraries are installed to /usr/lib, are you sure the libraries in /usr/X11R6/lib are not the ones from xfree86? If not keep the symlinks or just move the files over.

3) There are two types of libraries on linux static (.a) and dynamic (.so). Most applications use dynamic libraries. When you build an app using static libraries the library gets builtin into the app. In such a case you can copy the app to another system and the library is not needed.
In general you don't need these static libs and likely nvidia can't provide them because of legal reasons. (linking a GPL'ed app with a static lib ..)
Really remove libGL.a if you have it left. If it doesn't exist apps will use the dynamic library.
Thunderbird is offline   Reply With Quote
Old 06-11-03, 04:34 AM   #3
silenus
Registered User
 
Join Date: Jun 2003
Posts: 4
Default

Thank-you very much for the swift reply.

(1) OK, I will just copy all of them over - I was just puzzled by the fact that the Readme does not mention glxtokens.h. I think I have all the other libraries (eg Mesa) I need- so long as I don't have to get versions which are in some way nV modified.

(2) I am sure that they *are* the ones from xfree 86. I wondered why the nV installer did not automatically overwrite them at the same time it was installing itw own stuff to /usr/lib - should it not have done so?

(3) I have a general understanding of the role of (.a) libs - I guess I was just being obsessive about having everything neat and tidy. Also, I did not realise that if I delete the (.a) libs then compilation via (.so) will be forced - I thought that some compilations would just fail if the code required a (.a) and it was missing.

Thanks again
__________________
Silenus
silenus is offline   Reply With Quote
Old 06-11-03, 08:02 PM   #4
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

Quote:
Originally posted by silenus
I wondered why the nV installer did not automatically overwrite them at the same time it was installing itw own stuff to /usr/lib - shuld it not have done so?
I think so (when you give --extract-only to the .run file, the Makefile in the resulting directory does try to delete /usr/X11R6/lib/libGL.*), but maybe it either didn't or couldn't for some reason? In any case, just delete these files yourself -- no symlinks are needed (any compilations will find the right libs in /usr/lib).
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 06-12-03, 10:30 AM   #5
silenus
Registered User
 
Join Date: Jun 2003
Posts: 4
Default

Thanks,

You are (of course), right about the Makefile.

Both the /usr/X11R6/lib directory and the libGL files were, as you would expect, root-owned and 755 permissioned. I guess there must have been some glitch with the removal. I generally run an uninstaller script at install-time which gives me a log of what happened during installations, but it won't work with the nV installer so I guess I will never know how the problem arose.
__________________
Silenus
silenus 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Arma 3 E3 hands-on preview: 8 important questions answered News Archived News Items 0 06-08-12 05:20 AM
AMD Counter-Attacks GeForce GTX 670, Questions NVIDIA's Kepler Availability (BSN) News GeForce GTX 670 Reviews 1 05-10-12 11:54 PM
Exercises in democracy: building a digital public library News Archived News Items 0 05-06-12 06:50 PM
FastM, AdrianHall, Questions About Leadtek TV 2000 Essense General Hardware 3 09-29-02 11:15 PM
FSAA Questions LaoTzuTao NVIDIA Linux 16 09-11-02 12:55 PM

All times are GMT -5. The time now is 02:09 AM.


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