ITADN

Cannot build. Failed to select a version of imgui-sys

#97ClosedMarcosDanielTorres 创建于 2023-04-17
bug
<!--Thank you for filing this! Please provide as much information as possible to help us diagnose and fix the issue--> ## Description Hey guys, first of all, thank you for your work. As this is the first time I'm using imgui maybe it's an experience-related problem. But when trying to use imgui-wgpu I'm having trouble building the project. But maybe the version of the crates I'm using are not right. This is how my cargo.toml looks like: (the cargo.toml of the examples uses version 0.11 for imgui and imgui-winit-support) ``` wgpu = "0.15" winit = "0.27.5" imgui-wgpu = "0.22.0" imgui = "0.11" imgui-winit-support = "0.11" ``` ## Problem ``` error: failed to select a version for `imgui-sys`. ... required by package `imgui v0.10.0` ... which satisfies dependency `imgui = "^0.10"` of package `imgui-wgpu v0.22.0` ... which satisfies dependency `imgui-wgpu = "^0.22.0"` of package `wgpu_playground v0.1.0 (C:\Users\_\projects\cg\own\wgpu_playground)` versions that meet the requirements `^0.10.0` are: 0.10.0 the package `imgui-sys` links to the native library `imgui`, but it conflicts with a previous package which links to `imgui` as well: package `imgui-sys v0.11.0` ... which satisfies dependency `imgui-sys = "^0.11.0"` of package `imgui v0.11.0` ... which satisfies dependency `imgui = "^0.11.0"` of package `imgui-winit-support v0.11.0` ... which satisfies dependency `imgui-winit-support = "^0.11"` of package `wgpu_playground v0.1.0 (C:\Users\_\projects\cg\own\wgpu_playground)` Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='imgui-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links. ``` ## Repro steps ``` cargo build ``` ## System Information rustc 1.68.2 (9eb3afe9e 2023-03-27) stable OS: Win 11 x64
关闭于 2025-06-07 7 条评论