edk2+VS2008配置問題

Annan00發表於2018-12-14

起初使用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成功了。

相關文章