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

n00b running the app for the first time #1

Open
headwinds opened this issue Jan 31, 2020 · 3 comments
Open

n00b running the app for the first time #1

headwinds opened this issue Jan 31, 2020 · 3 comments

Comments

@headwinds
Copy link

I've never tried Rust before and your app looked like a good gateway...

It started compiling with all greens until it hit....

   Compiling gfx v0.17.1
error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
   --> /Users/braflow/.cargo/registry/src/github.com-1ecc6299db9ec823/nalgebra-0.14.4/src/core/cg.rs:292:44
    |
292 |                 self[(j, i)] += shift[j] * self[(D::dim() - 1, i)];
    |                 ---------------------------^^^^-------------------
    |                 |                          |
    |                 |                          immutable borrow occurs here
    |                 mutable borrow occurs here
    |                 mutable borrow later used here

   Compiling gfx_window_sdl v0.8.0
error: aborting due to previous error

For more information about this error, try `rustc --explain E0502`.
error: could not compile `nalgebra`.
@headwinds
Copy link
Author

I tried updating the cargo.toml to...

ggez = "0.5"
rand = "0.7.3"

...which got me 300/301 of the install but then all hell broke loose.

@jonakieling
Copy link
Owner

Hey,

sorry for the late reply. This project is currently on hiatus and I imagine there were a lot of changes in the used libraries in the past years. I will update the README accordingly. The official "The Rust Programming Language" was a great entry point and a quick look suggests it still is.

All the best for your further Rust adventures.

Jona

@headwinds
Copy link
Author

Thanks for the update - it's almost better that its broken and gives one a nice puzzle to reassemble one day. Also excellent recommendation to start with the official guide - I definitely need to something simple - this is too much rocket science right now.

Just curious - are you actually using Rust in your day job - and if so - can you briefly tell me what for?

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