Haven't been able to get a project with shared = true working.
If my program links to zgui's shared library (which it has to in order to get symbols working), as soon as it opens it shows an error while loading shared libraries: libimgui.so: cannot open shared object file: No such file or directory before even hitting main.
At first I thought this was because the .so artifact wasn't generated, but installing it and overriding the install path to put it in the same folder as the executable surprisingly doesn't change anything. It still gives the same error.
README says "Then, in build.zig, use zgui_pkg.link to link zgui to all the modules that use ImGui.", but that, frankly makes no sense. What is zgui_pkg? The imported "zgui" module? The compiled artifact or dependency? None of those have a link function or member.
Docs should probably be worded a little clearer.
Haven't been able to get a project with
shared = trueworking.If my program links to zgui's shared library (which it has to in order to get symbols working), as soon as it opens it shows an
error while loading shared libraries: libimgui.so: cannot open shared object file: No such file or directorybefore even hitting main.At first I thought this was because the
.soartifact wasn't generated, but installing it and overriding the install path to put it in the same folder as the executable surprisingly doesn't change anything. It still gives the same error.README says "Then, in
build.zig, usezgui_pkg.linkto link zgui to all the modules that use ImGui.", but that, frankly makes no sense. What iszgui_pkg? The imported"zgui"module? The compiled artifact or dependency? None of those have alinkfunction or member.Docs should probably be worded a little clearer.