Date
1 - 4 of 4
[EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Bret Barkelew <bret.barkelew@...>
Updated (below)…
- Bret
From: Bret Barkelew via groups.io<mailto:bret.barkelew@...>
Sent: Monday, March 8, 2021 8:09 AM
To: Mohammad Younas Khan Pathan<mailto:pmdyounaskhan786@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Sean Brogan<mailto:spbrogan@...>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Younas,
Can you try making sure that you have all the following subcomponents of VS Buildtools installed:
Microsoft.VisualStudio.Component.VC.CoreBuildTools
Microsoft.VisualStudio.Component.VC.Tools.x86.x64
Microsoft.VisualStudio.Component.Windows10SDK.17763
While this isn’t official EDK2 documentation, this is our (MSCoreUEFI) recommended way to install buildtools:
Tools and Prerequisite - Project Mu (microsoft.github.io)<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0>
- Bret
From: Mohammad Younas Khan Pathan<mailto:pmdyounaskhan786@...>
Sent: Sunday, March 7, 2021 11:30 PM
To: Bret Barkelew<mailto:Bret.Barkelew@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Sean Brogan<mailto:spbrogan@...>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Bret,
I selected default install from VS buildtools from below link:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0>>
Please find the log:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build>vcvarsall.bat AMD64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.0
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build>
Thank you,
Younas.
On Fri, 5 Mar 2021 at 22:52, Bret Barkelew <Bret.Barkelew@...<mailto:Bret.Barkelew@...>> wrote:
Can you send the output of:
“C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat AMD64”
When you installed VS2019, did you select any additional packages or just a default install?
- Bret
From: Mohammad Younas Khan Pathan via groups.io<mailto:pmdyounaskhan786@...>
Sent: Thursday, March 4, 2021 10:16 PM
To: Sean Brogan<mailto:spbrogan@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...>
Subject: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Hi Bret/others,
I have installed WinSDK & VS2019 in my system.
Please find the attached build log for building EmulatorPkg.
And help me out on this.
Thank you,
Younas.
On Fri, 5 Mar 2021 at 09:49, Sean Brogan <spbrogan@...<mailto:spbrogan@...>> wrote:
- Bret
From: Bret Barkelew via groups.io<mailto:bret.barkelew@...>
Sent: Monday, March 8, 2021 8:09 AM
To: Mohammad Younas Khan Pathan<mailto:pmdyounaskhan786@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Sean Brogan<mailto:spbrogan@...>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Younas,
Can you try making sure that you have all the following subcomponents of VS Buildtools installed:
Microsoft.VisualStudio.Component.VC.CoreBuildTools
Microsoft.VisualStudio.Component.VC.Tools.x86.x64
Microsoft.VisualStudio.Component.Windows10SDK.17763
While this isn’t official EDK2 documentation, this is our (MSCoreUEFI) recommended way to install buildtools:
Tools and Prerequisite - Project Mu (microsoft.github.io)<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0>
- Bret
From: Mohammad Younas Khan Pathan<mailto:pmdyounaskhan786@...>
Sent: Sunday, March 7, 2021 11:30 PM
To: Bret Barkelew<mailto:Bret.Barkelew@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Sean Brogan<mailto:spbrogan@...>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Bret,
I selected default install from VS buildtools from below link:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0>>
Please find the log:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build>vcvarsall.bat AMD64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.0
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build>
Thank you,
Younas.
On Fri, 5 Mar 2021 at 22:52, Bret Barkelew <Bret.Barkelew@...<mailto:Bret.Barkelew@...>> wrote:
Can you send the output of:
“C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat AMD64”
When you installed VS2019, did you select any additional packages or just a default install?
- Bret
From: Mohammad Younas Khan Pathan via groups.io<mailto:pmdyounaskhan786@...>
Sent: Thursday, March 4, 2021 10:16 PM
To: Sean Brogan<mailto:spbrogan@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...>
Subject: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Hi Bret/others,
I have installed WinSDK & VS2019 in my system.
Please find the attached build log for building EmulatorPkg.
And help me out on this.
Thank you,
Younas.
On Fri, 5 Mar 2021 at 09:49, Sean Brogan <spbrogan@...<mailto:spbrogan@...>> wrote:
EmulatorPkg on Windows is a Windows application and thus you need all
the tools/libs to support building a windows application.
I would suggest making sure you have VS2019 and WinSdk as listed here:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=deUr%2BQCYJ4srUuHZJGbovx8tion%2FqUrBk75UtYGNyBw%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=deUr%2BQCYJ4srUuHZJGbovx8tion%2FqUrBk75UtYGNyBw%3D&reserved=0>>
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0>>
Thanks
Sean
On 3/4/2021 6:23 AM, Mohammad Younas Khan Pathan wrote:The mu_nasm dependency issue is resolved with below cmd:['WINDOWSSDKVERSION',
stuart_update -c .pytool/CISettings.py
I am facing another error if I try stuart_build (for EmulatorPkg) or
running BaseTools/Edk2ToolsBuild.py for VS2019:
*ERROR - We were not able to find on the keys requested from vcvarsall.*
* ValueError: Missing keys when querying vcvarsall:'WINDOWSSDKBINPATH', 'UNIVERSALCRTSDKDIR', 'WINDOWSLIBPATH', 'PATH',EmulatorPkg
'VCTOOLSINSTALLDIR', 'EXTENSIONSDKDIR', 'UCRTVERSION',
'WINDOWSSDKVERBINPATH', 'WINDOWSSDKDIR']*
Do we need to do any setup for these variables?
Thank you,
Younas.
On Thu, 4 Mar 2021 at 19:24, Feng, Bob C <bob.c.feng@...<mailto:bob.c.feng@...>> wrote:OvmfPkg\Platform\ReadMe.md describes the instruction of using Pytools to
build OvmfPkg in details. Those instruction can also apply to"c:\python\lib\site-packages\edk2toolext\invocables\edk2_platform_build.py",Build.
This command is to init and update the edk2 submodules
stuart_setup -c OvmfPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG> -a <TARGET_ARCH>
This command is to install the nasm and iasl
stuart_update -c OvmfPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG> -a <TARGET_ARCH>
This command is to build BaseTools C tools and set the necessary
environment variable
python BaseTools/Edk2ToolsBuild.py -t <ToolChainTag>
This command is to OvmfPkg
stuart_build -c OvmfPkg/PlatformCI/PlatformBuild.py -a IA32
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG>
Thanks,
Bob
-----Original Message-----
From: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io> <discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>> On Behalf Of
Mohammad Younas Khan Pathan
Sent: Thursday, March 4, 2021 7:07 PM
To: alexgdi@...<mailto:alexgdi@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>
Subject: Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Alex,
I tried that cmd, but it gives below error: NASM is installed and kept
with NASM_PREFIX env variable.
ERROR - Dependency 'mu_nasm' is not met!
Traceback (most recent call last):
File "c:\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python\Scripts\stuart_build.exe\__main__.py", line 7, in
<module>
Filelineline 113, in main
Edk2PlatformBuild().Invoke()
File
"c:\python\lib\site-packages\edk2toolext\base_abstract_invocable.py",before122, in Invoke
raise RuntimeError("SDE is not current. Please update your envrunning this tool.")
RuntimeError: SDE is not current. Please update your env before running
this tool.
Have you got any errors like this?
Thank you,
Younas.
On Thu, 4 Mar 2021 at 16:06, <alexgdi@...<mailto:alexgdi@...>> wrote:On Thu, Mar 4, 2021 at 02:27 AM, Mohammad Younas Khan Pathan wrote:It is not necessary to compile BaseTools. If you want to build
cmd: python BaseTools/Edk2ToolsBuild.py -t <ToolChainTag> #
ToolChainTag
EmulatorPkg try this instruction
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0>>
eadMe.md
and use MSVC 2019 compiler
for example
stuart_build -c EmulatorPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=VS2019 -a X64
...
Mohammad Younas Khan Pathan <pmdyounaskhan786@...>
Hi Bret,
I have installed using vs_buildtools.exe cmd in shared link (
https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-studio-2019-preferred
)
Still I am facing the same build error:
ERROR - We were not able to find on the keys requested from vcvarsall.
ERROR - We didn't find: ['WINDOWSSDKVERSION', 'WINDOWSSDKDIR',
'UNIVERSALCRTSDKDIR', 'EXTENSIONSDKDIR', 'WINDOWSLIBPATH',
'WINDOWSSDKVERBINPATH', 'VCTOOLSINSTALLDIR', 'PATH', 'WINDOWSSDKBINPATH']
Then I tried to manually set these env vars as follows, but still I am
getting the same build errors.
set WINDOWSSDKVERSION=10.0.17763.0
set WINDOWSSDKDIR=C:\Program Files (x86)\Windows Kits\10\
set EXTENSIONSDKDIR=C:\Program Files (x86)\Microsoft SDKs\Windows
Kits\10\ExtensionSDKs\
set WINDOWSLIBPATH=References\CommonConfiguration\Neutral\
set WINDOWSSDKVERBINPATH=C:\Program Files (x86)\Windows
Kits\10\bin\10.0.17763.0\x64\
set VCTOOLSINSTALLDIR=C:\BuildTools\VC\Tools\MSVC\14.28.29910\
set WINDOWSSDKBINPATH=C:\Program Files (x86)\Windows
Kits\10\bin\10.0.17763.0\x64\
set UCRTVERSION=10.0.17763.0
set PATH=%Path%
The build errors are due to paths in environment vars are not set
appropriately.
Is there any other way to set these variables? or can you share your
reference variables, so that I can set and check?
Thank you,
Younas.
On Mon, 8 Mar 2021 at 21:48, Bret Barkelew <Bret.Barkelew@...>
wrote:
I have installed using vs_buildtools.exe cmd in shared link (
https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-studio-2019-preferred
)
Still I am facing the same build error:
ERROR - We were not able to find on the keys requested from vcvarsall.
ERROR - We didn't find: ['WINDOWSSDKVERSION', 'WINDOWSSDKDIR',
'UNIVERSALCRTSDKDIR', 'EXTENSIONSDKDIR', 'WINDOWSLIBPATH',
'WINDOWSSDKVERBINPATH', 'VCTOOLSINSTALLDIR', 'PATH', 'WINDOWSSDKBINPATH']
Then I tried to manually set these env vars as follows, but still I am
getting the same build errors.
set WINDOWSSDKVERSION=10.0.17763.0
set WINDOWSSDKDIR=C:\Program Files (x86)\Windows Kits\10\
set EXTENSIONSDKDIR=C:\Program Files (x86)\Microsoft SDKs\Windows
Kits\10\ExtensionSDKs\
set WINDOWSLIBPATH=References\CommonConfiguration\Neutral\
set WINDOWSSDKVERBINPATH=C:\Program Files (x86)\Windows
Kits\10\bin\10.0.17763.0\x64\
set VCTOOLSINSTALLDIR=C:\BuildTools\VC\Tools\MSVC\14.28.29910\
set WINDOWSSDKBINPATH=C:\Program Files (x86)\Windows
Kits\10\bin\10.0.17763.0\x64\
set UCRTVERSION=10.0.17763.0
set PATH=%Path%
The build errors are due to paths in environment vars are not set
appropriately.
Is there any other way to set these variables? or can you share your
reference variables, so that I can set and check?
Thank you,
Younas.
On Mon, 8 Mar 2021 at 21:48, Bret Barkelew <Bret.Barkelew@...>
wrote:
Updated (below)…
- Bret
*From: *Bret Barkelew via groups.io
<bret.barkelew@...>
*Sent: *Monday, March 8, 2021 8:09 AM
*To: *Mohammad Younas Khan Pathan <pmdyounaskhan786@...>
*Cc: *discuss@edk2.groups.io; Sean Brogan <spbrogan@...>; Feng,
Bob C <bob.c.feng@...>; alexgdi@...
*Subject: *Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2
build error
Younas,
Can you try making sure that you have all the following subcomponents of
VS Buildtools installed:
Microsoft.VisualStudio.Component.VC.CoreBuildTools
Microsoft.VisualStudio.Component.VC.Tools.x86.x64
Microsoft.VisualStudio.Component.Windows10SDK.17763
While this isn’t official EDK2 documentation, this is our (MSCoreUEFI)
recommended way to install buildtools:
Tools and Prerequisite - Project Mu (microsoft.github.io)<
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0
- Bret
From: Mohammad Younas Khan Pathan<mailto:pmdyounaskhan786@...
<pmdyounaskhan786@...>>
Sent: Sunday, March 7, 2021 11:30 PM
To: Bret Barkelew<mailto:Bret.Barkelew@...
<Bret.Barkelew@...>>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Sean Brogan<
mailto:spbrogan@... <spbrogan@...>>; Feng, Bob C<
mailto:bob.c.feng@... <bob.c.feng@...>>; alexgdi@...<
mailto:alexgdi@... <alexgdi@...>>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build
error
Bret,
I selected default install from VS buildtools from below link:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0>
Please find the log:
C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Auxiliary\Build>vcvarsall.bat AMD64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.0
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Auxiliary\Build>
Thank you,
Younas.
On Fri, 5 Mar 2021 at 22:52, Bret Barkelew <Bret.Barkelew@...
<mailto:Bret.Barkelew@...>> wrote:
Can you send the output of:
“C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat AMD64”
When you installed VS2019, did you select any additional packages or just
a default install?
- Bret
From: Mohammad Younas Khan Pathan via groups.io<
mailto:pmdyounaskhan786@...
<pmdyounaskhan786@...>>
Sent: Thursday, March 4, 2021 10:16 PM
To: Sean Brogan<mailto:spbrogan@... <spbrogan@...>>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Feng, Bob C<
mailto:bob.c.feng@... <bob.c.feng@...>>; alexgdi@...<
mailto:alexgdi@... <alexgdi@...>>
Subject: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Hi Bret/others,
I have installed WinSDK & VS2019 in my system.
Please find the attached build log for building EmulatorPkg.
And help me out on this.
Thank you,
Younas.
On Fri, 5 Mar 2021 at 09:49, Sean Brogan <spbrogan@...<mailto:
spbrogan@...>> wrote:EmulatorPkg on Windows is a Windows application and thus you need allhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=deUr%2BQCYJ4srUuHZJGbovx8tion%2FqUrBk75UtYGNyBw%3D&reserved=0
the tools/libs to support building a windows application.
I would suggest making sure you have VS2019 and WinSdk as listed here:
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=deUr%2BQCYJ4srUuHZJGbovx8tion%2FqUrBk75UtYGNyBw%3D&reserved=0>https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0>vcvarsall.*
Thanks
Sean
On 3/4/2021 6:23 AM, Mohammad Younas Khan Pathan wrote:The mu_nasm dependency issue is resolved with below cmd:
stuart_update -c .pytool/CISettings.py
I am facing another error if I try stuart_build (for EmulatorPkg) or
running BaseTools/Edk2ToolsBuild.py for VS2019:
*ERROR - We were not able to find on the keys requested frombob.c.feng@...>> wrote:* ValueError: Missing keys when querying vcvarsall:['WINDOWSSDKVERSION','WINDOWSSDKBINPATH', 'UNIVERSALCRTSDKDIR', 'WINDOWSLIBPATH', 'PATH',
'VCTOOLSINSTALLDIR', 'EXTENSIONSDKDIR', 'UCRTVERSION',
'WINDOWSSDKVERBINPATH', 'WINDOWSSDKDIR']*
Do we need to do any setup for these variables?
Thank you,
Younas.
On Thu, 4 Mar 2021 at 19:24, Feng, Bob C <bob.c.feng@...<mailto:toOvmfPkg\Platform\ReadMe.md describes the instruction of using Pytoolsdiscuss@edk2.groups.io<mailto:discuss@edk2.groups.io>> On Behalf OfEmulatorPkgbuild OvmfPkg in details. Those instruction can also apply toBuild.
This command is to init and update the edk2 submodules
stuart_setup -c OvmfPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG> -a <TARGET_ARCH>
This command is to install the nasm and iasl
stuart_update -c OvmfPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG> -a <TARGET_ARCH>
This command is to build BaseTools C tools and set the necessary
environment variable
python BaseTools/Edk2ToolsBuild.py -t <ToolChainTag>
This command is to OvmfPkg
stuart_build -c OvmfPkg/PlatformCI/PlatformBuild.py -a IA32
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG>
Thanks,
Bob
-----Original Message-----
From: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io> <<alexgdi@...>>Mohammad Younas Khan Pathan
Sent: Thursday, March 4, 2021 7:07 PM
To: alexgdi@...<mailto:alexgdi@..."c:\python\lib\site-packages\edk2toolext\invocables\edk2_platform_build.py",Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>
Subject: Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Alex,
I tried that cmd, but it gives below error: NASM is installed and kept
with NASM_PREFIX env variable.
ERROR - Dependency 'mu_nasm' is not met!
Traceback (most recent call last):
File "c:\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python\Scripts\stuart_build.exe\__main__.py", line 7, in
<module>
Filerunninglineline 113, in main
Edk2PlatformBuild().Invoke()
File
"c:\python\lib\site-packages\edk2toolext\base_abstract_invocable.py",before122, in Invoke
raise RuntimeError("SDE is not current. Please update your envrunning this tool.")
RuntimeError: SDE is not current. Please update your env beforealexgdi@...>> wrote:this tool.
Have you got any errors like this?
Thank you,
Younas.
On Thu, 4 Mar 2021 at 16:06, <alexgdi@...<mailto:https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0On Thu, Mar 4, 2021 at 02:27 AM, Mohammad Younas Khan Pathan wrote:It is not necessary to compile BaseTools. If you want to build
cmd: python BaseTools/Edk2ToolsBuild.py -t <ToolChainTag> #
ToolChainTag
EmulatorPkg try this instruction
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0>eadMe.md
and use MSVC 2019 compiler
for example
stuart_build -c EmulatorPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=VS2019 -a X64
...
Mohammad Younas Khan Pathan <pmdyounaskhan786@...>
Hi Bret & others,
Do you have any comments on this??
On Wed, Mar 10, 2021, 12:20 PM Mohammad Younas Khan Pathan <
pmdyounaskhan786@...> wrote:
Do you have any comments on this??
On Wed, Mar 10, 2021, 12:20 PM Mohammad Younas Khan Pathan <
pmdyounaskhan786@...> wrote:
Hi Bret,
I have installed using vs_buildtools.exe cmd in shared link (
https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-studio-2019-preferred
)
Still I am facing the same build error:
ERROR - We were not able to find on the keys requested from vcvarsall.
ERROR - We didn't find: ['WINDOWSSDKVERSION', 'WINDOWSSDKDIR',
'UNIVERSALCRTSDKDIR', 'EXTENSIONSDKDIR', 'WINDOWSLIBPATH',
'WINDOWSSDKVERBINPATH', 'VCTOOLSINSTALLDIR', 'PATH', 'WINDOWSSDKBINPATH']
Then I tried to manually set these env vars as follows, but still I am
getting the same build errors.
set WINDOWSSDKVERSION=10.0.17763.0
set WINDOWSSDKDIR=C:\Program Files (x86)\Windows Kits\10\
set EXTENSIONSDKDIR=C:\Program Files (x86)\Microsoft SDKs\Windows
Kits\10\ExtensionSDKs\
set WINDOWSLIBPATH=References\CommonConfiguration\Neutral\
set WINDOWSSDKVERBINPATH=C:\Program Files (x86)\Windows
Kits\10\bin\10.0.17763.0\x64\
set VCTOOLSINSTALLDIR=C:\BuildTools\VC\Tools\MSVC\14.28.29910\
set WINDOWSSDKBINPATH=C:\Program Files (x86)\Windows
Kits\10\bin\10.0.17763.0\x64\
set UCRTVERSION=10.0.17763.0
set PATH=%Path%
The build errors are due to paths in environment vars are not set
appropriately.
Is there any other way to set these variables? or can you share your
reference variables, so that I can set and check?
Thank you,
Younas.
On Mon, 8 Mar 2021 at 21:48, Bret Barkelew <Bret.Barkelew@...>
wrote:Updated (below)…
- Bret
*From: *Bret Barkelew via groups.io
<bret.barkelew@...>
*Sent: *Monday, March 8, 2021 8:09 AM
*To: *Mohammad Younas Khan Pathan <pmdyounaskhan786@...>
*Cc: *discuss@edk2.groups.io; Sean Brogan <spbrogan@...>; Feng,
Bob C <bob.c.feng@...>; alexgdi@...
*Subject: *Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2
build error
Younas,
Can you try making sure that you have all the following subcomponents of
VS Buildtools installed:
Microsoft.VisualStudio.Component.VC.CoreBuildTools
Microsoft.VisualStudio.Component.VC.Tools.x86.x64
Microsoft.VisualStudio.Component.Windows10SDK.17763
While this isn’t official EDK2 documentation, this is our (MSCoreUEFI)
recommended way to install buildtools:
Tools and Prerequisite - Project Mu (microsoft.github.io)<
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0
- Bret
From: Mohammad Younas Khan Pathan<mailto:pmdyounaskhan786@...
<pmdyounaskhan786@...>>
Sent: Sunday, March 7, 2021 11:30 PM
To: Bret Barkelew<mailto:Bret.Barkelew@...
<Bret.Barkelew@...>>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Sean Brogan<
mailto:spbrogan@... <spbrogan@...>>; Feng, Bob C<
mailto:bob.c.feng@... <bob.c.feng@...>>; alexgdi@...<
mailto:alexgdi@... <alexgdi@...>>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build
error
Bret,
I selected default install from VS buildtools from below link:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0>
Please find the log:
C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Auxiliary\Build>vcvarsall.bat AMD64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.0
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Auxiliary\Build>
Thank you,
Younas.
On Fri, 5 Mar 2021 at 22:52, Bret Barkelew <Bret.Barkelew@...
<mailto:Bret.Barkelew@...>> wrote:
Can you send the output of:
“C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat AMD64”
When you installed VS2019, did you select any additional packages or just
a default install?
- Bret
From: Mohammad Younas Khan Pathan via groups.io<
mailto:pmdyounaskhan786@...
<pmdyounaskhan786@...>>
Sent: Thursday, March 4, 2021 10:16 PM
To: Sean Brogan<mailto:spbrogan@... <spbrogan@...>>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Feng, Bob C<
mailto:bob.c.feng@... <bob.c.feng@...>>; alexgdi@...<
mailto:alexgdi@... <alexgdi@...>>
Subject: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build
error
Hi Bret/others,
I have installed WinSDK & VS2019 in my system.
Please find the attached build log for building EmulatorPkg.
And help me out on this.
Thank you,
Younas.
On Fri, 5 Mar 2021 at 09:49, Sean Brogan <spbrogan@...<mailto:
spbrogan@...>> wrote:EmulatorPkg on Windows is a Windows application and thus you need allhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=deUr%2BQCYJ4srUuHZJGbovx8tion%2FqUrBk75UtYGNyBw%3D&reserved=0
the tools/libs to support building a windows application.
I would suggest making sure you have VS2019 and WinSdk as listed here:
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=deUr%2BQCYJ4srUuHZJGbovx8tion%2FqUrBk75UtYGNyBw%3D&reserved=0>https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0>vcvarsall.*
Thanks
Sean
On 3/4/2021 6:23 AM, Mohammad Younas Khan Pathan wrote:The mu_nasm dependency issue is resolved with below cmd:
stuart_update -c .pytool/CISettings.py
I am facing another error if I try stuart_build (for EmulatorPkg) or
running BaseTools/Edk2ToolsBuild.py for VS2019:
*ERROR - We were not able to find on the keys requested from<mailto:bob.c.feng@...>> wrote:* ValueError: Missing keys when querying vcvarsall:['WINDOWSSDKVERSION','WINDOWSSDKBINPATH', 'UNIVERSALCRTSDKDIR', 'WINDOWSLIBPATH', 'PATH',
'VCTOOLSINSTALLDIR', 'EXTENSIONSDKDIR', 'UCRTVERSION',
'WINDOWSSDKVERBINPATH', 'WINDOWSSDKDIR']*
Do we need to do any setup for these variables?
Thank you,
Younas.
On Thu, 4 Mar 2021 at 19:24, Feng, Bob C <bob.c.feng@...Pytools toOvmfPkg\Platform\ReadMe.md describes the instruction of usingdiscuss@edk2.groups.io<mailto:discuss@edk2.groups.io>> On Behalf OfEmulatorPkgbuild OvmfPkg in details. Those instruction can also apply toBuild.
This command is to init and update the edk2 submodules
stuart_setup -c OvmfPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG> -a <TARGET_ARCH>
This command is to install the nasm and iasl
stuart_update -c OvmfPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG> -a <TARGET_ARCH>
This command is to build BaseTools C tools and set the necessary
environment variable
python BaseTools/Edk2ToolsBuild.py -t <ToolChainTag>
This command is to OvmfPkg
stuart_build -c OvmfPkg/PlatformCI/PlatformBuild.py -a IA32
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG>
Thanks,
Bob
-----Original Message-----
From: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io> <<alexgdi@...>>Mohammad Younas Khan Pathan
Sent: Thursday, March 4, 2021 7:07 PM
To: alexgdi@...<mailto:alexgdi@...keptCc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>
Subject: Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Alex,
I tried that cmd, but it gives below error: NASM is installed and"c:\python\lib\site-packages\edk2toolext\invocables\edk2_platform_build.py",with NASM_PREFIX env variable.
ERROR - Dependency 'mu_nasm' is not met!
Traceback (most recent call last):
File "c:\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python\Scripts\stuart_build.exe\__main__.py", line 7, in
<module>
Filerunninglineline 113, in main
Edk2PlatformBuild().Invoke()
File
"c:\python\lib\site-packages\edk2toolext\base_abstract_invocable.py",before122, in Invoke
raise RuntimeError("SDE is not current. Please update your envrunning this tool.")
RuntimeError: SDE is not current. Please update your env beforealexgdi@...>> wrote:this tool.
Have you got any errors like this?
Thank you,
Younas.
On Thu, 4 Mar 2021 at 16:06, <alexgdi@...<mailto:https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0On Thu, Mar 4, 2021 at 02:27 AM, Mohammad Younas Khan Pathan wrote:It is not necessary to compile BaseTools. If you want to build
cmd: python BaseTools/Edk2ToolsBuild.py -t <ToolChainTag> #
ToolChainTag
EmulatorPkg try this instruction
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0%3chttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0>eadMe.md
and use MSVC 2019 compiler
for example
stuart_build -c EmulatorPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=VS2019 -a X64
...
Bret Barkelew <bret.barkelew@...>
Apologies. I was out of the office yesterday.
My guess is that you have multiple installs that may be confusing the “vswhere” utility. As such, you may have correctly configured your Buildtools 2019 install, but vswhere is finding an incorrectly configured install.
It’s hard to test this theory via email. Our team has a Discord server set up for UEFI and EDK2 community conversations. It would be easier for things like screenshare and quick back and forth. Any interest in joining me there? I’ll be on all day today (3/12) in case you want to drop by.
https://discord.gg/qy6CcUrr
- Bret
From: Mohammad Younas Khan Pathan <pmdyounaskhan786@...>
Sent: Friday, March 12, 2021 10:33:10 AM
To: Bret Barkelew <Bret.Barkelew@...>
Cc: discuss@edk2.groups.io <discuss@edk2.groups.io>; Sean Brogan <spbrogan@...>; Feng, Bob C <bob.c.feng@...>; alexgdi@... <alexgdi@...>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Hi Bret & others,
Do you have any comments on this??
On Wed, Mar 10, 2021, 12:20 PM Mohammad Younas Khan Pathan <pmdyounaskhan786@...<mailto:pmdyounaskhan786@...>> wrote:
Hi Bret,
I have installed using vs_buildtools.exe cmd in shared link (https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-studio-2019-preferred<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056659265%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MSzF3lw6zstn9MTpXZxs37Z639ACa2xlkgRKswhlsU4%3D&reserved=0>)
Still I am facing the same build error:
ERROR - We were not able to find on the keys requested from vcvarsall.
ERROR - We didn't find: ['WINDOWSSDKVERSION', 'WINDOWSSDKDIR', 'UNIVERSALCRTSDKDIR', 'EXTENSIONSDKDIR', 'WINDOWSLIBPATH', 'WINDOWSSDKVERBINPATH', 'VCTOOLSINSTALLDIR', 'PATH', 'WINDOWSSDKBINPATH']
Then I tried to manually set these env vars as follows, but still I am getting the same build errors.
set WINDOWSSDKVERSION=10.0.17763.0
set WINDOWSSDKDIR=C:\Program Files (x86)\Windows Kits\10\
set EXTENSIONSDKDIR=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\
set WINDOWSLIBPATH=References\CommonConfiguration\Neutral\
set WINDOWSSDKVERBINPATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\
set VCTOOLSINSTALLDIR=C:\BuildTools\VC\Tools\MSVC\14.28.29910\
set WINDOWSSDKBINPATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\
set UCRTVERSION=10.0.17763.0
set PATH=%Path%
The build errors are due to paths in environment vars are not set appropriately.
Is there any other way to set these variables? or can you share your reference variables, so that I can set and check?
Thank you,
Younas.
On Mon, 8 Mar 2021 at 21:48, Bret Barkelew <Bret.Barkelew@...<mailto:Bret.Barkelew@...>> wrote:
Updated (below)…
- Bret
From: Bret Barkelew via groups.io<mailto:bret.barkelew@...>
Sent: Monday, March 8, 2021 8:09 AM
To: Mohammad Younas Khan Pathan<mailto:pmdyounaskhan786@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Sean Brogan<mailto:spbrogan@...>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Younas,
Can you try making sure that you have all the following subcomponents of VS Buildtools installed:
Microsoft.VisualStudio.Component.VC.CoreBuildTools
Microsoft.VisualStudio.Component.VC.Tools.x86.x64
Microsoft.VisualStudio.Component.Windows10SDK.17763
While this isn’t official EDK2 documentation, this is our (MSCoreUEFI) recommended way to install buildtools:
Tools and Prerequisite - Project Mu (microsoft.github.io<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmicrosoft.github.io%2F&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056659265%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=371ScXPitDC0gmVWwE9teb6mxsm2FcCfD6mdEtnPXwo%3D&reserved=0>)<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056669219%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=cKaDMQ29la12bc0jhJ3jE363HJoyivTlO54Bg%2B4Yf98%3D&reserved=0>>
- Bret
From: Mohammad Younas Khan Pathan<mailto:pmdyounaskhan786@...>
Sent: Sunday, March 7, 2021 11:30 PM
To: Bret Barkelew<mailto:Bret.Barkelew@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io><mailto:discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>>; Sean Brogan<mailto:spbrogan@...>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...><mailto:alexgdi@...>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Bret,
I selected default install from VS buildtools from below link:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056669219%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=vTTe5mX7UI3GRsovr5OUtsPVUaV8Cops3mChmqlECxM%3D&reserved=0>>
Please find the log:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build>vcvarsall.bat AMD64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.0
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build>
Thank you,
Younas.
On Fri, 5 Mar 2021 at 22:52, Bret Barkelew <Bret.Barkelew@...<mailto:Bret.Barkelew@...><mailto:Bret.Barkelew@...<mailto:Bret.Barkelew@...>>> wrote:
Can you send the output of:
“C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat AMD64”
When you installed VS2019, did you select any additional packages or just a default install?
- Bret
From: Mohammad Younas Khan Pathan via groups.io<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.io%2F&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056679174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=DPyQJFxaEKOL0yBalEjhHgqOfM7yHAbEhPgh1DHsgJ4%3D&reserved=0><mailto:pmdyounaskhan786@...>
Sent: Thursday, March 4, 2021 10:16 PM
To: Sean Brogan<mailto:spbrogan@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io><mailto:discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...><mailto:alexgdi@...>
Subject: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Hi Bret/others,
I have installed WinSDK & VS2019 in my system.
Please find the attached build log for building EmulatorPkg.
And help me out on this.
Thank you,
Younas.
On Fri, 5 Mar 2021 at 09:49, Sean Brogan <spbrogan@...<mailto:spbrogan@...><mailto:spbrogan@...<mailto:spbrogan@...>>> wrote:
My guess is that you have multiple installs that may be confusing the “vswhere” utility. As such, you may have correctly configured your Buildtools 2019 install, but vswhere is finding an incorrectly configured install.
It’s hard to test this theory via email. Our team has a Discord server set up for UEFI and EDK2 community conversations. It would be easier for things like screenshare and quick back and forth. Any interest in joining me there? I’ll be on all day today (3/12) in case you want to drop by.
https://discord.gg/qy6CcUrr
- Bret
From: Mohammad Younas Khan Pathan <pmdyounaskhan786@...>
Sent: Friday, March 12, 2021 10:33:10 AM
To: Bret Barkelew <Bret.Barkelew@...>
Cc: discuss@edk2.groups.io <discuss@edk2.groups.io>; Sean Brogan <spbrogan@...>; Feng, Bob C <bob.c.feng@...>; alexgdi@... <alexgdi@...>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Hi Bret & others,
Do you have any comments on this??
On Wed, Mar 10, 2021, 12:20 PM Mohammad Younas Khan Pathan <pmdyounaskhan786@...<mailto:pmdyounaskhan786@...>> wrote:
Hi Bret,
I have installed using vs_buildtools.exe cmd in shared link (https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-studio-2019-preferred<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056659265%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MSzF3lw6zstn9MTpXZxs37Z639ACa2xlkgRKswhlsU4%3D&reserved=0>)
Still I am facing the same build error:
ERROR - We were not able to find on the keys requested from vcvarsall.
ERROR - We didn't find: ['WINDOWSSDKVERSION', 'WINDOWSSDKDIR', 'UNIVERSALCRTSDKDIR', 'EXTENSIONSDKDIR', 'WINDOWSLIBPATH', 'WINDOWSSDKVERBINPATH', 'VCTOOLSINSTALLDIR', 'PATH', 'WINDOWSSDKBINPATH']
Then I tried to manually set these env vars as follows, but still I am getting the same build errors.
set WINDOWSSDKVERSION=10.0.17763.0
set WINDOWSSDKDIR=C:\Program Files (x86)\Windows Kits\10\
set EXTENSIONSDKDIR=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\
set WINDOWSLIBPATH=References\CommonConfiguration\Neutral\
set WINDOWSSDKVERBINPATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\
set VCTOOLSINSTALLDIR=C:\BuildTools\VC\Tools\MSVC\14.28.29910\
set WINDOWSSDKBINPATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\
set UCRTVERSION=10.0.17763.0
set PATH=%Path%
The build errors are due to paths in environment vars are not set appropriately.
Is there any other way to set these variables? or can you share your reference variables, so that I can set and check?
Thank you,
Younas.
On Mon, 8 Mar 2021 at 21:48, Bret Barkelew <Bret.Barkelew@...<mailto:Bret.Barkelew@...>> wrote:
Updated (below)…
- Bret
From: Bret Barkelew via groups.io<mailto:bret.barkelew@...>
Sent: Monday, March 8, 2021 8:09 AM
To: Mohammad Younas Khan Pathan<mailto:pmdyounaskhan786@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>; Sean Brogan<mailto:spbrogan@...>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Younas,
Can you try making sure that you have all the following subcomponents of VS Buildtools installed:
Microsoft.VisualStudio.Component.VC.CoreBuildTools
Microsoft.VisualStudio.Component.VC.Tools.x86.x64
Microsoft.VisualStudio.Component.Windows10SDK.17763
While this isn’t official EDK2 documentation, this is our (MSCoreUEFI) recommended way to install buildtools:
Tools and Prerequisite - Project Mu (microsoft.github.io<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmicrosoft.github.io%2F&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056659265%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=371ScXPitDC0gmVWwE9teb6mxsm2FcCfD6mdEtnPXwo%3D&reserved=0>)<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056669219%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=cKaDMQ29la12bc0jhJ3jE363HJoyivTlO54Bg%2B4Yf98%3D&reserved=0>>
- Bret
From: Mohammad Younas Khan Pathan<mailto:pmdyounaskhan786@...>
Sent: Sunday, March 7, 2021 11:30 PM
To: Bret Barkelew<mailto:Bret.Barkelew@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io><mailto:discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>>; Sean Brogan<mailto:spbrogan@...>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...><mailto:alexgdi@...>
Subject: Re: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Bret,
I selected default install from VS buildtools from below link:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cPCr9rYcre5fxpAM6YTcWuKQPiPuoY9eMArye5B0q20%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.microsoft.com%2Fdownloads%2F%23build-tools-for-visual-studio-2019&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056669219%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=vTTe5mX7UI3GRsovr5OUtsPVUaV8Cops3mChmqlECxM%3D&reserved=0>>
Please find the log:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build>vcvarsall.bat AMD64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.0
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build>
Thank you,
Younas.
On Fri, 5 Mar 2021 at 22:52, Bret Barkelew <Bret.Barkelew@...<mailto:Bret.Barkelew@...><mailto:Bret.Barkelew@...<mailto:Bret.Barkelew@...>>> wrote:
Can you send the output of:
“C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat AMD64”
When you installed VS2019, did you select any additional packages or just a default install?
- Bret
From: Mohammad Younas Khan Pathan via groups.io<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.io%2F&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056679174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=DPyQJFxaEKOL0yBalEjhHgqOfM7yHAbEhPgh1DHsgJ4%3D&reserved=0><mailto:pmdyounaskhan786@...>
Sent: Thursday, March 4, 2021 10:16 PM
To: Sean Brogan<mailto:spbrogan@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io><mailto:discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>>; Feng, Bob C<mailto:bob.c.feng@...>; alexgdi@...<mailto:alexgdi@...><mailto:alexgdi@...>
Subject: [EXTERNAL] Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Hi Bret/others,
I have installed WinSDK & VS2019 in my system.
Please find the attached build log for building EmulatorPkg.
And help me out on this.
Thank you,
Younas.
On Fri, 5 Mar 2021 at 09:49, Sean Brogan <spbrogan@...<mailto:spbrogan@...><mailto:spbrogan@...<mailto:spbrogan@...>>> wrote:
EmulatorPkg on Windows is a Windows application and thus you need all
the tools/libs to support building a windows application.
I would suggest making sure you have VS2019 and WinSdk as listed here:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743119026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X1E2BLWjvErQpq6nRbI8BbSuqbrjjmZ9tJX3btyrxmg%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=deUr%2BQCYJ4srUuHZJGbovx8tion%2FqUrBk75UtYGNyBw%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23visual-studio-2019-preferred&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056679174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ra%2BLlALTa6ndPsJNviW9yBPBlITmNTM9rzEtyHL%2Fgx0%3D&reserved=0>>
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6%2BOIGR0lcVz0z%2F1ykiHOwZuSEGPylHf2kex8PECZcsk%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmicrosoft.github.io%2Fmu%2FCodeDevelopment%2Fprerequisites%2F%23optional-windows-driver-kit&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056689133%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ApfFP0XnrlyNPRBflB2e4woS22dzFKJ6aVgTTjNXaY4%3D&reserved=0>>
Thanks
Sean
On 3/4/2021 6:23 AM, Mohammad Younas Khan Pathan wrote:The mu_nasm dependency issue is resolved with below cmd:['WINDOWSSDKVERSION',
stuart_update -c .pytool/CISettings.py
I am facing another error if I try stuart_build (for EmulatorPkg) or
running BaseTools/Edk2ToolsBuild.py for VS2019:
*ERROR - We were not able to find on the keys requested from vcvarsall.*
* ValueError: Missing keys when querying vcvarsall:'WINDOWSSDKBINPATH', 'UNIVERSALCRTSDKDIR', 'WINDOWSLIBPATH', 'PATH',EmulatorPkg
'VCTOOLSINSTALLDIR', 'EXTENSIONSDKDIR', 'UCRTVERSION',
'WINDOWSSDKVERBINPATH', 'WINDOWSSDKDIR']*
Do we need to do any setup for these variables?
Thank you,
Younas.
On Thu, 4 Mar 2021 at 19:24, Feng, Bob C <bob.c.feng@...<mailto:bob.c.feng@...><mailto:bob.c.feng@...<mailto:bob.c.feng@...>>> wrote:OvmfPkg\Platform\ReadMe.md describes the instruction of using Pytools to
build OvmfPkg in details. Those instruction can also apply to"c:\python\lib\site-packages\edk2toolext\invocables\edk2_platform_build.py",Build.
This command is to init and update the edk2 submodules
stuart_setup -c OvmfPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG> -a <TARGET_ARCH>
This command is to install the nasm and iasl
stuart_update -c OvmfPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG> -a <TARGET_ARCH>
This command is to build BaseTools C tools and set the necessary
environment variable
python BaseTools/Edk2ToolsBuild.py -t <ToolChainTag>
This command is to OvmfPkg
stuart_build -c OvmfPkg/PlatformCI/PlatformBuild.py -a IA32
TOOL_CHAIN_TAG=<TOOL_CHAIN_TAG>
Thanks,
Bob
-----Original Message-----
From: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io><mailto:discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>> <discuss@edk2.groups.io<mailto:discuss@edk2.groups.io><mailto:discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>>> On Behalf Of
Mohammad Younas Khan Pathan
Sent: Thursday, March 4, 2021 7:07 PM
To: alexgdi@...<mailto:alexgdi@...><mailto:alexgdi@...>
Cc: discuss@edk2.groups.io<mailto:discuss@edk2.groups.io><mailto:discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>>
Subject: Re: [edk2-discuss] 回复: [edk2-discuss] edk2 build error
Alex,
I tried that cmd, but it gives below error: NASM is installed and kept
with NASM_PREFIX env variable.
ERROR - Dependency 'mu_nasm' is not met!
Traceback (most recent call last):
File "c:\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python\Scripts\stuart_build.exe\__main__.py", line 7, in
<module>
Filelineline 113, in main
Edk2PlatformBuild().Invoke()
File
"c:\python\lib\site-packages\edk2toolext\base_abstract_invocable.py",before122, in Invoke
raise RuntimeError("SDE is not current. Please update your envrunning this tool.")
RuntimeError: SDE is not current. Please update your env before running
this tool.
Have you got any errors like this?
Thank you,
Younas.
On Thu, 4 Mar 2021 at 16:06, <alexgdi@...<mailto:alexgdi@...><mailto:alexgdi@...<mailto:alexgdi@...>>> wrote:On Thu, Mar 4, 2021 at 02:27 AM, Mohammad Younas Khan Pathan wrote:It is not necessary to compile BaseTools. If you want to build
cmd: python BaseTools/Edk2ToolsBuild.py -t <ToolChainTag> #
ToolChainTag
EmulatorPkg try this instruction
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7Cbret.barkelew%40microsoft.com%7Cd3e80d6eabc04679f11108d8e24c52a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637508165743128985%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2FeHjU8zhs%2B7xV0uHb4mwHGasM89rkHicgiNqojwll9s%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fblob%2Fmaster%2FEmulatorPkg%2FPlatformCI%2FR&data=04%7C01%7CBret.Barkelew%40microsoft.com%7C66cd35ea9ef043a8df6708d8e585514e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637511708056699090%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=53C30DsAjs1YWIjLjW6ptfOF6rUffBzAKBne2qwF8jA%3D&reserved=0>>
eadMe.md
and use MSVC 2019 compiler
for example
stuart_build -c EmulatorPkg/PlatformCI/PlatformBuild.py
TOOL_CHAIN_TAG=VS2019 -a X64
...