【问题标题】:Failing to build EDK (development environment for UEFI)无法构建 EDK(UEFI 的开发环境)
【发布时间】:2016-05-02 20:56:34
【问题描述】:

我遵循了构建说明here。但是一旦我运行构建,这就是我得到的:

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

我该如何解决这个问题?

【问题讨论】:

  • 建议您下载UDK2015 Release。

标签: c visual-studio uefi


【解决方案1】:

问题很可能是您没有位于 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后缀和“Program Files (x86)”之间的联系
猜你喜欢
  • 2020-11-10
  • 2022-09-25
  • 1970-01-01
  • 1970-01-01
  • 2013-12-03
  • 2021-02-17
  • 1970-01-01
  • 1970-01-01
  • 2022-01-13
相关资源
最近更新 更多