我正在尝试构建Xbox Live示例,但遇到了DirectXTK错误。无论我使用的是Creator的程序还是ID@Xbox示例,都会发生这种情况。这些是https://github.com/Microsoft/xbox-live-samples上的示例
例如,当打开排行榜示例时,我在解决方案资源管理器中看到"DirectXTK (不可用)“。
在尝试构建时,我得到了以下输出
1>------ Build started: Project: Leaderboards, Configuration: Debug Win32 ------
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1611,5): warning : The referenced project '..\..\..\..\Kits\DirectXTK\DirectXTK_Windows10.vcxproj' does not exist.
1> pch.cpp
1>c:\users\rigu\xsapi\github\test\xbox-live-samples\samples\creatorssdk\leaderboards\uwp\cpp\pch.h(32): fatal error C1083: Cannot open include file: 'GamePad.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========关于如何构建和运行样例有什么建议吗?
发布于 2017-03-02 13:32:21
DirectXTK是Xbox Live samples git代码库中的一个子模块。有两种方法可以确保您获得DirectXTK。
git clone --recursive https://github.com/Microsoft/xbox-live-samples.git
git submodule update --init
然后,您可以使用以下命令更新它们:
git submodule update
https://stackoverflow.com/questions/42547512
复制相似问题