Re: Reg, Building EDKII source.


Mohammad Younas Khan Pathan
 

Liming,
After creating a new INCLUDE env variable, it resolved the build error. But
faced other errors and created a LIB env variable for WinSDK libs.
I am getting another error for *windows.h* header file which is not there
in the WinSDK include folder. Can you help me with this?

######################
# Build executables
######################
subprocess not exit successfully
Error while execute command 'nmake all' in direcotry
F:\younas\edk2_latest\BaseTools\Source\C\GenFfs

Microsoft (R) Program Maintenance Utility Version 14.28.29910.0
Copyright (C) Microsoft Corporation. All rights reserved.

cl.exe -c /nologo /Zi /c /O2 /MT /W4 /WX /D
_CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE -I . -I
F:\younas\edk2_latest\BaseTools\Source\C\Include -I
F:\younas\edk2_latest\BaseTools\Source\C\Include\Ia32 -I
F:\younas\edk2_latest\BaseTools\Source\C\Common GenFfs.c -FoGenFfs.obj
GenFfs.c
*GenFfs.c(10): fatal error C1083: Cannot open include file: 'windows.h': No
such file or directory*
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\cl.exe"' :
return code '0x2'
Stop.

Thank you,
Younas.

On Wed, 3 Mar 2021 at 19:58, gaoliming <gaoliming@byosoft.com.cn> wrote:

Please open new cmd, and cd Edk2, type edksetup.bat Rebuild again.



System header files are searched from INCLUDE env. Please check this env
value.



Thanks

Liming

*发件人:* Mohammad Younas Khan Pathan <pmdyounaskhan786@gmail.com>
*发送时间:* 2021年3月3日 22:25
*收件人:* gaoliming <gaoliming@byosoft.com.cn>
*抄送:* discuss@edk2.groups.io
*主题:* Re: [edk2-discuss] Reg, Building EDKII source.



Liming,

Still I am facing the same error even after installing SDK tools from MS
VS 2019 installer.

And also added the below path (which has assert.h) to PATH variable:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\



Do I need to make any changes apart from this?


Thank you,

Younas.



On Wed, 3 Mar 2021 at 14:14, gaoliming <gaoliming@byosoft.com.cn> wrote:

Please make sure install WINSDK10

-----邮件原件-----
发件人: discuss@edk2.groups.io <discuss@edk2.groups.io> 代表
Mohammad Younas Khan Pathan
发送时间: 2021年3月3日 15:42
收件人: Mohammad Younas Khan Pathan <pmdyounaskhan786@gmail.com>;
discuss@edk2.groups.io
主题: Re: [edk2-discuss] Reg, Building EDKII source.

Liming,
I can able to download the build tools for VS from
https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-
2019
I am facing a build error while building latest Basetools using
"edksetup.bat
rebuild" command.
BaseTools\Source\C\Common\CommonLib.h(14): fatal error C1083: Cannot
open include file: 'assert.h': No such file or directory

Is there any issue for it? or is it fixed?

Thanks,
Younas.




Join discuss@edk2.groups.io to automatically receive all group messages.