-
Notifications
You must be signed in to change notification settings - Fork 37
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
Broken dependencies adding imgui to a minecraft project #96
Comments
Hi! We just went to a multi-project structure in order to allow for multiple rendering backends, and this problem looks related, but I'm not entirely sure what the issue is. My best guess would be that if you are using OpenGL, you should use this code for the ImGui dependency:
This will grab the OpenGL branch and everything that it requires, which may fix your problem. If it doesn't, let em know and we'll try some other stuff. On a side note, LWJLGL does not strictly follow SemVer, so code may break doe to the version difference. I've considered adding LWJGL version checks to use the proper code paths on load, but so far it hasn't seemed worth it. |
Yup, that did the trick. Thank you! |
@Sylvyrfysh , may it be worth adding that snippet in the README? |
Yeah, I'll put it in the readme
…On Thu, May 30, 2019, 22:35 Giuseppe Barbieri ***@***.***> wrote:
@Sylvyrfysh <https://github.com/Sylvyrfysh> , may it be worth adding that
snippet in the README?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#96?email_source=notifications&email_token=ADTJ6QC2CDTEHDXIWB6VFITPYCMHLA5CNFSM4HQWS72KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWUDLZQ#issuecomment-497563110>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADTJ6QFVZXT2JIBYOK7PVE3PYCMHLANCNFSM4HQWS72A>
.
|
I'm trying to create a fabric (minecraft mod environment) mod for minecraft (which uses LWJGL 3.2.1), using fabric's example mod build.gradle.
I'd like to add imgui as a library. However, adding it to the
dependencies
task like so:implementation "com.github.kotlin-graphics:imgui:fc9aad3de1"
Will result in a lot of broken dependencies (all LWJGL):
![image](https://user-images.githubusercontent.com/27009727/58593988-ba964580-826c-11e9-950b-6b8224c84238.png)
(These show up as "
FAILED
" in the output of thedependencies
task)I presume this is because of the version mismatch between imgui (3.2.2) and minecraft (3.2.1) but, assuming LWJGL uses SemVer, both should be compatible, and we already have LWJGL in our classpath, so I assumed it was safe to exclude LWJGL from imgui:
Which, indeed, made the library resolveable:
![image](https://user-images.githubusercontent.com/27009727/58594272-6475d200-826d-11e9-971b-bc57bf496612.png)
Though, actually using it will yield a NoClassDefFoundError:
Looking up where
gln.identifiers.GlProgram
might come from on google, I can only find this repository. What am I doing wrong? Sorry if this is a duplicate of #42.Thank you in advance.
The text was updated successfully, but these errors were encountered: