ralph-irving / squeezelite

Lightweight headless squeezebox player for Lyrion Media Server
https://sourceforge.net/projects/lmsclients/files/squeezelite/
Other
385 stars 98 forks source link

Compiling squeezelite on raspberry pi 4 with Debian bullseye #189

Open bibo750four opened 1 year ago

bibo750four commented 1 year ago

Hello,

I am not able to use squeezelite on my raspberry pi 4 because it is exiting almost immediately, maybe it is due to the issue fixed with this commit: 3fbf7ea5288fad99e76800ee566771bbbce49299

Unfortunately it seems that the Debian package is still old and does not contain the fix yet.

I tried building the current version locally using Makefile.rpi but I get the following error: cc: error: unrecognized command-line option ‘-mfloat-abi=hard’ cc: error: unrecognized command-line option ‘-mfpu=vfp’

I am very unexperienced so I assume I am doing something wrong, so my question is: is there an easy way for me to build squeezelite, or should I wait for a new Debian package?

Thank you for any helpful information :) Marco

ralph-irving commented 1 year ago

You are likely running an aarch64 distribution on your rpi4. Edit Makefile.rpi and remove -march=armv6 -mfloat-abi=hard -mfpu=vfp from the end of the OPTS line.

You can also try my squeezelite builds on Sourceforge https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/

bibo750four commented 1 year ago

Hello,

Thanks a lot, that fixed it and I could build!

Sorry for being total noob but now how do I replace the binary of the current installation with the one I built?

Cheers Marco

Il giorno 25.09.2023, alle ore 14:32, Ralph Irving @.***> ha scritto:

You are likely running an aarch64 distribution on your rpi4. Edit Makefile.rpi and remove -march=armv6 -mfloat-abi=hard -mfpu=vfp from the end of the OPTS line.

— Reply to this email directly, view it on GitHub https://github.com/ralph-irving/squeezelite/issues/189#issuecomment-1733619864, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARTO5YSGKAK5W6LWHFOH6I3X4F2VJANCNFSM6AAAAAA5E73RIM. You are receiving this because you authored the thread.

ralph-irving commented 1 year ago

You should be able to replace /usr/bin/squeezelite with the one you built.

sudo cp -i squeezelite /usr/bin/squeezelite

Make sure squeezelite is not running when you perform the copy or you'll get an error that the file is in use.

bibo750four commented 1 year ago

Thanks a lot, now it works perfectly!

BR Marco

Il giorno 26.09.2023, alle ore 14:54, Ralph Irving @.***> ha scritto:

You should be able to replace /usr/bin/squeezelite with the one you built.

sudo cp -i squeezelite /usr/bin/squeezelite

Make sure squeezelite is not running when you perform the copy or you'll get an error that the file is in use.

— Reply to this email directly, view it on GitHub https://github.com/ralph-irving/squeezelite/issues/189#issuecomment-1735487407, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARTO5YXYR3WVRUY3ISLLCVLX4LGARANCNFSM6AAAAAA5E73RIM. You are receiving this because you authored the thread.

bibo750four commented 12 months ago

Hello,

I still have some issue: I can execute squeezelite from the terminal and it works fine. I think that the service is also started correctly, but then at a certain time it exits and even if I try to restart the service it exits after a few seconds. Similar behavior as with the version before the fix that I mentioned in the message before. This may be due to my special setup which has a HDMI output to a tv and also a USB DAC output that is only switched on when I want to listen music. I noticed that sometimes the sound output to the USB DAC is stuck and I need to switch it off and on to get sound output again. Shall I set the -d option in the config file so that I can get a log for diagnosing the issue?

BR Marco

andreid1303 commented 11 months ago

I downloaded squeezelite-1.9.9.1428-aarch64 binary from Sourceforge and try to run it on RPi 4 last OSMC.

sudo: unable to execute ./squeezelite: not such file or dictionary
-rwxr-xr-x 1 osmc osmc 4136224 апр  5  2023 squeezelite

Linux osmc-gost 5.15.92-1-osmc #1 SMP PREEMPT Tue Jul 25 00:03:42 UTC 2023 aarch64 GNU/Linux

While armhf version is running fine. What could be a problem?