Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Error running cargo build #6

Open
hypermoose opened this issue Jan 14, 2017 · 4 comments
Open

Error running cargo build #6

hypermoose opened this issue Jan 14, 2017 · 4 comments

Comments

@hypermoose
Copy link

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.

@SimonTeixidor
Copy link
Member

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?

@hypermoose
Copy link
Author

No, portaudio fails for that one :-)

@SimonTeixidor
Copy link
Member

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.

@dgloeckner
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants