Closed tomimaki closed 2 years ago
I've committed my Cargo.lock file to ensure we have identical build processes. Pull again, and give it another go.
If that doesn't work try updating Rust ('rustup update' in the terminal), similar code had the same error for me until I updated from 1.56 to 1.59.
Seems Rust 1.57 is on Debian.
Use rustup.rs instead of something like apt, its sometimes a bit out of date.
I have to uninstall rust from system first.
Installed 1.59 and I got 3 different errors:
Compiling dae-parser v0.8.4
Compiling pof v0.1.0 (/home/tomi/pof-tools/pof)
Compiling pof-tools v0.9.0 (/home/tomi/pof-tools)
error[E0432]: unresolved import `glium::glutin::platform::windows`
--> src/main.rs:7:50
|
7 | glutin::{self, event::WindowEvent, platform::windows::WindowBuilderExtWindows, window::Icon},
| ^^^^^^^ could not find `windows` in `platform`
error[E0599]: no method named `with_taskbar_icon` found for struct `WindowBuilder` in the current scope
--> src/main.rs:29:10
|
29 | .with_taskbar_icon(Some(Icon::from_rgba(include_bytes!("icon.raw").to_vec(), 32, 32).unwrap()));
| ^^^^^^^^^^^^^^^^^ method not found in `WindowBuilder`
error[E0283]: type annotations needed
--> src/main.rs:27:10
|
27 | .with_inner_size(glutin::dpi::LogicalSize { width: 800.0, height: 600.0 })
| ^^^^^^^^^^^^^^^ cannot infer type for type `{float}`
|
= note: multiple `impl`s satisfying `{float}: Pixel` found in the `winit` crate:
- impl Pixel for f32;
- impl Pixel for f64;
= note: required because of the requirements on the impl of `From<LogicalSize<{float}>>` for `Size`
= note: required because of the requirements on the impl of `Into<Size>` for `LogicalSize<{float}>`
note: required by a bound in `WindowBuilder::with_inner_size`
--> /home/tomi/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/window.rs:229:31
|
229 | pub fn with_inner_size<S: Into<Size>>(mut self, size: S) -> Self {
| ^^^^^^^^^^ required by this bound in `WindowBuilder::with_inner_size`
Some errors have detailed explanations: E0283, E0432, E0599.
For more information about an error, try `rustc --explain E0283`.
You've reminded me I should set up CI, so I've run into those too. If you pull again they should be fixed.
It works. Thanks.
I dont how much of info is needed, so copied all. Distribution: Debian unstable.