You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It took me a while to figure out, but imgui-winit-support isn't using the latest winit version.
On Linux, you must build winit with the x11 or wayland feature (depending on which protocol you use). To specify flags you need to match versions (otherwise it builds/uses two separate winit versions). This threw me for a loop for a long time.
I don't see how these features are selected, but if you don't specify them, imgui-rs won't build.
winit = { version = "0.27.5", features = [
"x11",
"wayland",
] }
Description
When a new project is started, and the
imgui-winit-support
crate is added, the project fails to build.To Reproduce
cargo new example; cd example
cargo add imgui-winit-support
cargo build
.Expected behavior
I expect the project to build without errors.
Output
There are additional errors after this, but I don't believe they're relevant. I've attached it here:
compilation_output.txt
Please describe your environment
Other information
The
imgui-winit-support
crate specifies that the default features should not be used. On Linux, this includes both X11 and Wayland support. I believe this is whyimgui-rs
won't build on Linux.The text was updated successfully, but these errors were encountered: