[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: grip being removed [Re: rawhide report: 20050120 changes]



fre 2005-01-28 klockan 10:07 -0700 skrev Ivan Gyurdiev:
> > - some sort of alternatives system or post-install scripts to 
> >   find correct provider of libGL.so.1
> 
> That should be libGL.so.
> 
> Let me demonstrate. After today's X upgrades:

[snip]

[root localhost ~]# rpm -qa \*nvidia\* \*Mesa\*
kernel-module-nvidia-2.6.10-1.741_FC3-1.0.6629-0.lvn.6
kernel-module-nvidia-2.6.9-1.724_FC3-1.0.6629-0.lvn.6
xorg-x11-Mesa-libGLU-6.8.1-12.FC3.21
xorg-x11-Mesa-libGL-6.8.1-12.FC3.21
nvidia-glx-1.0.6629-0.lvn.6
nvidia-glx-devel-1.0.6629-0.lvn.6

Both nvidia-glx and Mesa are installed.

Follow libGL.so:

[root localhost ~]# ls -l /usr/lib/libGL.so
lrwxrwxrwx  1 root root 28  5 jan 18.41 /usr/lib/libGL.so -
> ../../usr/X11R6/lib/libGL.so

[root localhost ~]# ls -l /usr/X11R6/lib/libGL.so
lrwxrwxrwx  1 root root 12  5 jan 18.41 /usr/X11R6/lib/libGL.so ->
libGL.so.1.2

[root localhost ~]# ls -l /usr/X11R6/lib/libGL.so.1.2 
-rwxr-xr-x  1 root root 474388  1 dec 08.36 /usr/X11R6/lib/libGL.so.1.2

Now, a test program that links to libGL:

[root localhost ~]# cat test.c 
#include <GL/gl.h>
#include <GL/glx.h>

int main() {
        return 0;
}

Compile and look for runtime providers (snipped for brevity):

[root localhost ~]# gcc test.c -lGL
[root localhost ~]# ldd a.out 
        libGL.so.1 => /usr/lib/nvidia/libGL.so.1 (0x4a8b4000)
        libGLcore.so.1 => /usr/lib/nvidia/libGLcore.so.1 (0x4a16d000)
        libnvidia-tls.so.1 => /usr/lib/nvidia/tls/libnvidia-tls.so.1
(0x4a8b0000)


What's the problem with this setup?

/Peter



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]