raspotify: Failed to build librespot/raspotify, failing at alsa-sys
When I tried to compile using sudo make, it first complained about a missing environment variable. After adding ENV PKG_CONFIG_ALLOW_CROSS 1 to the Dockerfile it now fails with:
Compiling crossbeam-queue v0.1.2
Compiling tokio-executor v0.1.6
error: failed to run custom build command for `alsa-sys v0.1.2`
process didn't exit successfully: `/build/release/build/alsa-sys-955037715e9ddf22/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "Failed to run `\"pkg-config\" \"--libs\" \"--cflags\" \"alsa\"`: No such file or directory (os error 2)"', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed
make: *** [Makefile:10: raspotify_*.deb] Error 101
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 15 (3 by maintainers)
I’m going to go ahead and attempt to build this on my actual pi, side stepping the cross-compiling errors. Could take while but expect an update EOD or tomorrow morning PDT. Thanks all!
Noted! Thanks for filing. I’ll try to work on a PR, but as an interim solution I can compile and package on my Pi if upstream librespot has necessary changes.
Hey all! I have addressed the issue, and cross compiling with
alsa-sysis now working again. I’ve tagged version 0.13.0, and you can download the.debfile here:raspotify_0.13.0.librespot.20190412T034352Z.6c4311f_armhf.deb, which packages6c4311fof librespot. Please test.I won’t have access to a Pi for several more hours, I’ll test myself and if it works, I’ll deploy to the apt repository then. Thanks for your patience.