Replies: 1 comment 2 replies
-
The issue here is that ImGui is C++ while you are using the C backend. NimGL is making use of C bindings (cimgui) which needs a DLL in order to access the C++ code from a C interface. You can follow those instructions to build the DLL from the NimGL's fork of cimgui. If you are in Mac the default generator will be a XCode project, you can change the generator with the If you want to skip creating a DLL to load the definitions, you can use the C++ backend which automatically compile cimgui and imgui and include both statically in your executable. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm new to Nim and NimGL. I created a new project using
nimble init
, addedrequires "nimgl >= 1.0.0"
to the project's .nimble file, and copied thetimgui.nim
to replace the hello world .nim file created by nimble.I can see that it retrieves and builds the library, and nim builds my project fine too. But I get following error when trying to run the created executable (hello world worked just fine):
Is there anything obviously stupid I'm doing?
I have
~/.nimble/bin
added $PATH.Beta Was this translation helpful? Give feedback.
All reactions