-
Notifications
You must be signed in to change notification settings - Fork 3
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
ImNodes example not running #16
Comments
Thank you for this report. |
Updated sources. |
It works! Thanks! Is it also possible to make a project without Make (Nim tools only)? I tried to make a baremetal ImGUI test with ImNodes, I have linker errors. |
I will add this to README file, pwd
examples/glfw_opnegl3_imnodes
nim c -d:release -d:strip -d:ImNodesEnable glfw_opengl3_imnodes.nim |
That was quite straightforward! Thanks!
Seems it messes up with the "/". |
Hi, https://nim-lang.org/docs/nimc.html#crossminuscompilation-for-windows I'll try this later. |
It still doesn't work sadly. |
Some progress! However I also have another error : /home/system64/.nimble/pkgs2/imguin-1.91.4.0-d2351593496ca43b2f019cdaba21a66f5b7e0bed/imguin/private/cimgui/imgui/backends/imgui_impl_glfw.cpp:102:10: fatal error: GLFW/glfw3.h |
I can successfully generated Windows exe file using your idea and it works well on Windows OS.
This error can be silent by changing from {.passC:"-I" & joinPath(staticExec("nimble path nimgl").strip,"nimgl","private","glfw","include").} to {.passC:"-I" & joinPath(staticExec("nimble path nimgl").strip,"nimgl","private","glfw","include").replace("\\", "/").} I've executed this command, nim c -d:release -d:strip -d:mingw --passL:-lstdc++ glfw_opengl3.nim |
It works! It also works with --os;windows! |
Thank you for your interesting idea. |
You are welcome! Do you want me to try to do a pull request with the changes I suggested? |
I would appreciate your PR. |
Alright! I will do this once I'm back home. I also try to add ImGui-knobs, an addon for Dear ImGui that adds... Knobs. |
I think you should make for instance `-- cimknobs
|-- cimknobs.h
|-- examples
| `-- main.c
| `-- Makefile or CMakeLists.txt
`-- imgui-knobs
`__ ...
`__ ... I will fetch your when defined(ImKnobsEnable):
{.passC:"-I" & CImKnobRootPath.}
...snip... Nim header file of Build command may be pwd
imguin/examples/imknobs_opengl3
nim c -d:ImKnobsEnable imknobs_opengl3.nim |
I added cimgui knobs into my Imguin fork like what you did for the others ImGUI extensions. Is that OK? |
Thank you PR. |
Done. |
Thanks! I will have a look! Do you also know how I can statically link the glibc / glibc++ or how I can use musl please? I'm concerned about compatibility with older Linux distros. |
I'm not familiar with static link on Linux,
|
Hi. I tried the example projects and it looks like I can't run the ImNodes example.
Here is what it says :
It looks like it happens while calling NodeEditorInitialize().
I'm on POP!_OS 2204 LTS and I use Nim 2.2.0.
Is this normal?
Thanks for your answer!
The text was updated successfully, but these errors were encountered: