View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000019 | Kohi Engine | Bugs | public | 2026-10-27 21:54 | 2026-11-11 14:16 |
| Reporter | aski97 | Assigned To | travisvroman | ||
| Priority | high | Severity | major | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Platform | Desktop (Windows) | OS | Windows | OS Version | 10+ |
| Product Version | v0.14.0 | ||||
| Target Version | v0.14.0 | Fixed in Version | v0.14.0 | ||
| Summary | 0000019: Windows: clean checkout needs several manual fixes to build and run (Makefile, OpenAL SDK, Assimp, shell) | ||||
| Description | This is a follow-up to my previous report (0000018). Thanks for fixing it, the Windows dependencies now install correctly. To verify the whole setup, I repeated it from scratch in a new folder, following the README. The build still cannot complete on Windows without a few manual interventions. With the workarounds described below, everything builds and testbed.kapp.exe runs fine (two screenshots attached). Environment: Windows 11 Pro 64-bit, GNU Make from w64devkit 1.20.0 (so sh.exe is in PATH), clang, Vulkan SDK, Assimp (vc145 build), Intel Iris Xe, building with build-debug.bat. BLOCKING PROBLEMS (in the order I hit them) 1) make uses sh.exe instead of cmd.exe sh: syntax error: unexpected end of file (expecting "then") and, in the sub-makes, with "sh: dir: not found" in scaffold-win32. build-debug.bat passes SHELL=cmd.exe only to the top-level make, so the sub-makes (make -C kohi.core ...) still pick sh. What worked: "make SHELL=cmd.exe setup", and "set MAKEFLAGS=SHELL=cmd.exe" before running build-debug.bat. A permanent fix could be setting SHELL := cmd.exe in the Windows branch of Makefile and Makefile.prefix, or documenting the workaround in the README. 2) Makefile.prefix: "DIR_SLASH=\" is treated as a line continuation "..TOOLS_EXT" is not recognized as an internal or external command Setting DIR_SLASH=/ fixed it (DIR_SLASH=$(subst /,\,/) also worked). 3) Makefile.prefix: the version header is generated after compilation src/core/engine.c:20:10: fatal error: 'kohi.runtime_version.h' file not found The same happens with kohi.plugin.renderer.vulkan_version.h. Changing the line to "flags-prereq: genversion compile link" fixed it. 4) OpenAL: only the runtime is installed, and the SDK path is hardcoded src/openal_backend.c:8:11: fatal error: 'al.h' file not found I downloaded the OpenAL SDK manually, extracted it to C:\openal-soft and edited ADDL_WIN32_INCLUDES and ADDL_WIN32_LDFLAGS to point there. It would help to document this manual step in the README (as is already done for Assimp), or to make the path configurable through an environment variable. 5) Assimp: the library name is hardcoded lld-link: error: could not open 'assimp-vc143-mt.lib' I changed it to -lassimp-vc145-mt. Making the name configurable, or documenting the required Assimp version, would avoid this. 6) The ASSIMP environment variable setx ASSIMP "C:\Program Files\Assimp" /M Adding this command to the README (Windows, step 3) and quoting the variable wherever it is used, e.g. -L"$(ASSIMP)\lib\x64", would help. NON-BLOCKING PROBLEMS 7) copy-utils-win32 fails when the build runs under ktime.exe The process cannot access the file because it is being used by another process. This stops copy-top-level and leaves bin\ incomplete. I ran "make SHELL=cmd.exe copy-top-level" manually afterwards and it worked. Skipping ktime.exe when it already exists, or prefixing the copy with "-", would avoid it. 8) "svn" is not recognized 9) import-updated-assets.bat reports success despite errors [ERROR]: Error opening file: 'testbed.kapp/./assets/music/source/Woodland Fantasy mono.mp3' (the source file seems to be missing) kohi.tools importmanifest could return a non-zero exit code when an import fails. Also, the \033[0;32m escape codes in the final message are printed literally by cmd.exe. 10) Runtime messages in the testbed (which otherwise runs fine) | ||||
| Additional Information | revision: 86 Hardware note: this is a modest laptop (integrated GPU, 8 GB of RAM, about 28-36 FPS in the Sponza scene). The goal of this test was only to check that the engine builds and runs on a clean Windows setup, not to evaluate performance. Once, before I updated the Intel graphics driver, testbed.kapp.exe crashed after loading test_zone with: [FATAL]: Assertion Failure: vulkan_expr_result == VK_SUCCESS, message: 'VK_ERROR_DEVICE_LOST ...' (src/vulkan_command_buffer.c:234) It did not happen again after the driver update, so it is probably unrelated to the engine. I mention it only for reference. | ||||
| Tags | assets, build, dependencies, makefile, Windows | ||||
| Attached Files | |||||
| Revision | |||||
|
|
@aski97 Thanks for reporting this! I'll look into getting this fixed asap, and probably cut a 0.13.1 release as a result. |
|
|
Vulkan 1.3.3 was before the driver update. The running version is Vulkan 1.4.4. |
|
|
All issues should be fixed as of rev. 90. Some of them are rendered moot as the OpenAL SDK and Assimp no longer need to be installed (see changelog). Can you please verify that these fixes are all good? Everything looks ok here on my end. Thank you! |
|
|
Hello, I just tried on a clean checkout and I found two small things left: 1) "make setup" still fails because the shell cmd is not set in the top-level Makefile and in utils/Makefile. 2) The last step of "make build-debug" fails: I am so excited for this project btw, I really admire your patience and determination with it! |
|
|
Thanks for re-checking this! The last 2 items should be resolved in trunk as of r114. At this point I'm just going to write off v0.13 since there are also a lot of changes for v0.14 in there. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-10-27 21:54 | aski97 | New Issue | |
| 2026-10-27 21:54 | aski97 | Status | new => assigned |
| 2026-10-27 21:54 | aski97 | Assigned To | => travisvroman |
| 2026-10-27 21:54 | aski97 | Tag Attached: assets | |
| 2026-10-27 21:54 | aski97 | Tag Attached: build | |
| 2026-10-27 21:54 | aski97 | Tag Attached: dependencies | |
| 2026-10-27 21:54 | aski97 | Tag Attached: makefile | |
| 2026-10-27 21:54 | aski97 | Tag Attached: Windows | |
| 2026-10-27 21:54 | aski97 | File Added: Screenshot 2026-10-27 223034.png | |
| 2026-10-27 21:54 | aski97 | File Added: Screenshot 2026-10-27 223226.png | |
| 2026-10-28 17:43 | travisvroman | Note Added: 0000005 | |
| 2026-10-28 20:04 | aski97 | Note Added: 0000006 | |
| 2026-10-28 20:04 | aski97 | File Added: Screenshot 2026-10-27 231937.png | |
| 2026-10-28 20:04 | aski97 | File Added: Screenshot 2026-10-27 232254.png | |
| 2026-10-28 20:04 | aski97 | File Added: Screenshot 2026-10-27 232309.png | |
| 2026-10-29 03:00 | travisvroman | Note Added: 0000007 | |
| 2026-10-29 13:59 | travisvroman | Note Edited: 0000007 | |
| 2026-10-30 22:14 | aski97 | Note Added: 0000008 | |
| 2026-11-11 14:16 | travisvroman | Priority | normal => high |
| 2026-11-11 14:16 | travisvroman | Status | assigned => resolved |
| 2026-11-11 14:16 | travisvroman | Resolution | open => fixed |
| 2026-11-11 14:16 | travisvroman | Product Version | => v0.14.0 |
| 2026-11-11 14:16 | travisvroman | Fixed in Version | => v0.14.0 |
| 2026-11-11 14:16 | travisvroman | Target Version | => v0.14.0 |
| 2026-11-11 14:16 | travisvroman | Note Added: 0000009 |