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

Building from source on Windows #157

Closed
jvolker opened this issue Jul 7, 2020 · 4 comments
Closed

Building from source on Windows #157

jvolker opened this issue Jul 7, 2020 · 4 comments

Comments

@jvolker
Copy link
Contributor

jvolker commented Jul 7, 2020

Seems like the Developer guide is missing info for Windows.

When running cargo run --bin updater. I got this error:

error: linker `link.exe` not found
 |
 = note: Das System kann die angegebene Datei nicht finden. (os error 2)

note: the msvc targets depend on the msvc linker but `link.exe` was not found

note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option

Installing Visual Studio 2019 worked for me.

Then running the game cd game; RUST_BACKTRACE=1 cargo run --release I got:
Das System kann den angegebenen Pfad nicht finden. German for: System can't find path.

Doing this on Windows instead worked for me:

cd game && set RUST_BACKTRACE=1 && cargo run --release

@dabreegster
Copy link
Collaborator

The first problem: This seems like an issue with the Rust installation process in general, at https://www.rust-lang.org/tools/install. I actually don't see the Windows instructions here; I'll try spoofing my user agent and pretend to be a windows machine in a minute.

The second problem: Just made this easier with 6919c24. Before, you had to ensure that ../data/ existed when you ran the game. Now it'll detect the data dir either in the current directory or one level up. I think the first 3 steps in docs/dev.md have always been correct; it's just easy to miss running from the proper directory.

@jvolker
Copy link
Contributor Author

jvolker commented Jul 7, 2020

The first problem: As mentioned above this fixed it

Installing Visual Studio 2019 worked for me.

The second problem: Thanks for making this easier. And I double-checked and no matter what directory I'm doing this from I get the error. Also RUST_BACKTRACE=1 as before the cargo command throws Der Befehl "RUST_BACKTRACE" ist entweder falsch geschrieben order konnte nicht gefunden werden.

@dabreegster
Copy link
Collaborator

Ah, I understand now; Windows has a different syntax for setting env variables. Thanks! I'll fix the docs.

dabreegster added a commit that referenced this issue Jul 7, 2020
…ably OSM issues. encountered in #119. also adjust dev docs for windows for #157
@jvolker
Copy link
Contributor Author

jvolker commented Jul 8, 2020

Thanks for fixing this.

@jvolker jvolker closed this as completed Jul 8, 2020
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