-
Notifications
You must be signed in to change notification settings - Fork 459
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
build crashes at alsa-sys #632
Comments
That's because spotifyd doesn't run on Windows (yet). ALSA is an audio library for linux. |
You can, however, check out this fork which has added Windows support on master: I didn't test it myself or can provide any information on how to compile it properly. But a simple Here is the PR to include it in our repository: #602 |
ok, thank you. |
You can run it inside of WSL (Windows Subsystem Linux) IIRC. I'd just use the rodio_backend for it. So running WSL is a feature inside of Windows that you might need to activate (plus reboot) to have it enabled. It's like a build-in VM for linux with just a console though. |
Can confirm building/running with those flags does work under Windows 64 Bit. |
Description
When I try to compile Spotifyd on Windows 10, it crashes while compiling alsa-sys v0.1.2.
To Reproduce
Steps to reproduce the behavior:
alsa-sys v0.1.2
Expected behavior
It should not have ended with an error, I guess.
Logs
Click to show logs
### many "Compiling ..." lines ###Compiling idna v0.1.5
error: failed to run custom build command for
alsa-sys v0.1.2
Caused by:
process didn't exit successfully:
C:\Users\user\spotifyd\target\release\build\alsa-sys-6e499960604f54e7\build-script-build
(exit code: 101)--- stderr
thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: "\"pkg-config\" \"--libs\" \"--cflags\" \"alsa\"
did not exit successfully: exit code: 1--- stderr
Package alsa was not found in the pkg-config search path.\r
Perhaps you should add the directory containing
alsa.pc\'\r to the PKG_CONFIG_PATH environment variable\r No package \'alsa\' found\r "', C:\Users\user\.cargo\registry\src\git.luolix.top-1ecc6299db9ec823\alsa-sys-0.1.2\build.rs:4:5 note: run with
RUST_BACKTRACE=1` environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...
error: build failed
Compilation flags
Versions:
Additional context
The error pops up for me at the current version, v0.2.24, v0.2.23 and probably multiple more.
When running with --no-default-features it spits 14 errors more.
And I do not have any knowledge of rust and how I can set a global variabe for Rust.
The text was updated successfully, but these errors were encountered: