Skip to content

Shared library usage is unclear #90

@suleyth

Description

@suleyth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions