Skip to content

ImGui_ImplVulkan_CreateFontsTexture is not exposed #304

@zxubian

Description

@zxubian

Environment

Background

I'm trying to use cimgui to provide imgui functions to zig.
This is done via a zgui library, which takes imgui, wraps it in cimgui, then additionally wraps in a Zig API.
I'm using this branch in my development:
zig-gamedev/zgui#65

Issue

The issue is that _ImGui_ImplVulkan_CreateFontsTexture symbol is not present in the resulting static library:
nm libimgui.a | grep CreateFonts produces no results.

The concrete error message is Zig-specific.

renderer-run
└─ install renderer
   └─ compile exe renderer Debug native 1 errors
error: undefined symbol: _ImGui_ImplVulkan_CreateFontsTexture
    note: referenced by .zig-cache/o/557ef5312ae32818702f30e4e0cdab79/renderer_zcu.o:_backend_vulkan.init
error: the following command failed with 1 compilation errors:

Repro code:

pub fn init(init_info: ImGui_ImplVulkan_InitInfo) void {
    var vk_init: ImGui_ImplVulkan_InitInfo = init_info;
    if (!ImGui_ImplVulkan_Init(&vk_init)) {
        @panic("failed to init Vulkan for ImGui");
    }
    ImGui_ImplVulkan_CreateFontsTexture();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions