Version/Branch of Dear ImGui:
Version 1.92.8, Branch: master
Back-ends:
imgui_impl_sdl3.cpp + imgui_impl_wgpu.cpp
Compiler, OS:
Windows 11, clang version 22.1.1, Windows 11 SDK (10.0.26100.775)
Full config/build information:
Details:
Following the instructions # Building for desktop with WGVK (MUCH EASIER) -
- git clone https://github.com/manuel5975p/WGVK dawn
- cmake -B build -DIMGUI_WGVK_DIR=wgvk
- cmake --build build
Is there a typo in point 1? I tried git cloning WGVK to both dawn and wgvk but failed to generate the build files in both cases with step 2, error below -
CMake Error at C:/Program Files/CMake/share/cmake-4.3/Modules/FindPackageHandleStandardArgs.cmake:290 (message):
Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found
version "")
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-4.3/Modules/FindPackageHandleStandardArgs.cmake:654 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-4.3/Modules/FindVulkan.cmake:711 (find_package_handle_standard_args)
CMakeLists.txt:150 (find_package)
To overcome this error, I first built the wgvk repo, then executed -
cmake -B build -DIMGUI_WGVK_DIR=wgvk -DVulkan_LIBRARY=wgvk/build/Release -DVulkan_LIBRARY=wgvk/include -G "Ninja Multi-Config"
this ran without error but I when I tried to build with cmake --build build, it failed with -
[10/10] Linking CXX executable Debug\example_sdl3_wgpu.exe
FAILED: [code=1] Debug/example_sdl3_wgpu.exe
C:\WINDOWS\system32\cmd.exe /C "cd . && C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -nostartfiles -nostdlib -O0 -g -Xclang -gcodeview -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -Xlinker /subsystem:console -fuse-ld=lld-link CMakeFiles/example_sdl3_wgpu.dir/Debug/main.cpp.obj CMakeFiles/example_sdl3_wgpu.dir/Debug/C_/Users/shane/dev/imgui/backends/imgui_impl_sdl3.cpp.obj CMakeFiles/example_sdl3_wgpu.dir/Debug/C_/Users/shane/dev/imgui/backends/imgui_impl_wgpu.cpp.obj CMakeFiles/example_sdl3_wgpu.dir/Debug/C_/Users/shane/dev/imgui/imgui.cpp.obj CMakeFiles/example_sdl3_wgpu.dir/Debug/C_/Users/shane/dev/imgui/imgui_draw.cpp.obj CMakeFiles/example_sdl3_wgpu.dir/Debug/C_/Users/shane/dev/imgui/imgui_demo.cpp.obj CMakeFiles/example_sdl3_wgpu.dir/Debug/C_/Users/shane/dev/imgui/imgui_tables.cpp.obj CMakeFiles/example_sdl3_wgpu.dir/Debug/C_/Users/shane/dev/imgui/imgui_widgets.cpp.obj CMakeFiles/example_sdl3_wgpu.dir/Debug/wgvk/src/wgvk.c.obj -o Debug\example_sdl3_wgpu.exe -Xlinker /MANIFEST:EMBED -Xlinker /implib:Debug\example_sdl3_wgpu.lib -Xlinker /pdb:Debug\example_sdl3_wgpu.pdb -Xlinker /version:0.0 -lglfw.lib C:/Users/shane/dev/SDL3/imgui_sdl3_wgpu/wgvk/build/Release C:/Users/shane/dev/SDL3/SDL3-3.4.4/lib/x64/SDL3.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 -loldnames && cd ."
lld-link: error: could not open 'glfw.lib': no such file or directory
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Do I really need glfw.lib? Where did I go wrong?
Extra info: I was able to successfully build example_sdl3_wgpu with Dawn and Emscripten following the instructions with only a few tweaks to the CMakeLists.txt
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
// Here's some code anyone can copy and paste to reproduce your issue
ImGui::Begin("Example Bug");
MoreCodeToExplainMyIssue();
ImGui::End();
Version/Branch of Dear ImGui:
Version 1.92.8, Branch: master
Back-ends:
imgui_impl_sdl3.cpp + imgui_impl_wgpu.cpp
Compiler, OS:
Windows 11, clang version 22.1.1, Windows 11 SDK (10.0.26100.775)
Full config/build information:
Details:
Following the instructions # Building for desktop with WGVK (MUCH EASIER) -
Is there a typo in point 1? I tried git cloning WGVK to both
dawnandwgvkbut failed to generate the build files in both cases with step 2, error below -To overcome this error, I first built the
wgvkrepo, then executed -this ran without error but I when I tried to build with
cmake --build build, it failed with -Do I really need
glfw.lib? Where did I go wrong?Extra info: I was able to successfully build example_sdl3_wgpu with Dawn and Emscripten following the instructions with only a few tweaks to the
CMakeLists.txtScreenshots/Video:
No response
Minimal, Complete and Verifiable Example code: