This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Docker compile with pulseaudio backend fails #229
Comments
Sounds like #142 which despite being closed sounds like it's still an issue. |
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:
|
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... |
@mfeif if you're still up for it, a PR for arch specific docker would be good to have. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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!
The text was updated successfully, but these errors were encountered: