MayaPosch / NymphCast

Audio and video casting system with support for custom applications.
http://nyanko.ws/nymphcast.php
BSD 3-Clause "New" or "Revised" License
2.41k stars 81 forks source link

raspberrypi nymphcast_server[9460]: /usr/local/bin/nymphcast_server: error while loading shared libraries: libPocoUtil.so.70: cannot open shared object file: No such file or directory #66

Closed alphabet5 closed 3 months ago

alphabet5 commented 2 years ago

After installing with sudo ./install.sh I'm getting this error when the service is trying to start.

Jul 05 18:38:41 raspberrypi systemd[1]: Started NymphCast audio/video casting server.
Jul 05 18:38:41 raspberrypi nymphcast_server[9460]: /usr/local/bin/nymphcast_server: error while loading shared libraries: libPocoUtil.so.70: cannot open shared object file: No such file or directory
Jul 05 18:38:41 raspberrypi systemd[1]: nymphcast.service: Main process exited, code=exited, status=127/n/a
Jul 05 18:38:41 raspberrypi systemd[1]: nymphcast.service: Failed with result 'exit-code'.
Jul 05 18:38:46 raspberrypi systemd[1]: nymphcast.service: Scheduled restart job, restart counter is at 10.
Jul 05 18:38:46 raspberrypi systemd[1]: Stopped NymphCast audio/video casting server.
alphabet5 commented 2 years ago

Installing from source doesn't seem like it worked either.

gui.h:23:10: fatal error: nymphcast_client.h: No such file or directory
   23 | #include "nymphcast_client.h"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:186: obj/aarch64-linux-gnu/gui.o] Error 1
make: Leaving directory '/home/pi/NymphCast-master/src/server'
make: Entering directory '/home/pi/NymphCast-master/src/server'
TARGET: aarch64-linux-gnu
install -d /usr/local/bin/ \
    -d /usr/local/etc/nymphcast/ \
    -d /usr/local/share/nymphcast/apps/ \
    -d /usr/local/share/nymphcast/wallpapers/ \
    -d /usr/local/etc/avahi/services/
install -m 755 bin/aarch64-linux-gnu/nymphcast_server /usr/local/bin/
install: cannot stat 'bin/aarch64-linux-gnu/nymphcast_server': No such file or directory
make: *** [Makefile:212: install] Error 1
make: Leaving directory '/home/pi/NymphCast-master/src/server'
Installing systemd service...
make: Entering directory '/home/pi/NymphCast-master/src/server'
TARGET: aarch64-linux-gnu
#install -d /usr/local/etc/systemd/system/
sed -e 's:@BIN@:/usr/local/bin/nymphcast_server:g' -e 's:@CONFIG@:/usr/local/etc/nymphcast/nymphcast_config.ini:g' -e 's:@APPS@:/usr/local/share/nymphcast/apps/:g' -e 's:@WALLPAPERS@:/usr/local/share/nymphcast/wallpapers/:g' systemd/nymphcast.service > /etc/systemd/user/nymphcast.service
make: Leaving directory '/home/pi/NymphCast-master/src/server'
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
Jul 05 19:21:52 raspberrypi systemd[1]: Started NymphCast audio/video casting server.
Jul 05 19:21:52 raspberrypi nymphcast_server[6282]: /usr/local/bin/nymphcast_server: error while loading shared libraries: libPocoUtil.so.70: cannot open shared object file: No such file or directory
Jul 05 19:21:52 raspberrypi systemd[1]: nymphcast.service: Main process exited, code=exited, status=127/n/a
Jul 05 19:21:52 raspberrypi systemd[1]: nymphcast.service: Failed with result 'exit-code'.
MayaPosch commented 1 year ago

The first error is due to a mismatch in the LibPoco library version. What are the system specifications and installation steps?

Installing from source is automated with the setup.sh script. Could you provide the steps here too?

jmillerv commented 5 months ago

Having a similar issue.

OS

Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 12 (bookworm)
Release:    12
Codename:   bookworm

And I installed via the tarball & the install script.

error

./bin/nymphcast_server -c nymphcast_screensaver_config.ini 
./bin/nymphcast_server: error while loading shared libraries: libPocoUtil.so.70: cannot open shared object file: No such file or directory

UPDATE

I went through and updated my sources to use debian 11 which has the version of libpoco-dev that includes libpocoutil70. Unfortunately, I immediately ran into the next issue, which was another dependency that requires libswscale5.

jmillerv commented 5 months ago

Solution that got NymphCast working for me.

The program is now running on my Raspbery Pi.

MayaPosch commented 5 months ago

@jmillerv I think I may have encountered a similar issue with the libpoco dependency on Debian/RPiOS in the past as well. It does indeed appear to be due to an issue with the package manager and it getting its sources/dependencies mixed up. Uninstalling and reinstalling those dependencies seems to be the best 'fix'. Thank you for solving this issue on the latest RPiOS and providing the steps here :)

I assume that @alphabet5 has resolved this issue at this point, and I haven't encountered this issue on Debian-based distros over the past years on x86_64. I'll try it with the latest RPiOS to see whether I encounter this issue there.