Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling squeezelite on raspberry pi 4 with Debian bullseye #189

Open
bibo750four opened this issue Sep 24, 2023 · 6 comments
Open

Compiling squeezelite on raspberry pi 4 with Debian bullseye #189

bibo750four opened this issue Sep 24, 2023 · 6 comments

Comments

@bibo750four
Copy link

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: 3fbf7ea

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
Copy link
Owner

ralph-irving commented Sep 25, 2023

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
Copy link
Author

bibo750four commented Sep 25, 2023 via email

@ralph-irving
Copy link
Owner

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
Copy link
Author

bibo750four commented Sep 26, 2023 via email

@bibo750four
Copy link
Author

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
Copy link

andreid1303 commented Oct 6, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants