KernelFreeze / Litecraft

Open source, clean room implementation of Minecraft Client
MIT License
138 stars 6 forks source link

Can't compile #16

Closed Heath123 closed 5 years ago

Heath123 commented 5 years ago

Issue tracker is ONLY used for reporting bugs. NO NEW FEATURE ACCEPTED! Use our Discord server for supporting issues.

There are errors when I try to compile this.

Expected Behavior 🤔

It should compile succesfully

Current Behavior 😔

This happens: ` Compiling winit v0.16.2 Compiling conrod v0.61.1 (https://github.com/Litecrafty/conrod#c8e3a4ed) Compiling litecraft v0.1.0 (file:///C:/Users/User/Downloads/Litecraft-master/Litecraft-master) error[E0658]: access to extern crates through prelude is experimental (see issue #44660) --> src\core\resource_manager\resource.rs:32:18 | 32 | type Result = std::result::Result<T, Box>; | ^^^

error[E0658]: access to extern crates through prelude is experimental (see issue #44660) --> src\core\resource_manager\shader_manager.rs:25:18 | 25 | type Result = std::result::Result<T, Box>; | ^^^

error[E0554]: #![feature] may not be used on the stable release channel --> src\main.rs:16:1 | 16 | #![feature(box_syntax)] | ^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 3 previous errors

Some errors occurred: E0554, E0658. For more information about an error, try rustc --explain E0554. error: Could not compile litecraft.

To learn more, run the command again with --verbose.`

KernelFreeze commented 5 years ago

Hello! If you installed Rust with rustup, you need to switch to nightly, you only have to execute this in your terminal or in the case of Windows, in PowerShell:

rustup install nightly
rustup default nightly
Heath123 commented 5 years ago

Thank you. I'll try that later.

Heath123 commented 5 years ago

Could you put that in the instructions or provide binaries please? I think it may help others.

Heath123 commented 5 years ago

Wait, it says nightly but I think you should include those commands.

KernelFreeze commented 5 years ago

Yeah, I will add it to our README

Heath123 commented 5 years ago

Just saw this:

😠 It doesn't compile! Double check that you have the latest nightly Rust! We use experimental features, which allow us create awesome features!

Sorry that I missed it

KernelFreeze commented 5 years ago

No problem, I will add more instructions soon

Heath123 commented 5 years ago

Not sure if I should make a new issue but I'm getting this:

Compiling image v0.20.0 Compiling winit v0.16.2 Compiling conrod v0.61.1 (https://github.com/Litecrafty/conrod#c8e3a4ed) Compiling litecraft v0.1.0 (C:\Users\User\Downloads\Litecraft-master\Litecraft-master) Finished dev [unoptimized + debuginfo] target(s) in 4m 41s Running ``C:\Users\User\Downloads\Litecraft-master\Litecraft-master\target\debug\litecraft.exe`` error: process didn't exit successfully: ``C:\Users\User\Downloads\Litecraft-master\Litecraft-master\target\debug\litecraft.exe`` (exit code: 101)