librespot icon indicating copy to clipboard operation
librespot copied to clipboard

libssl not found

Open GChalony opened this issue 3 months ago • 5 comments

Hi,

I just updated to 0.7.1 (from 0.6) and I'm now having an issue where libssl cannot be found.

./test-hal-cross: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

I do have libssl installed, I have found it in /usr/lib/aarch64-linux-gnu/libssl.so.

I'm not sure if it's related but I'm cross compiling with cross ?

Thanks for your help :)

GChalony avatar Sep 29 '25 13:09 GChalony

Note: it works just fine with rust-tls-native-roots

GChalony avatar Sep 29 '25 13:09 GChalony

rustls-tls is a reasonable option when "You're cross-compiling and want to avoid OpenSSL build complexity" as per https://github.com/librespot-org/librespot/blob/dev/COMPILING.md#rustls-tls

Although having said that, I was under the impression the cross builds with libssl should work (I don't use them myself).

There's not enough info here otherwise to provide more help, for some reason you ignored the issue template.

kingosticks avatar Sep 29 '25 13:09 kingosticks

Thanks for you're answer. I've read the doc but wanted to avoid including the whole rustls crate into the build. From what I understood, libssl should be loaded at runtime so the cross compiling shouldn't really change anything ? The only thing weird is that it mentions ssl 1.0.0 specifically.

Sorry about the template, tell me what info you need.

  • librespot version 0.7.1
  • previously working version : librespot 0.6.0. No code change in between
  • target platform : Raspberry pi 3B
  • compiling from Linux fedora using cross

GChalony avatar Sep 29 '25 14:09 GChalony

Couldn't compile with libssl either.

Not sure if the devs want rust-tls-native-roots for some other reason but I made a MR that solves that as well as building towards Debian Trixie so you can always check it out if here @GChalony

tomodachi avatar Oct 29 '25 12:10 tomodachi

Nice ! Thanks for the fix 😉

GChalony avatar Oct 29 '25 21:10 GChalony