C 未能构建EDK(UEFI开发环境)
我遵循构建说明。但一旦我运行构建,我就会得到:C 未能构建EDK(UEFI开发环境),c,visual-studio,uefi,C,Visual Studio,Uefi,我遵循构建说明。但一旦我运行构建,我就会得到: C:\edk2>build Build environment: Windows-post2008Server-6.2.9200 Build start time: 11:52:03, Jan.26 2016 WORKSPACE = c:\edk2 ECP_SOURCE = c:\edk2\edkcompatibilitypkg EDK_SOURCE = c:\edk2\edkcompatibility
C:\edk2>build
Build environment: Windows-post2008Server-6.2.9200
Build start time: 11:52:03, Jan.26 2016
WORKSPACE = c:\edk2
ECP_SOURCE = c:\edk2\edkcompatibilitypkg
EDK_SOURCE = c:\edk2\edkcompatibilitypkg
EFI_SOURCE = c:\edk2\edkcompatibilitypkg
EDK_TOOLS_PATH = c:\edk2\basetools
EDK_TOOLS_BIN = c:\edk2\basetools\bin\win32
Architecture(s) = IA32
Build target = DEBUG
Toolchain = VS2013
Active Platform = c:\edk2\MdeModulePkg\MdeModulePkg.dsc
Processing meta-data ........... done!
Building ... c:\edk2\MdePkg\Library\BaseDebugPrintErrorLevelLib\BaseDebugPrintErrorLevelLib.inf [IA32]
build...
: error 7000: Failed to start command
C:\Program Files\Microsoft Visual Studio 12.0\Vc\bin\nmake.exe /nologo tbuild [c:\edk2\Build\MdeModule\DEBUG_VS2
013\IA32\MdePkg\Library\BaseDebugPrintErrorLevelLib\BaseDebugPrintErrorLevelLib]
build...
: error F002: Failed to build module
c:\edk2\MdePkg\Library\BaseDebugPrintErrorLevelLib\BaseDebugPrintErrorLevelLib.inf [IA32, VS2013, DEBUG]
- Failed -
Build end time: 11:52:15, Jan.26 2016
Build total time: 00:00:11
如何修复此问题?问题很可能是您没有位于C:\Program Files\Microsoft Visual Studio 12.0\Vc\bin下的nmake.exe,因此正如第一个错误所述,它“无法启动命令”。按照路径,查看是否存在nmake.exe 同样的生成环境在我的计算机上也会失败,因为nmake.exe不是位于“c:\Program Files\…”下,而是位于“c:\Program Files(x86)\…”下。因此,如果更新c:\edk2\Conf\下的target.txt文件以设置工具链VS2013x86:
TOOL_CHAIN_TAG = VS2013x86
然后它应该正确地构建。在任何情况下,此故障排除步骤都会使您进一步了解故障原因。问题很可能是您没有位于C:\Program Files\Microsoft Visual Studio 12.0\Vc\bin下的nmake.exe,因此正如第一个错误所说,它“无法启动命令”。按照路径,查看是否存在nmake.exe 同样的生成环境在我的计算机上也会失败,因为nmake.exe不是位于“c:\Program Files\…”下,而是位于“c:\Program Files(x86)\…”下。因此,如果更新c:\edk2\Conf\下的target.txt文件以设置工具链VS2013x86:
TOOL_CHAIN_TAG = VS2013x86
然后它应该正确地构建。在任何情况下,此故障排除步骤都会让您进一步了解故障原因。非常有用--我没有意识到x86后缀和“程序文件(x86)”之间的联系非常有用--我没有意识到x86后缀和“程序文件(x86)”之间的联系建议您下载UDK2015版本。建议您下载UDK2015版本。