Hello, me again!
I'm still on that same project that involves GLFW, OpenGL and Windows.
The libraries I use for it so far are: zgl, zglfw and zlm, with emidoots' glfw to interface with C's GLFW.
This time, I want to add ImGui to the mix. So looking this up, I found zgui, which seems fairly easy to add into the mix.
So, I set the build.zig up (and the build.zig.zon):
// ...
const zgui = b.dependency("zgui", .{
.target = target,
.backend = .glfw_opengl3,
});
exe.root_module.addImport("zgui", zgui.module("root"));
exe.linkLibrary(zgui.artifact("imgui"));
I use the 2 to 3 lines of code that initialize the backend
But then I get a compile error, which seems to indicate that imgui cannot compile as it cannot find OpenGL, even though my program that uses it has been working great so far.
So, how can I solve this?