nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   static version of nvidia libGL?? (http://www.nvnews.net/vbulletin/showthread.php?t=8161)

gradzac 03-02-03 02:55 PM

static version of nvidia libGL??
 
Is there a way that I can get a static version of the nvidia OpenGL library? I'm working on a program that I would like to statically link and libGL is the only dependency that is preventing me from linking.

Thanks,
Ben

Thunderbird 03-02-03 03:41 PM

There won't be a static linked version of the nvidia libGL.so. Static linking is bad for OpenGL, it would limit you to the use of the nvidia drivers. Likely the reason no static lib exists is because of licensing. It would make linking with a GPL app impossible ..

gradzac 03-04-03 07:06 AM

Quote:

Originally posted by Thunderbird
There won't be a static linked version of the nvidia libGL.so. Static linking is bad for OpenGL, it would limit you to the use of the nvidia drivers. Likely the reason no static lib exists is because of licensing. It would make linking with a GPL app impossible ..
Why is static linking bad for OpenGL? Does it somehow change how the libs work? I know that the systems I will run my program on use nvidia hardware so I am not worried about being limited to that.

How do you think that licensing would be an issue? I'm not planning on releasing any of my software, so I am under no obligation to release source and I can do as I please with the source to GPL libs that I have.

NVIDIA: if you are going to release a shared lib in your package, why can't you also include a static one?

merlin42 03-04-03 03:05 PM

Please explain why you want to statically link your app?

One of the major selling points of OpenGL is that it is hardware independant, statically linking negates this independance. In fact a statically linked application wouldn't even work with after a different version of the drivers was installed (libGL.so depends on the kernel module and the X drivers).

Providing a static version of the library would be a support headache for nvidia, and provide essentially 0 benifit to their customes (except you perhaps), I do a lot of OpenGL development and I have never had the need or desire for a statically linked libGL.so. If they did provide a static version then some idiot would (possibly unintentionally) statically link and redistribute an app, which would probably make nvidia look bad even though they were not _really_ to blame.

Well, now that I think about it I could imagine wanting to statically link Mesa so that you could have a reference version of your app that used a software renderer, but there is no reason to statically link a vendor supplied libGL.so.


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

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