-
Notifications
You must be signed in to change notification settings - Fork 16
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
Doesn't seem to be working with Pi2 B+ #24
Comments
That's probably the reason. |
I don't own a Pi2 B+, so I can't test it myself. A pull request from someone who does is most appreciated. 🙂 |
Hmm, I just built master, and it seems to be working with that. Can you publish a new version to cargo.io based on that? |
I'm super-new to rust - just started to read The Book 2 days ago - so keep that in mind. What I did was adding this to my project's toml file:
And did a git clone of this repository to that directory. |
Yep, definetly something wrong with version 0.2.3:
doing a |
Ok, I'm a bit confused. What works and what doesn't? A: [dependencies.wiringpi]
version = "0.2.3" B: [dependencies.wiringpi]
path = "../rust-wiringpi" C: [dependencies.wiringpi]
path = "../rust-wiringpi"
version = "0.2.3" Run |
With a fresh clone using A: error Note: I don't think it should make a difference, since it's almost certainly an old version of wiringpi.so getting statically linked to the binary, but I'm on a MacOS Sierra host, using
|
B and C should be the same. I think I just found the problem. The submodule on my end wasn't up to date. If you run
I had forgotten to update mine at some point. |
I just published a new version. See if that one works. 🙂 |
Yup, works. Thanks for the help! Btw, I've seen you have a development flag for enabling a mock implementation, which is pretty awesome. Is there a way to enable that based on the target? I mean disable it for arm builds, enable it for x86_64 builds. |
You may be able to make platform specific dependency entries: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies Something like: [target.'cfg(target_arch = "arm")'.dependencies]
wiringpi = "0.2"
[target.'cfg(not(target_arch = "arm"))'.dependencies]
wiringpi = { version = "0.2", features = ["development"]} Not sure if |
Heh... yeah, i tried that, but it's not working. A bug in cargo as far as i understand: rust-lang/cargo#2524 :( |
Aw, well, that's all I got. Anyway, I'm closing this as fixed. |
Outdated wiringpi library?
The text was updated successfully, but these errors were encountered: