Skip to content
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

Compile error on OSX #46

Closed
mpiannucci opened this issue May 9, 2016 · 3 comments
Closed

Compile error on OSX #46

mpiannucci opened this issue May 9, 2016 · 3 comments

Comments

@mpiannucci
Copy link

When used as a dependency with cargo, the following error occurs:

    Updating git repository `https://github.com/cyndis/qmlrs.git`
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling pkg-config v0.3.8
   Compiling libc v0.2.11
   Compiling qmlrs v0.1.1 (https://github.com/cyndis/qmlrs.git#ff28b56a)
/Users/matthew/.cargo/git/checkouts/qmlrs-521912f04de8f24e/master/build.rs:54:25: 54:33 error: no method named `exists` found for type `std::path::PathBuf` in the current scope
/Users/matthew/.cargo/git/checkouts/qmlrs-521912f04de8f24e/master/build.rs:54         if qt5_lib_path.exists() {
                                                                                                      ^~~~~~~~
/Users/matthew/.cargo/git/checkouts/qmlrs-521912f04de8f24e/master/build.rs:54:25: 54:33 help: items from traits can only be used if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it:
/Users/matthew/.cargo/git/checkouts/qmlrs-521912f04de8f24e/master/build.rs:54:25: 54:33 help: candidate #1: use `std::fs::PathExt`
error: aborting due to previous error
Could not compile `qmlrs`.

I have installed both rust and qt5 using homebrew. I also tried using both the git dependency and the 0.1.1 version from crates.io. Any help would be appreciated!

Thanks!

@florianjacob
Copy link
Collaborator

Strange. What version of rust are you using? ( rustc --version )

@mpiannucci
Copy link
Author

mpiannucci commented May 10, 2016

It seems that homebrew left an old version linked instead of the new version. A clean install and link fixed it. Sorry for the inconvenience!

@florianjacob
Copy link
Collaborator

You're welcome. 😄

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

No branches or pull requests

2 participants