BUILD过程中提示:
Processing meta-data ............ done!
Building ... c:\edk2\MdePkg\Library\PeiMemoryAllocationLib\PeiMemoryAllocationLi
b.inf [IA32]
build...
: error 7000: Failed to start command
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\bin\nmake.exe /nol
ogo tbuild [c:\edk2\Build\NT32IA32\DEBUG_VS2008x86\IA32\MdePkg\Library\PeiMemory
AllocationLib\PeiMemoryAllocationLib]
build...
: error 7000: Failed to start command
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\bin\nmake.exe /nol
ogo tbuild [c:\edk2\Build\NT32IA32\DEBUG_VS2008x86\IA32\MdePkg\Library\PeiServic
esLib\PeiServicesLib]
build...
: error F002: Failed to build module
c:\edk2\MdePkg\Library\PeiMemoryAllocationLib\PeiMemoryAllocationLib.inf
[IA32, VS2008x86, DEBUG]
分析:C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\bin\nmake.exe /nologo tbuild,由这一句分析应该是nmake.exe的路径问题导致找不到nmake.exe,再看一下前面的路径容易发现,Program Files(x86)文件夹,就应该明白问题大概出在哪里了。虽然自己电脑是32位的,但好像有些机器C盘下的Program Files文件夹后面却不带(x86)
解决方案:所以最保险的方法还是看一下自己C盘下的Program Files后到底带不带(x86),之后,在修改target.txt中TOOL_CHAIN_TAG这一项的时候,决定是修改成VS2015x86还是VS2015,具体支持VS的哪些版本还是要看tools_def.txt文件。