Replies: 4 comments
-
Sounds like #142 which despite being closed sounds like it's still an issue. |
Beta Was this translation helpful? Give feedback.
-
Good catch; sorry, I should have searched more thoroughly. If I restrict my additional libraries to the armhf, I'm able to install them: But I can't compile still:
|
Beta Was this translation helpful? Give feedback.
-
As per my comments on #142, I was able to compile librespot with the patch referenced there, but it wouldn't work on my device, which was based on much older libraries. I dug in a little deeper, and have found that this Dockerfile worked for me:
You see that I stripped out just about everything that wasn't armhf oriented, but the key difference that led to a passing build seemed to be that I removed libpulse-dev in favor of only the :armhf variation. I also changed ending build script line to use the arm6hf version of the script, which you can see I modified to be just about pulse:
(But I don't actually think this script runs, because we have to run the second command after building the docker image as per the instructions in the wiki...) I think I added in a lot more libraries there than are necessary for compilation; I was just in trial and error, not fully knowing how cross-compilation works. I should think that the non -dev debs could be removed. (But again, I'm not even sure that this script runs :-/ ) I then built and compiled with these commands:
I presume that one could re-enable ALSA and get BOTH backends running, but I haven't done that yet. I'm writing this up in case it helps others; meanwhile, I suppose an arch-specific Docker build process might be warranted in this case? I could refine what I've done above and make a pull request... |
Beta Was this translation helpful? Give feedback.
-
@mfeif if you're still up for it, a PR for arch specific docker would be good to have. |
Beta Was this translation helpful? Give feedback.
-
I put in the command:
docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --no-default-features --features pulseaudio-backend
eventually got:
note: /usr/bin/ld: cannot find -lpulse /usr/bin/ld: cannot find -lpulse-simple collect2: error: ld returned 1 exit status
On a lark, I logged into the docker image and installed pulseaudio -dev libraries via apt, but no difference. I poked around in the source and the toml files a bit, but I don't know what I'm doing.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions