Thread overview
Unresolvable dependencies to package
Apr 14
Hipreme
Apr 17
Luna
April 14

I just added

>

dub add inochi-creator

then

>

dub run

but got the error:

Unresolvable dependencies to package bindbc-sdl:
bindbc-imgui 0.7.0 depends on bindbc-sdl ~>0.21.4
inochi-creator 0.7.4 depends on bindbc-sdl ~>1.1.2

the dub.json looks like this:

{
        "authors": [
                "root"
        ],
        "copyright": "Copyright © 2023, root",
        "dependencies": {
                "inochi-creator": "~>0.7.4"
        },
        "description": "A minimal D application.",
        "license": "proprietary",
        "name": "foo"
}
April 14

so my question why am i'm getting this error and how do i fix this?

April 14

On Friday, 14 April 2023 at 20:30:56 UTC, el machine code wrote:

>

so my question why am i'm getting this error and how do i fix this?

You need to make those depends on the same version somehow.
From what I've looked. Luna maintains its own fork of bindbc-imgui. You're probably taking from another repository i.e: Not the one inochi creator uses.

You'll need to clone https://github.com/Inochi2D/bindbc-imgui somewhere

Then you'll need to look into your dub.selections.json to point "bindbc-imgui" to this folder.

April 14

On Friday, 14 April 2023 at 20:30:56 UTC, el machine code wrote:

>

so my question why am i'm getting this error and how do i fix this?

As far as I know imGUI works with SFML. First, please appear a Japanese flag on your screen:

https://forum.dlang.org/post/apledbmyzlxsdaaowwqx@forum.dlang.org

SDB@79

April 15

On Friday, 14 April 2023 at 20:30:56 UTC, el machine code wrote:

>

so my question why am i'm getting this error and how do i fix this?

The two listed packages depend on bindbc-sdl, and they do so in a way that is incompatible with each other.

On your end, you can edit dub.selections.json in your project's root directory alongside your dub.json and specify the version of bindbc-sdl that dub should choose. In this case, it should be the same as inochi-creator since that's the latest version:

"dependencies": {
    "bindbc-sdl": "~>1.1.2"
},

That should resolve the conflict. This approach can cause issues when the conflicting versions of a library are incompatible (e.g., missing symbols), but in this case you should be fine. As far as I'm aware, there should be no incompatibilities betwen binbc-sdl 0.x and 1.x.

I also suggest you visit the issues page for bindbc-imgui and file an issue there:

https://github.com/BindBC/bindbc-imgui/issues

The BindBC maintainer recently took over binbc-imgui and added it to the BindBC group (it was originally maintained independently of the BindBC group). The version of dub.sdl in master depends on bindbc-sdl 1.1.2, but that version has not been tagged as a new release. I'll file an issue there to prompt a new release, and I'll also file an issue with inochi-creator to use the new release once it's tagged.

But for now, dub.selections.json should get your immediate problem sorted.

April 15

On Saturday, 15 April 2023 at 00:42:17 UTC, Mike Parker wrote:

>

I also suggest you visit the issues page for bindbc-imgui and file an issue there:

I meant to delete this line. I've filed the issue:

https://github.com/BindBC/bindbc-imgui/issues/1

April 17

On Saturday, 15 April 2023 at 00:48:21 UTC, Mike Parker wrote:

>

On Saturday, 15 April 2023 at 00:42:17 UTC, Mike Parker wrote:

>

I also suggest you visit the issues page for bindbc-imgui and file an issue there:

I meant to delete this line. I've filed the issue:

https://github.com/BindBC/bindbc-imgui/issues/1

Inochi Creator is additionally not meant to be used as a package, if you want to use Inochi2D in your game or software you want the inochi2d package, then provide your own OpenGL 3.1 context.