gpt4 book ai didi

c++ - 生成 Vulkan-Samples MSVC 项目时缺少 PpMemory.cpp

转载 作者:行者123 更新时间:2023-11-28 01:38:05 25 4
gpt4 key购买 nike

我正在尝试从适用于 Windows 的 Khronos git 存储库构建 Vulkan-Samples。我克隆并构建了依赖项 glslangVulkan-LoaderAndValidationLayers ,并按照所述执行所有配置和构建步骤。据我所知没有问题,但现在当我尝试使用 cmake -G "Visual Studio 14 Win64 ../.." 从我的构建目录中生成项目文件时,如 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 库。

我猜他们忘记更新他们的示例存储库以反射(reflect)这些更改。

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

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

关于c++ - 生成 Vulkan-Samples MSVC 项目时缺少 PpMemory.cpp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48406078/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com