WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [TC6] nvidia-340.76-3.16.6 - error while loading shared libraries: libGL.so.1:  (Read 2436 times)

Offline schmo

  • Newbie
  • *
  • Posts: 9
Hi all,

i try to use the nvidia-driver, that i found here http://tinycorelinux.net/6.x/x86/tcz/src/nvidia_driver/
I added

nvidia-340.76-3.16.6-tinycore.tcz and Xorg-7.7-3d to onboot.lst.

as i can see the driver runs correct. If i move a window, it moves perfect smooth.
Code: [Select]
tc@box:~$ lsmod | grep nvidia
nvidia               9003008 23

but if i try glxgears it does not work:
Quote
tc@box:~$ glxgears
glxgears: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

I also cant use firefox or nvidia-settings, it is the same error.

Did I need some symlinks?

Greetings

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Install libGL.tcz and see if problems disappear.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
...which is a dependency of  Xorg-7.7.tcz,
did you install and add this extension to onboot.lst?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14572
This extension was something I built to help another user out - I don't have hardware to test.

As I recall, you need to load Xorg-7.7-3d before you load this extension because the startup script should remove the libGL.so.1 symlink from the libGL extension and remake it to point to libGL.so.340.76 in this extension.

Maybe you could check if the symlink libGL.so.1 -> libGL.so.340.76 exists and, if not, make it.

Offline schmo

  • Newbie
  • *
  • Posts: 9
Hi,

thanks for your fast response!

libGl.tcz was already installed. i tried to add it to onboot.lst as last entry but the error is the same.

this is my boot.lst
Code: [Select]
[...]
xdemos.tcz
graphics-3.16.6-tinycore.tcz
gtk2.tcz
shared-mime-info.tcz
pkg-config.tcz
xorg-server-dev.tcz
nvidia-340.76-3.16.6-tinycore.tcz
Xorg-7.7-3d.tcz
libGL.tcz

and this are the symlinks, looks fine ore not?
Code: [Select]
tc@box:/usr/local/lib$ ls -la | grep libGL
lrwxrwxrwx    1 root     root            64 Oct 30 15:58 libGL.la -> /tmp/tcloop/nvidia-340.76-3.16.6-tinycore/usr/local/lib/libGL.la
lrwxrwxrwx    1 root     root            30 Oct 30 15:58 libGL.so -> /usr/local/lib/libGL.so.340.76
lrwxrwxrwx    1 root     root            25 Oct 30 15:58 libGL.so.1 -> /usr/local/lib/libGL.so.1
lrwxrwxrwx    1 root     root            46 Oct 30 15:58 libGL.so.1.2.0 -> /tmp/tcloop/libGL/usr/local/lib/libGL.so.1.2.0
lrwxrwxrwx    1 root     root            71 Oct 30 15:58 libGL.so.340.76 -> /tmp/tcloop/nvidia-340.76-3.16.6-tinycore/usr/local/lib/libGL.so.340.76
lrwxrwxrwx    1 root     root            71 Oct 30 15:58 libGLESv1_CM.so -> /tmp/tcloop/nvidia-340.76-3.16.6-tinycore/usr/local/lib/libGLESv1_CM.so
lrwxrwxrwx    1 root     root            73 Oct 30 15:58 libGLESv1_CM.so.1 -> /tmp/tcloop/nvidia-340.76-3.16.6-tinycore/usr/local/lib/libGLESv1_CM.so.1
lrwxrwxrwx    1 root     root            59 Oct 30 15:58 libGLESv1_CM.so.1.1.0 -> /tmp/tcloop/Xorg-7.7-3d/usr/local/lib/libGLESv1_CM.so.1.1.0
lrwxrwxrwx    1 root     root            78 Oct 30 15:58 libGLESv1_CM.so.340.76 -> /tmp/tcloop/nvidia-340.76-3.16.6-tinycore/usr/local/lib/libGLESv1_CM.so.340.76
lrwxrwxrwx    1 root     root            68 Oct 30 15:58 libGLESv2.so -> /tmp/tcloop/nvidia-340.76-3.16.6-tinycore/usr/local/lib/libGLESv2.so
lrwxrwxrwx    1 root     root            70 Oct 30 15:58 libGLESv2.so.2 -> /tmp/tcloop/nvidia-340.76-3.16.6-tinycore/usr/local/lib/libGLESv2.so.2
lrwxrwxrwx    1 root     root            56 Oct 30 15:58 libGLESv2.so.2.0.0 -> /tmp/tcloop/Xorg-7.7-3d/usr/local/lib/libGLESv2.so.2.0.0
lrwxrwxrwx    1 root     root            75 Oct 30 15:58 libGLESv2.so.340.76 -> /tmp/tcloop/nvidia-340.76-3.16.6-tinycore/usr/local/lib/libGLESv2.so.340.76
lrwxrwxrwx    1 root     root            39 Oct 30 15:58 libGLU.so -> /tmp/tcloop/glu/usr/local/lib/libGLU.so
lrwxrwxrwx    1 root     root            41 Oct 30 15:58 libGLU.so.1 -> /tmp/tcloop/glu/usr/local/lib/libGLU.so.1
lrwxrwxrwx    1 root     root            45 Oct 30 15:58 libGLU.so.1.3.1 -> /tmp/tcloop/glu/usr/local/lib/libGLU.so.1.3.1
lrwxrwxrwx    1 root     root            43 Oct 30 15:58 libglapi.so -> /tmp/tcloop/libGL/usr/local/lib/libglapi.so
lrwxrwxrwx    1 root     root            45 Oct 30 15:58 libglapi.so.0 -> /tmp/tcloop/libGL/usr/local/lib/libglapi.so.0
lrwxrwxrwx    1 root     root            49 Oct 30 15:58 libglapi.so.0.0.0 -> /tmp/tcloop/libGL/usr/local/lib/libglapi.so.0.0.0
tc@box:/usr/local/lib$

[edit] wait, "libGL.so.1 -> /usr/local/lib/libGL.so.1" is this correct? Doesn't has that be linked to /tmp/tcloop/libGL/usr/local/lib? Maybe i messed it up by trying to fix that....

if i do this:
Code: [Select]
ln -sf /tmp/tcloop/libGL/usr/local/lib/libGL.so.1 /usr/local/lib/libGL.so.1
ln -sf /tmp/tcloop/libEGL/usr/local/lib/libEGL.so.1 /usr/local/lib/libEGL.so.1

then i can ran nvidia-settings
glxgears seems to run also.... but the glx-extension is missing, but thats another problem.
« Last Edit: October 30, 2015, 08:34:12 AM by schmo »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14572
This:
Code: [Select]
libGL.so -> /usr/local/lib/libGL.so.340.76
libGL.so.1 -> /usr/local/lib/libGL.so.1

Needs changing to this:
Code: [Select]
libGL.so -> /usr/local/lib/libGL.so.340.76
libGL.so.1 -> /usr/local/lib/libGL.so.340.76

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Exactly,  NVIDIA will exhibit errors if it cannot find or use it's own version of libGL which is happening here

libGL.tcz is only for Xorg when installed without proprietary driver


Sent from my iPhone using Tapatalk
« Last Edit: October 30, 2015, 10:41:56 AM by coreplayer2 »