PpMemory.cpp 生成 Vulkan-Samples MSVC 项目时丢失

PpMemory.cpp missing when generating Vulkan-Samples MSVC project

我正在尝试构建 Vulkan-Samples from the Khronos git repo for Windows. I cloned and built the dependencies glslang and Vulkan-LoaderAndValidationLayers, and followed all the configuration and build steps as described. As far as I could tell there was no issue, but now when I try to generate project files with cmake -G "Visual Studio 14 Win64 ../.." from within my build directory as described here,我收到以下错误:

CMake Error at external/libs/glslang/CMakeLists.txt:133 (add_library):

Cannot find source file:

D:/Khronos/glslang/glslang/MachineIndependent/preprocessr/PpMemory.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

CMake Error: CMake can not determine linker language for target: glslang

的确,该文件丢失了,但我无法找出它应该来自哪里或我错过了哪些步骤。有什么想法吗?

该文件不再是 glslang 的一部分,去年已从其存储库中删除,因此不再需要构建 glslang 库。

我猜他们忘记更新示例存储库以反映这些更改。

因此,要编译示例,请从 cmakelists.txt 中删除 PpMemory.cppPpSymbols.cpp,或者(更好)使用当前 glslang repository 中的一个。

注意事项:Khronos Vulkan 示例存储库从未真正流行过,因此您可能想查看其他示例包,例如 official ones from LunarG 或我自己存储库中的示例包。