Syndelis / ode-designer-rs

Software para a criação, edição e simulação de EDOs. Disponível em Inglês e Português
Other
5 stars 1 forks source link

Compilation failure #31

Open khinsen opened 2 months ago

khinsen commented 2 months ago

Since the AppImage doesn't work on my system (see https://github.com/Syndelis/ode-designer-rs/issues/30), I tried to compile from source, using cargo run after getting the up-to-date submodules. This ends with a series of error message concerning imgui that I can't make sense of:

warning: unused manifest key: package.imgui
    Updating crates.io index
    Updating git repository `https://github.com/briankung/assert-json-diff/`
error: failed to select a version for `imgui-sys`.
    ... required by package `imgui v0.11.0`
    ... which satisfies dependency `imgui = "^0.11.0"` of package `imnodes v0.3.1 (/home/hinsen/Temp/ode-designer-rs/crates/imnodes)`
    ... which satisfies path dependency `imnodes` of package `ode-designer-rs v0.1.0 (/home/hinsen/Temp/ode-designer-rs)`
versions that meet the requirements `^0.11.0` are: 0.11.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 (https://github.com/syndelis/imgui-rs?branch=fix/alpha-blending#05f54c9a)`
    ... which satisfies git dependency `imgui-sys` (locked to 0.11.0) of package `imgui v0.11.0 (https://github.com/syndelis/imgui-rs?branch=fix/alpha-blending#05f54c9a)`
    ... which satisfies git dependency `imgui` (locked to 0.11.0) of package `imgui-glium-renderer v0.11.0 (https://github.com/syndelis/imgui-rs?branch=fix/alpha-blending#05f54c9a)`
    ... which satisfies git dependency `imgui-glium-renderer` (locked to 0.11.0) of package `ode-designer-rs v0.1.0 (/home/hinsen/Temp/ode-designer-rs)`
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.

failed to select a version for `imgui-sys` which could resolve this conflict
Syndelis commented 1 day ago

Hi there!

The error message is really cryptic indeed (dependency hell it's a nightmare), but hopefully this should be fixed since the specific imgui-rs branch we were compiling against (Syndelis/imgui-rs#fix/alpha-blending) has been merged into the official imgui-rs/imgui-rs project. I'm assuming this was the error in the first place, but I'll try investigating further.

Just like in #30, I'd like to point out that this repository has moved, so feel free to re-open the issue in the University's fork (GitHub doesn't allow moving issues between repositories from different accounts),