edk2+VS2008配置问题

起初使用vs2010和edk2来进行配置,我将vs2010安装在了d盘

1、打开cmd.exe,找到edk2文件夹,运行edksetup.bat –nt32,出现两个warning(不管),修改target.txt

Build失败,原因是默认安装路径在c盘,需要修改路径

2、将vs2010卸载后安装在默认路径,依旧build失败

E:\EDK2>build
Build environment: Windows-7-6.1.7601-SP1
Build start time: 09:37:52, Dec.14 2018

WORKSPACE        = e:\edk2
ECP_SOURCE       = e:\edk2\edkcompatibilitypkg
EDK_SOURCE       = e:\edk2\edkcompatibilitypkg
EFI_SOURCE       = e:\edk2\edkcompatibilitypkg
EDK_TOOLS_PATH   = e:\edk2\basetools
EDK_TOOLS_BIN    = e:\edk2\basetools\bin\win32
CONF_PATH        = e:\edk2\conf


Architecture(s)  = IA32
Build target     = DEBUG
Toolchain        = VS2010x86

Active Platform          = e:\edk2\Nt32Pkg\Nt32Pkg.dsc
Flash Image Definition   = e:\edk2\Nt32Pkg\Nt32Pkg.fdf

Processing meta-data ........ done!
Building ... e:\edk2\MdePkg\Library\PeiMemoryAllocationLib\PeiMemoryAllocationLi
b.inf [IA32]
Building ... e:\edk2\MdePkg\Library\PeiServicesLib\PeiServicesLib.inf [IA32]
Building ... e:\edk2\Nt32Pkg\Library\PeiNt32OemHookStatusCodeLib\PeiNt32OemHookS
tatusCodeLib.inf [IA32]
Building ... e:\edk2\MdeModulePkg\Library\PeiReportStatusCodeLib\PeiReportStatus
CodeLib.inf [IA32]
Building ... e:\edk2\MdePkg\Library\BaseLib\BaseLib.inf [IA32]
        "d:\visual studio 2010\Vc\bin\cl.exe" /nologo /E /TC /FIAutoGen.h /Ie:\e
dk2\MdePkg\Library\BaseLib\Ia32  /Ie:\edk2\MdePkg\Library\BaseLib  /Ie:\edk2\Bui
ld\NT32IA32\DEBUG_VS2010x86\IA32\MdePkg\Library\BaseLib\BaseLib\DEBUG  /Ie:\edk2
\MdePkg  /Ie:\edk2\MdePkg\Include  /Ie:\edk2\MdePkg\Include\Ia32 e:\edk2\MdePkg\
Library\BaseLib\Ia32\DivU64x64Remainder.nasm > e:\edk2\Build\NT32IA32\DEBUG_VS20
10x86\IA32\MdePkg\Library\BaseLib\BaseLib\OUTPUT\Ia32\DivU64x64Remainder.i
'd:\visual' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
NMAKE : fatal error U1077: “"d:\visual studio 2010\Vc\bin\cl.exe"”: 返回代码“
0x1”
Stop.


build...
 : error 7000: Failed to execute command
        C:\Program Files (x86)\Microsoft Visual Studio 10.0\Vc\bin\nmake.exe /no
logo tbuild [e:\edk2\Build\NT32IA32\DEBUG_VS2010x86\IA32\MdePkg\Library\BaseLib\
BaseLib]


build...
 : error 7000: Failed to execute command
        C:\Program Files (x86)\Microsoft Visual Studio 10.0\Vc\bin\nmake.exe /no
logo tbuild [e:\edk2\Build\NT32IA32\DEBUG_VS2010x86\IA32\MdePkg\Library\BaseMemo
ryLibOptDxe\BaseMemoryLibOptDxe]


build...
 : error F002: Failed to build module
        e:\edk2\MdePkg\Library\BaseLib\BaseLib.inf [IA32, VS2010x86, DEBUG]

- Failed -
Build end time: 09:38:04, Dec.14 2018
Build total time: 00:00:12


3、因为不知道怎么修改路径,又再次将vs2010卸载,换了vs2008,放在c盘默认路径,就build成功了。

你可能感兴趣的:(UEFI)