imgui_bundle
imgui_bundle copied to clipboard
Nuitka buiild is broken because imgui_bundle hardcodes GLFW DLL search to its own directory
Hi, nice to meet you all. I'm working on bundling an application that uses imgui_bundle. Everything works great, except that for some reason _glfw_set_search_path() is set to only look for GLFW in file's directory, and will throw an exception if it's not there. Why is this done? GLFW is already a transitive dependency, and installs the DLL to its own folder in site-packages. It seems strange that imgui_bundle has its own GLFW DLL in its site-packages, and moreover depends on that exact file existing at runtime. If I copy the DLL from the GLFW install to be next to imgui_bundle, everything works.
I assume there was a good reason for doing this, but it seems a little fishy to both depend on and vendor GLFW binaries. Any ideas?
Hi,
The reason for this is that the C++ side of the library depends on glfw's dll (which is in the bundle folder), and there is no easy way to tell it to use the dll provided by PyGlfw (except when using conda instead of pip).
If you add PyGlfw to the mix, then there is the possibility of an inconsistency