Reg, Building EDKII source.


Mohammad Younas Khan Pathan <pmdyounaskhan786@...>
 

Liming,
I have reinstalled WinSDK and it shows the header file.
but still I am getting other errors.
May I know what environment vars need to be created post WinSDK
installation? I have set INCLUDE, LIB, LIBPATH vars

Also attached the build log for BaseTools (using edksetup.bat rebuild).

Thank you,
Younas.

On Fri, 5 Mar 2021 at 06:35, gaoliming <gaoliming@...> wrote:

Seemly, your WinSDK is not correct.

Windows.h is in my C:\Program Files (x86)\Windows
Kits\10\Include\10.0.17763.0\um directory.

Thanks
Liming
-----邮件原件-----
发件人: discuss@edk2.groups.io <discuss@edk2.groups.io> 代表
Mohammad Younas Khan Pathan
发送时间: 2021年3月4日 18:58
收件人: gaoliming <gaoliming@...>
抄送: discuss@edk2.groups.io
主题: Re: [edk2-discuss] Reg, Building EDKII source.

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.ex
e"' :
return code '0x2'
Stop.

Thank you,
Younas.

On Wed, 3 Mar 2021 at 19:58, gaoliming <gaoliming@...> 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@...>
*发送时间:* 2021年3月3日 22:25
*收件人:* gaoliming <gaoliming@...>
*抄送:* 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@...>
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@...>;
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.