spotifyd-http icon indicating copy to clipboard operation
spotifyd-http copied to clipboard

Error running cargo build

Open hypermoose opened this issue 9 years ago • 4 comments

On OSX and similar error on Win 10

Build failed, waiting for other jobs to finish... error: failed to run custom build command for protobuf_build v0.1.1 (https://github.com/plietar/rust-protobuf-build.git#24d5a01c) process didn't exit successfully: /Users/garycaldwell/Downloads/spotify-http/spotifyd-http/target/debug/build/protobuf_build-e2686571b24530af/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\" \"protobuf\": No such file or directory (os error 2)"', ../src/libcore/result.rs:837 note: Run with RUST_BACKTRACE=1 for a backtrace.

hypermoose avatar Jan 14 '17 00:01 hypermoose

So the build fails in protobuf_build [1], which gets pulled in as a dependency, probably from librespot.

Are you able to build upstream librespot, https://github.com/plietar/librespot?

SimonTeixidor avatar Jan 14 '17 00:01 SimonTeixidor

No, portaudio fails for that one :-)

hypermoose avatar Jan 14 '17 01:01 hypermoose

Okay. It seems like you don't have pkg-config installed. Try installing pkg-config and protobuf with homebrew: brew install pkg-config protobuf And then try again.

SimonTeixidor avatar Jan 14 '17 10:01 SimonTeixidor

brew install pkg-config protobuf is a must on MacOS.

I was only able to compile spotifyd-http version 0.1.0 using Rust 1.6.0.

Notw for rust beginners like me: rustup install 1.6.0 && rustup default 1.6.0 should do the trick

dgloeckner avatar Oct 17 '17 19:10 dgloeckner