我正在使用 EDK2 和 Visual Studio 2019。我按照说明在 Windows 系统上设置 EDKII 构建环境。在 Windows 命令行上发送以下命令“edksetup.bat Rebuild”后,我收到以下消息。
subprocess not exit successfully
Error while execute command 'nmake all' in direcotry C:\edk2\BaseTools\Source\C\BrotliCompress
...
LINK : fatal error LNK1181: Eingabedatei "brotli\c\tools\brotli.obj" kann nicht geffnet werden.
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x86\link.exe"": Rckgabe-Code "0x49d"
Stop.
NMAKE : fatal error U1077: "if": Rückgabe-Code "0x1"
Stop.
NMAKE : fatal error U1077: "if": Rückgabe-Code "0x1"
Stop.
是因为 Visual Studio 2019 的兼容性还是“BrotliCompress”有什么问题?我将标签更改为 TOOL_CHAIN_TAG = VS2019x86。但它没有用。为了 VS2019 兼容性,我还应该改变什么?与 NMAKE 文件有什么关系?
我测试了旧版本的 EDK2,它可以工作。但问题是我使用的是 VS2019,我想使用 edk2-stable201911。旧版本 (edk2-stable201908) 最多只能支持 VS2017。在 tools_de.txt 中没有 VS2019 的“通用路径宏”。上述错误是使用edk2-stable201911的结果