xbmc.bin: error while loading shared libraries: libGLESv2.so

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

xbmc.bin: error while loading shared libraries: libGLESv2.so

Postby dgr48 » Wed Jan 02, 2013 10:38 am

Hi,

Something went wrong with the last update:

[xbmc@alarmpi ~]$ xbmc-standalone
/usr/lib/xbmc/xbmc.bin: error while loading shared libraries: libGLESv2.so: cannot open shared object file: No such file or directory
/usr/lib/xbmc/xbmc.bin: error while loading shared libraries: libGLESv2.so: cannot open shared object file: No such file or directory
/usr/lib/xbmc/xbmc.bin: error while loading shared libraries: libGLESv2.so: cannot open shared object file: No such file or directory
XBMC has exited uncleanly 3 times in the last 5 seconds.
Something is probably wrong
[xbmc@alarmpi ~]$ ldconfig -p | grep vc
libvcos.so (libc6) => /opt/vc/lib/libvcos.so
libvchiq_arm.so (libc6) => /opt/vc/lib/libvchiq_arm.so
libopenmaxil.so (libc6) => /opt/vc/lib/libopenmaxil.so
libmmal_vc_client.so (libc6) => /opt/vc/lib/libmmal_vc_client.so
libmmal.so (libc6) => /opt/vc/lib/libmmal.so
libdebug_sym.so (libc6) => /opt/vc/lib/libdebug_sym.so
libbcm_host.so (libc6) => /opt/vc/lib/libbcm_host.so
libWFC.so (libc6) => /opt/vc/lib/libWFC.so
libOpenVG.so (libc6) => /opt/vc/lib/libOpenVG.so
libGLESv2.so (libc6) => /opt/vc/lib/libGLESv2.so
libEGL.so (libc6) => /opt/vc/lib/libEGL.so
[xbmc@alarmpi ~]$


[xbmc@alarmpi ~]$ pacman -Qs raspberry
local/libcec-rpi 2.0.5-1
Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter with support for raspberry pi
local/linux-headers-raspberrypi 3.6.11-2
Header files and scripts for building modules for linux kernel for Raspberry Pi
local/linux-raspberrypi 3.6.11-2
The Linux Kernel and modules for Raspberry Pi
local/raspberrypi-firmware 20121231-1
Firmware files for Raspberry Pi
local/xbmc-rbp-git 20130101-1
A software media player and entertainment hub for digital media for the Raspberry Pi


Any help?

Thanks.

./dgr48
dgr48
 
Posts: 1
Joined: Wed Jan 02, 2013 10:33 am

Re: xbmc.bin: error while loading shared libraries: libGLESv

Postby tgc » Wed Jan 02, 2013 11:53 am

Just updated to the new build, and I can see I have the same issue. It seems something has gone wrong in the linking:
$this->bbcode_second_pass_code('', ' ldd /usr/lib/xbmc/xbmc.bin | grep "not found"
libGLESv2.so => not found
libbcm_host.so => not found
libvcos.so => not found
libvchiq_arm.so => not found
')
I managed to "trick" xbmc into finding the libs:
$this->bbcode_second_pass_code('', 'LD_LIBRARY_PATH=/opt/vc/lib/ xbmc')
But when the libraries are listed by "ldconfig -p" I would expect xbmc to work without that trick. Maybe a rebuild would fix this issue?
tgc
 
Posts: 66
Joined: Sun May 20, 2012 8:05 am

Re: xbmc.bin: error while loading shared libraries: libGLESv

Postby pepedog » Wed Jan 02, 2013 1:33 pm

It just got rebuilt against new firmware
Maybe check PKGBUILD to see if anything wrong?
https://github.com/archlinuxarm/PKGBUIL ... mc-rbp-git
Or maybe things changed in firmware?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: xbmc.bin: error while loading shared libraries: libGLESv

Postby tgc » Wed Jan 02, 2013 9:51 pm

I think something must have changed with the new firmware or kernel update. The way the ldconfig cache is ignored makes me think the dynamic linking for libs in non-standard paths are broken. Unfortunantly I dont know why this would happen, so I could be wrong.
i assume the xbmc-rbp-git-next package (which used the new version of the firmware) worked ok?
tgc
 
Posts: 66
Joined: Sun May 20, 2012 8:05 am

Re: xbmc.bin: error while loading shared libraries: libGLESv

Postby pepedog » Wed Jan 02, 2013 10:40 pm

Yes, it did work
$this->bbcode_second_pass_code('', 'xbmc-rbp-git-next]# diff PKGBUILD PKGBUILD-next
3,4c3,4
< pkgname=xbmc-rbp-git
< pkgver=20121230
---
> pkgname=xbmc-rbp-git-next
> pkgver=20121130
12c12
< depends=('hicolor-icon-theme' 'fribidi' 'lzo2' 'smbclient' 'libtiff' 'libva' 'libpng' 'libcdio' 'yajl' 'libmysqlclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd' 'sdl_image' 'python2' 'libass' 'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'unzip' 'xorg-xdpyinfo' 'libbluray' 'libnfs' 'afpfs-ng' 'libshairport' 'avahi' 'bluez' 'tinyxml' 'raspberrypi-firmware' 'libcec-rpi' 'libplist' 'swig' 'taglib')
---
> depends=('hicolor-icon-theme' 'fribidi' 'lzo2' 'smbclient' 'libtiff' 'libva' 'libpng' 'libcdio' 'yajl' 'libmysqlclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd' 'sdl_image' 'python2' 'libass' 'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'unzip' 'xorg-xdpyinfo' 'libbluray' 'libnfs' 'afpfs-ng' 'libshairport' 'avahi' 'bluez' 'tinyxml' 'raspberrypi-firmware-next' 'libcec-rpi' 'libplist' 'swig' 'taglib' 'ffmpeg')
14c14
< makedepends=('boost' 'cmake' 'gperf' 'nasm' 'zip' 'udisks' 'upower' 'bluez' 'git' 'autoconf' 'openjdk6')
---
> makedepends=('boost' 'cmake' 'gperf' 'nasm' 'zip' 'udisks' 'upower' 'bluez' 'git' 'autoconf' 'openjdk6' 'raspberrypi-firmware-next')
29a30,31
> provides=('xbmc-rbp-git')
> conflicts=('xbmc-rbp-git')
56,57c58,59
< export CFLAGS="-O3 -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -mabi=aapcs-linux -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/opt/vc/include/ -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
< export CXXFLAGS="-O3 -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -mabi=aapcs-linux -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/opt/vc/include/ -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
---
> export CFLAGS="-O3 -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -mabi=aapcs-linux -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/opt/vc/include/ -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/"
> export CXXFLAGS="-O3 -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -mabi=aapcs-linux -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/opt/vc/include/ -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux/"
65c67
< --enable-libcec --enable-player=omxplayer
---
> --enable-libcec --enable-player=omxplayer --enable-external-ffmpeg')
My eyes are old, tgc, but think you will know what to do with this
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: xbmc.bin: error while loading shared libraries: libGLESv

Postby Mikelevel » Thu Jan 03, 2013 7:52 am

fresh install and the same problem here... :(

In http://www.raspbian.org/RaspbianXBMC talks about do..

$this->bbcode_second_pass_code('', ' sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/libEGL.so
sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so
sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so.1
sudo ln -fs /opt/vc/lib/libEGL_static.a /usr/lib/libEGL_static.a
sudo ln -fs /opt/vc/lib/libEGL_static.a /usr/lib/arm-linux-gnueabihf/libEGL_static.a
sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/libGLESv2.so
sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so
sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2
sudo ln -fs /opt/vc/lib/libGLESv2_static.a /usr/lib/libGLESv2_static.a
sudo ln -fs /opt/vc/lib/libGLESv2_static.a /usr/lib/arm-linux-gnueabihf/libGLESv2_static.a
sudo ln -fs /opt/vc/lib/libbcm_host.so /usr/lib/libbcm_host.so
sudo ln -fs /opt/vc/lib/libbcm_host.so /usr/lib/arm-linux-gnueabihf/libbcm_host.so
sudo ln -fs /opt/vc/lib/libvchiq_arm.a /usr/lib/libvchiq_arm.a
sudo ln -fs /opt/vc/lib/libvchiq_arm.a /usr/lib/arm-linux-gnueabihf/libvchiq_arm.a
sudo ln -fs /opt/vc/lib/libvchiq_arm.so /usr/lib/libvchiq_arm.so
sudo ln -fs /opt/vc/lib/libvchiq_arm.so /usr/lib/arm-linux-gnueabihf/libvchiq_arm.so
sudo ln -fs /opt/vc/lib/libvcos.a /usr/lib/libvcos.a
sudo ln -fs /opt/vc/lib/libvcos.a /usr/lib/arm-linux-gnueabihf/libvcos.a
sudo ln -fs /opt/vc/lib/libvcos.so /usr/lib/libvcos.so
sudo ln -fs /opt/vc/lib/libvcos.so /usr/lib/arm-linux-gnueabihf/libvcos.so')

I cant try it now , but could be a solution..

P.D: Sorry my english
Mikelevel
 
Posts: 5
Joined: Wed Jan 02, 2013 11:07 pm

Re: xbmc.bin: error while loading shared libraries: libGLESv

Postby tgc » Thu Jan 03, 2013 10:13 am

@pepedog:
I'm not sure my eyes are any younger than yours, but i only spotted 2 differences:
1. The "next" PKGBUILD got the firmware in the makedepends as well as in the depends
2. The normal PKGBUILD now uses internal ffmpeg.
To the best of my knowledge, neither could cause this linker issue.
I noticed glibc (which ldconfig is part of) was updated to 2.17 almost at the same time as the firmware/kernel. I suspect it could it be a change/bug in glibc that causes the /etc/ld.so.cache to be ignored.

@Mikelevel:
Instead of doing those links, the xbmc packages contains the file /etc/ld.so.conf.d/xbmc-rbp-git.conf, which tells the system to also look in /opt/vc/lib/ for libraries. This worked great until now, so something must be broken somewhere.
tgc
 
Posts: 66
Joined: Sun May 20, 2012 8:05 am

Re: xbmc.bin: error while loading shared libraries: libGLESv

Postby fedux » Thu Jan 03, 2013 8:15 pm

It seems to be a glibc/binutils problem. Other commands also fail to load the libraries.

$ /opt/vc/bin/vcgencmd measure_temp
/opt/vc/bin/vcgencmd: error while loading shared libraries: libvcos.so: cannot open shared object file: No such file or directory

$ LD_LIBRARY_PATH=/opt/vc/lib/ /opt/vc/bin/vcgencmd measure_temp
temp=51.9'C
fedux
 
Posts: 4
Joined: Thu Jan 03, 2013 8:11 pm

Re: xbmc.bin: error while loading shared libraries: libGLESv

Postby tgc » Thu Jan 03, 2013 10:19 pm

$this->bbcode_second_pass_quote('fedux', 'I')t seems to be a glibc/binutils problem. Other commands also fail to load the libraries.

Ok, so I guess the question now is how to fix this issue. I googleed a bit with no result, but to be honest I'm unsure exactly what I'm looking for...
But I would like to suggest that the firmware package in the future puts a conf file in /etc/ld.so.conf.d/ so that the libs in /opt/lib/vc will be linked automaticly.
tgc
 
Posts: 66
Joined: Sun May 20, 2012 8:05 am

Re: xbmc.bin: error while loading shared libraries: libGLESv

Postby pepedog » Thu Jan 03, 2013 10:26 pm

But your xbmc build is doing it
$this->bbcode_second_pass_quote('', 'e')cho "/opt/vc/lib/" > "${pkgdir}"/etc/ld.so.conf.d/xbmc-rbp-git.conf
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 8 guests