C++ Visual Studio 2012 - 缺少所需的文件“tracker.exe”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13422178/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual Studio 2012 - Required file "tracker.exe" is missing
提问by Maik Klein
I tried to compile the source code of cryengine 3and I always get the following error message.
我试图编译cryengine 3的源代码,但总是收到以下错误消息。
Error 1 error : Required file "tracker.exe" is missing. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 251 6 CryGame
For some reason I couldn't find any information on google.
出于某种原因,我在谷歌上找不到任何信息。
Could it be possible that my Visual Studio installtion is somehow corrupt? I am still using the release candidate
我的 Visual Studio 安装有可能以某种方式损坏吗?我仍在使用候选版本
采纳答案by Syntactic Fructose
A quote from MS website about tracker.exe:
MS 网站上关于 tracker.exe 的引用:
Tracker.exe is required to correctly incrementally generate resources in some circumstances, such as when building on a 64-bit OS using 32-bit MSBuild. This build requires Tracker.exe, but it could not be found. The task is looking for Tracker.exe beneath the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A.
在某些情况下,Tracker.exe 需要正确增量生成资源,例如在使用 32 位 MSBuild 的 64 位操作系统上构建时。此版本需要 Tracker.exe,但无法找到。该任务是在注册表项 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A 的 InstallationFolder 值下查找 Tracker.exe。
Possible solutions:
可能的解决方案:
- Install the Microsoft Windows SDK v7.0A or later.
- Manually set the above registry key to the correct location.
- You short-circuit that lookup instead by setting the ResGenTrackerSdkPath property to the 7.1 .NET 4.0 tools location. In the build definition, under "MSbuild Arguments", you can add the following:
- 安装 Microsoft Windows SDK v7.0A 或更高版本。
- 手动将上面的注册表项设置到正确的位置。
- 您可以通过将 ResGenTrackerSdkPath 属性设置为 7.1 .NET 4.0 工具位置来短路该查找。在构建定义中,在“MSbuild Arguments”下,您可以添加以下内容:
/p:ResGenTrackerSdkPath=":\Program Files(x86)\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools
/p:ResGenTrackerSdkPath=":\Program Files(x86)\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 工具
EDIT: your path may differ a little, but this still shows the general path to add
编辑:您的路径可能略有不同,但这仍然显示了要添加的一般路径
回答by Vagus
You can go to the directory "C:\Program Files (x86)\Microsoft SDKs\Windows"
.
你可以去目录"C:\Program Files (x86)\Microsoft SDKs\Windows"
。
Then, you search for the key "tracker.exe", if you can't find it, it might been deleted somehow.
然后,您搜索密钥“tracker.exe”,如果您找不到它,它可能以某种方式被删除了。
The best way is:
最好的办法是:
Copy the folder "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools"
复制文件夹 "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools"
To your PC at the same directory. If it didn't work, you can copy the folder into them[the following picture] every one.
到您 PC 的同一目录中。如果还是不行,可以把文件夹复制到[下图]一个。