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

Description: cant compile cargo run --release -p egui_demo_app under fedora 41 #4063

Closed
commitcompanion opened this issue Dec 27, 2024 · 2 comments

Comments

@commitcompanion
Copy link

commitcompanion commented Dec 27, 2024

Description:

I encountered an error while compiling a Rust project using winit version 0.30.7. The error message indicates that the platform is not supported by winit. Here is the error log:

error: The platform you're compiling for is not supported by winit
  --> /home/developer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.30.7/src/platform_impl/mod.rs:78:1
   |
78 | compile_error!("The platform you're compiling for is not supported by winit...
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import `self::platform`
  --> /home/developer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.30.7/src/platform_impl/mod.rs:34:15
   |
34 | pub use self::platform::*;
   |               ^^^^^^^^ could not find `platform` in `self`

error[E0432]: unresolved imports `crate::platform_impl::PlatformCustomCursor`, `crate::platform_impl::PlatformCustomCursorSource`
 --> /home/developer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.30.7/src/cursor.rs:8:28
  |
8 | ...::{PlatformCustomCursor, PlatformCustomCursorSourc...
  |       ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `PlatformCustomCursorSource` in `platform_impl`
  |       |
  |       no `PlatformCustomCursor` in `platform_impl`

error[E0432]: unresolved import `crate::platform_impl::PlatformIcon`
 --> /home/developer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.30.7/src/icon.rs:1:5
  |
1 | use crate::platform_impl::PlatformIc...
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `PlatformIcon` in `platform_impl`

error[E0432]: unresolved import `crate::platform_impl::PlatformSpecificWindowAttributes`
 --> /home/developer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.30.7/src/window.rs:7:34
  |
7 | ...f, PlatformSpecificWindowAttribute...
  |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `PlatformSpecificWindowAttributes` in `platform_impl`

error[E0369]: binary operation `==` cannot be applied to type `&std::option::Option<MonitorHandle>`
    --> /home/developer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.30.7/src/window.rs:1751:16
     |
1746 | ...ne, Debug, PartialEq, Eq)]
     |               --------- in this derive macro expansion
...
1751 | ...ss(Option<MonitorHandle>),
     |       ^^^^^^^^^^^^^^^^^^^^^
     |
     = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)

Steps to Reproduce:

Clone the repository and navigate to the project directory.
Run the command: cargo run --release -p egui_demo_app.
Observe the compilation error as described above.

Expected Behavior:

The project should compile successfully without any platform-related errors.
Additional Information:

Rust Version: 1.80.0
winit Version: 0.30.7
Operating System: Linux

Originally posted by @commitcompanion in #3174 (comment)

@kchibisov
Copy link
Member

specify feature you want to build(x11/wayland) and don't spam issue tracker with the same thing in like 3 places, thanks.

@madsmtm
Copy link
Member

madsmtm commented Dec 31, 2024

Might also be useful to provide the output from running the command rustc -vV, in case the above doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants