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

examples don't compile - Could not compile piston_window. #713

Closed
0ax1 opened this issue Apr 17, 2016 · 2 comments
Closed

examples don't compile - Could not compile piston_window. #713

0ax1 opened this issue Apr 17, 2016 · 2 comments

Comments

@0ax1
Copy link

0ax1 commented Apr 17, 2016

Hi,

I'm trying to compile the examples:
cargo run --release --example all_widgets

But none of them works due to:
/Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:78:9: 78:27 error: unresolved importpiston::window::. Could not findwindowinpiston[E0432] /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:78 pub use piston::window::_; ^~~~~~~~~~~~~~~~~~ /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:78:9: 78:27 help: runrustc --explain E0432to see a detailed explanation /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:80:9: 80:31 error: unresolved importpiston::event_loop::*. Could not find event_loopinpiston[E0432] /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:80 pub use piston::event_loop::_; ^~~~~~~~~~~~~~~~~~~~~~ /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:80:9: 80:31 help: runrustc --explain E0432to see a detailed explanation /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:79:9: 79:26 error: unresolved importpiston::input::. Could not findinputinpiston[E0432] /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:79 pub use piston::input::*; ^~~~~~~~~~~~~~~~~ /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:79:9: 79:26 help: runrustc --explain E0432to see a detailed explanation /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:198:13: 198:39 error: unresolved importpiston::event_loop::Events. Could not findevent_loopinpiston[E0432] /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:198 use piston::event_loop::Events; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:198:13: 198:39 help: runrustc --explain E0432to see a detailed explanation /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:199:45: 199:51 error: unresolved importpiston::window::Window. Could not findwindowinpiston[E0432] /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:199 use piston::window::{ OpenGLWindow, Window }; ^~~~~~ /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:199:45: 199:51 help: runrustc --explain E0432to see a detailed explanation /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:199:31: 199:43 error: unresolved importpiston::window::OpenGLWindow. Could not findwindowinpiston[E0432] /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:199 use piston::window::{ OpenGLWindow, Window }; ^~~~~~~~~~~~ /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:199:31: 199:43 help: runrustc --explain E0432to see a detailed explanation /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:278:13: 278:39 error: unresolved importpiston::input::RenderEvent. Could not findinputinpiston[E0432] /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:278 use piston::input::RenderEvent; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:278:13: 278:39 help: runrustc --explain E0432to see a detailed explanation /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:256:13: 256:39 error: unresolved importpiston::input::RenderEvent. Could not findinputinpiston[E0432] /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:256 use piston::input::RenderEvent; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:256:13: 256:39 help: runrustc --explain E0432to see a detailed explanation /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:297:13: 297:30 error: unresolved importpiston::input::_. Could not findinputinpiston[E0432] /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:297 use piston::input::_; ^~~~~~~~~~~~~~~~~ /Users/lx/.cargo/registry/src/gh.neting.cc-88ac128001ac3a9a/piston_window-0.42.0/src/lib.rs:297:13: 297:30 help: runrustc --explain E0432to see a detailed explanation error: aborting due to 9 previous errors Could not compilepiston_window`.

@mitchmindtree
Copy link
Contributor

Hey, thanks for the issue! The most recent update to conrod requires the latest stable version of rustc - updating rustc to 1.8.0 should hopefully fix any errors that you're running into.

More discussion on the related piston issue can be found here, and here is the related rustc issue.

Let me know if updating rustc fixes your issue! (you might also have to cargo clean and cargo update before attempting to build again after updating).

@0ax1
Copy link
Author

0ax1 commented Apr 17, 2016

Hey, that fixed the the issue. Thanks for your help!

On 17.04.16 16:46, Mitchell Nordine wrote:

Hey, thanks for the issue! The most recent update to conrod requires the latest
stable version of rustc - updating rustc to 1.8.0 should hopefully fix any
errors that you're running into.

More discussion on the related piston issue can be found here
PistonDevelopers/piston#1050, and here
rust-lang/rust#31362 is the related rustc issue.

Let me know if updating rustc fixes your issue! (you might also have to |cargo
clean| and |cargo update| before attempting to build again after updating).


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#713 (comment)

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