-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
I generated the Visual Studio solution without issues using CMake 3.26.0 using
cmake CMakeLists.txt -B ./build -G "Visual Studio 17 2022"
Opening the Visual Studio solution and building scene_viewer yields:
Build started at 20:05...
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Checking File Globs
2>------ Build started: Project: ktx_version, Configuration: Debug x64 ------
2>Generate F:/Repos/Capsaicin/third_party/gfx/third_party/KTX-Software/lib/version.h
2>CUSTOMBUILD : <3>WSL (10) error : CreateProcessEntryCommon:505: execvpe /bin/bash failed 2
2>CUSTOMBUILD : <3>WSL (10) error : CreateProcessEntryCommon:508: Create process not expected to return
2>F:\Programmes\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'F:\Repos\Capsaicin\build\CMakeFiles\c5c56d083e3c7880931e9753412ded12\version.h.rule;F:\Repos\Capsaicin\build\CMakeFiles\18cfb7fd9b8f388db8fe6c951cc6c315\ktx_version.rule' exited with code 1.
2>Done building project "ktx_version.vcxproj" -- FAILED.
3>------ Build started: Project: ktx, Configuration: Debug x64 ------
3>zstd.c
3>writer1.c
3>F:\Repos\Capsaicin\third_party\gfx\third_party\KTX-Software\lib\writer1.c(40,10): error C1083: Cannot open include file: 'version.h': No such file or directory
3>writer2.c
3>F:\Repos\Capsaicin\third_party\gfx\third_party\KTX-Software\lib\writer2.c(45,10): error C1083: Cannot open include file: 'version.h': No such file or directory
3>Generating Code...
3>Done building project "ktx.vcxproj" -- FAILED.
4>------ Build started: Project: capsaicin, Configuration: Debug x64 ------
4>LINK : fatal error LNK1104: cannot open file '..\..\_deps\ktx-build\Debug\ktx.lib'
4>Done building project "capsaicin.vcxproj" -- FAILED.
5>------ Build started: Project: scene_viewer, Configuration: Debug x64 ------
5>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\capsaicin.lib'
5>Done building project "scene_viewer.vcxproj" -- FAILED.
========== Build: 1 succeeded, 4 failed, 9 up-to-date, 0 skipped ==========
========== Build completed at 20:05 and took 01,563 seconds ==========
Any ideas what could be done to fix these? I also tried changing to 'Release' mode from 'Debug' in Visual Studio (haven't touched the CMake for that) but got the exact same errors.
Metadata
Metadata
Assignees
Labels
No labels