Closed TwizzyDizzy closed 3 years ago
Submitted a PR to address this, see comments there: https://github.com/nicokaiser/rpi-audio-receiver/pull/106
This is strange, since shairport-sync is also compiled from source (thus, installed to /usr/local/bin/shairport-sync
), so it should find its libraries in /usr/local/lib
.
I'll try to install a fresh version of the script to see what's wrong and if the LD_LIBRARY_PATH is really needed...
@TwizzyDizzy Can you check if this works: the current install script I just pushed runs ldconfig
after installing alac
. This should fix the issue without needing to provide a LD_LIBRARY_PATH
.
Yeah, this solution is to be preferred over the workaround in the systemd unit, which is what I meant with
Might also be solved by
configure
ing different LDFLAGS here: e579b0e.
in the PR.
I'll give it a spin with a spare SD and your pushed version (probably tomorrow) and report back.
Cheers Thomas
Ah.. did it now so we can finish this: can confirm, your ldconfig
does the trick.
This works due to:
root@livingroom:~# cat /etc/ld.so.conf.d/libc.conf
# libc default configuration
/usr/local/lib
The output of ldd
now shows: libalac.so.0
is found:
root@raspberrypi:/opt/rpi-audio-receiver# ldd /usr/local/bin/shairport-sync
...
libssl.so.1.1 => /lib/arm-linux-gnueabihf/libssl.so.1.1 (0x769a5000)
libcrypto.so.1.1 => /lib/arm-linux-gnueabihf/libcrypto.so.1.1 (0x7678b000)
libalac.so.0 => /usr/local/lib/libalac.so.0 (0x76772000)
libconfig.so.9 => /lib/arm-linux-gnueabihf/libconfig.so.9 (0x76758000)
libpopt.so.0 => /lib/arm-linux-gnueabihf/libpopt.so.0 (0x7673d000)
...
Cheers Thomas
Hi @nicokaiser
just used this repo to set up Bluetooth audio pairing / Airplay on my
Raspberry Pi 3 B
onRaspberry Pi OS Lite Buster
at commit https://github.com/nicokaiser/rpi-audio-receiver/commit/26d6a31fbf3732825a5969cc1b60202c985e3756 of this repo.One thing that did not work out of the box: Airplay.
shairport-sync.service
did not start with a complaint that it could not loadlibalac.so.0
.It seems as though the compiled version of
libalac
is put into/usr/local/lib
... theLD_LIBRARY_PATH
used by theshairplay-sync.service
does not seem to contain this path though, so we have to set in theshairport-sync.service
:Cheers Thomas