badaix / snapcast

Synchronous multiroom audio player
GNU General Public License v3.0
6.22k stars 455 forks source link

Two failures during compilation on Raspberry Pi #1134

Closed holybladder closed 7 months ago

holybladder commented 1 year ago

Describe the bug Compilation fails at two steps during installation on Raspberry Pi when following instructions at https://github.com/badaix/snapcast/blob/develop/doc/build.md#raspberry-pi-cross-compile (was able to resolve the first but not the second)

Describe the bug Makefiles not initially present,

Steps to Reproduce

  1. Checked that git and all dependencies were installed
  2. Ran "git clone https://github.com/badaix/snapcast.git"
  3. "cd snapcast"
  4. "make" - Make fails because makefiles not present
  5. Ran "git checkout master" - this checked out makefiles (saw it on a forum, don't know enough to understand why this worked, sorry)
  6. "make" - make now found makefiles and ran through correctly
  7. "make installclient" - this failed with the following output:

make install -C client make[1]: Entering directory '/home/pi/New/snapcast/client' make adduser make[2]: Entering directory '/home/pi/New/snapcast/client' sh ../debian/snapclient.postinst configure sh: 0: cannot open ../debian/snapclient.postinst: No such file make[2]: [Makefile:181: adduser] Error 2 make[2]: Leaving directory '/home/pi/New/snapcast/client' make[1]: [Makefile:145: install] Error 2 make[1]: Leaving directory '/home/pi/New/snapcast/client' make: *** [Makefile:22: installclient] Error 2

Environment details Raspberry Pi 3B+ running fresh Pi OS Bullseye installation Snapcast straight from git

Attach logfile if applicable No log possible, install failed

kingosticks commented 1 year ago

The wiki has been outdated for some time but I believe it's now cmake rather than make. You can see this working in the GH Actions logs at https://github.com/badaix/snapcast/actions

holybladder commented 1 year ago

That worked, thank you!

badaix commented 1 year ago

Documentation is updated: 18c4a986a68a9b58bf2bd50479cdfeb8a8534090

badaix commented 7 months ago

Fixed in version 0.28.0