-
Notifications
You must be signed in to change notification settings - Fork 0
Missing cimgui.dll mapping on Linux #9
Comments
At the moment, ImGuiCS only ships with the Windows version of cimgui. You'll need to compile and ship |
Ok so I git clone --recursive from here: https://github.com/Extrawurst/cimgui
However I'm still getting the dll not found exception on cimgui so I'm obviously still missing something with that. |
I assumed that the Linux library prefixes In the meantime, can you please try the following ImGuiCS.dll.config? <?xml version="1.0" encoding="utf-8"?>
<configuration>
<dllmap dll="cimgui" os="windows" target="cimgui.dll"/>
<dllmap dll="cimgui" os="linux" target="cimgui.so"/>
</configuration> |
This is the stack trace:
This is the application output:
|
Can you please retry the test with |
Same result. |
I'll get my Linux environment up and running and debug it next week. Sorry for the delay :/ |
Thanks, it looks like the SDL2-CS.dll.config references them as .dll as the first try so that is likely correct. Yesterday while throwing random things at it to see what would stick I managed to get some different results by:
so there seems to be something looking for libcimgui.so though I don't see what. I also had a look around and found this project https://github.com/Catchouli/tyke which also uses cimgui and followed the instructions there to get libcimgui.so and tried that one, MonoDevelop didn't break at an exception, but ImGuiCS example just closed and this was the application output:
Tthese may be nothing but eh, I was trying different things just to see what would happen. |
That seems like a cimgui version mismatch to me. You might have more luck with cimgui 1.50 built for ImGui.NET: https://github.com/mellinoe/ImGui.NET/blob/f75a26740ef32fe236ccad331bbca950347dd6a7/deps/cimgui/ubuntu.14.04-x64/cimgui.so |
Renaming that one to libcimgui.so works. |
ok so I'm impressed with the example app. and with the lib itself from my 5min mess around in the example, simple stuff like double click text select and left and right arrows moving the cursor to the start/end when text is selected is something that many gui libraries that I've looked at don't bother to do. nice work. |
ImGuiCS uses P/Invoke / The |
Thanks, but ImGuiCS just reuses the standard "dear imgui" example :) By the way, I'm planning on updating ImGuiCS to "dear ImGui" / cimgui 1.60 soon-ish. |
Ah of course. I'd say I wish I'd found this years ago, but it wasn't around then, there's more and more crossplatform ui libraries that'll work with C#/have wrappers coming out all the time now :) |
"Use the native libraries from libs/x86 (32 bit) or libs/x64 (64 bit) instead. You could also ship both directories and create a .dll.config file for ImGuiCS.dll / SDL2-CS.dll that takes this into account."
Can you clarify this? I'm getting System.Dll not found exception on cimgui.dll in Monodevelop on linux Mint when I try debugrun the ImGuiSDL2CS-Example.
However I can see the above x64 libs in the project getting copied to the output directory. not sure what the problem is.
Do I need to find that and compile it on linux?
The text was updated successfully, but these errors were encountered: