-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Bug: Unable to add multiple native libs #118
Comments
Just simply adding native library for other OS causes this error |
How do you add native libraries? |
Just adding them on build.gradle |
And how do you add them to gradle specifically? Can you provide a code snippet? I'm asking, because from your description it seems that the problem is somewhere in that area. |
https://www.toptal.com/developers/hastebin/osawapaniv.kotlin This is I add native libraries at around line 207 I'm using Also I'm doing very hacky stuff to prevent Sorry, it may be a mess as it requires many additional dependencies and configurations |
Can you try to add natives with |
@SpaiR I have tried manually loading .dll/.so files and It worked |
Then it seems that the problem connected with the way you add libraries to gradle.
Try specifically for natives to use |
I have tried using |
I see. Then it seems that the problem with the classpath. Not sure I can give you any advice on this topic... This is how binding extracts native libs https://github.com/SpaiR/imgui-java/blob/main/imgui-binding/src/main/java/imgui/ImGui.java#L111-L128 . You can experiment with this code. I believe the problem is connected with minecraft environment. |
It seems like linux native libs are not loaded into class path when window native lib is already present |
Hmm, I think |
I've just had a conversation with them and they seem to think that 2 modules having same |
Yeah, that will be great. |
Version
1.86.3
What happened?
Process crashed, because it wasn't able to find libraries
It should not crash and display ImGui normally
Reproduction
Add libraries for both linux and macos, and it becomes unable to load library
..I should note that I'm using it on Minecraft 1.18.1, which uses OpenGL 3.2.2
Relevant log output
The log is clustered with non-imgui stuffs and locale is set to korean
the crash happens when it runs line
ImGui.createContext()
, which isImGuiDebugScreen.kt:22
I'm using kotlin
Log: https://pastebin.com/LrG8CWWA
The actual exception starts with
java.lang.UnsatisfiedLinkError
, around line 716The text was updated successfully, but these errors were encountered: