2017-03-02 147 views
0

我试图构建Xbox Live示例并运行到DirectXTK错误中。无论我是否使用创作者计划或ID @ Xbox样本,都会发生这种情况。这些是https://github.com/Microsoft/xbox-live-samples编译示例时出现DirectXTK错误

的示例例如,打开Leaderboard示例时,我在解决方案资源管理器中看到“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 ========== 

我如何能得到样品的建筑&运行的任何想法?

回答

1

DirectXTK是Xbox Live样本git回购中的子模块。有两种方法可以确保你获得DirectXTK。

  1. 初始克隆时,请确保使用“--recursive”选项。 IE:

    git clone --recursive https://github.com/Microsoft/xbox-live-samples.git

  2. 如果你已经克隆了样本目录,你可以初始化子模块有:

    git submodule update

  3. git submodule update --init

    然后你可以对其进行更新