-
Notifications
You must be signed in to change notification settings - Fork 360
Closed
Description
Environment
- cimgui version
- compiler
- zig 0.15.1
- Imgui backends:
- glfw 3.4 via zlgfw
- vulkan SDK 1.3.283.0
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();
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels