> On Jul 8, 2015, at 10:25 PM, Tony <tony...@hotmail.com> wrote:
>
> I am very new to uefi dev and trying to understand how the environment needs
> to be setup to bring up the uefi shell.
>
> My current environment is:
> win 7 pro 64bit
> vs studio express 2013 for desktop
> edk2
>
> The edk2 binaries are in the f:\ folder. I have modified target_arch &
> toolchain to reflect my build platforms. That said I have tried x64 as my
> target_arch too.
>
> I like to think that I have set up the environment correctly (after ironing
> other errors) but when I do a build from vs2013 command line (and also from
> x64 command line) I get the following error for which I cannot seem to find
> a resolution:
>
> f:\edk2\MdeModulePkg\Library\UefiHiiLib\HiiString.c(253) : error C2220:
> warning
> treated as error - no 'object' file generated
> f:\edk2\MdeModulePkg\Library\UefiHiiLib\HiiString.c(253) : warning C4013:
> 'GetEf
> iGlobalVariable2' undefined; assuming extern returning int
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
> 12.0
> \Vc\bin\cl.exe"' : return code '0x2'
> Stop.
>
This is a strange error, unless you mixed versions of packages (Your MdePkg is
much older than your MdeModulePkg).
~/work/src/edk2(master)>git grep GetEfiGlobalVariable2 -- *.h
MdePkg/Include/Library/UefiLib.h:736:GetEfiGlobalVariable2 (
~/work/src/edk2(master)>git blame -L736,736 -- MdePkg/Include/Library/UefiLib.h
bf4a3dbd (ydong10 2012-05-30 07:36:00 +0000 736) GetEfiGlobalVariable2 (
~/work/src/edk2(master)>git show bf4a3dbd
commit bf4a3dbd4751b6411bdfc98bf3ac2c4f928bdfdf
Author: ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Date: Wed May 30 07:36:00 2012 +0000
Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more
info. Also replace old interface with new one.
Signed-off-by: Eric Dong <eric.d...@intel.com>
Reviewed-by: Liming Gao <liming....@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13375
6f19259b-4bc3-4df7-8a09-765794883524
diff --git
a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/Strings.c
b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/Strings.c
…
GetEfiGlobalVariable2 was added in 2012 to the MdePkg UefiLib.
>
> build...
> : error 7000: Failed to execute command
> C:\Program Files (x86)\Microsoft Visual Studio 12.0\Vc\bin\nmake.exe
> /no
> logo tbuild
> [f:\edk2\Build\MdeModule\DEBUG_VS2013x86\IA32\MdeModulePkg\Library\U
> efiHiiLib\UefiHiiLib]
>
>
> buiLD...
> : error F002: Failed to build module
> f:\edk2\MdeModulePkg\Library\UefiHiiLib\UefiHiiLib.inf [IA32,
> VS2013x86,
> DEBUG]
>
> - Failed -
> Build end time: 14:44:21, Jul.09 2015
> Build total time: 00:00:09
>
> I read somewhere that the winsdk needs to change from the default v6.0a to
> one that suits your vs studio. I changed that to v8.0a to no effect.
>
> Following the guide from edk2 I set my active_platform to be
> MdeModulePkg/MdeModulePkg.dsc. I have seen other people using Nt32Pkg. I have
> tried that as well. What is the difference and why must we chose one over the
> other.
>
Don’t know about that, but you don’t need any system include files to compile
the MdeModulePkg. All the include files are in the edk2 that you need. The
system include files are only needed for OS hosted build tools, and the
emulators.
Thanks,
Andrew Fish
> I will appreciate your assistance.
>
> Thanks,
> Tony
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/_______________________________________________
> <https://www.gigenetcloud.com/_______________________________________________>
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net <mailto:edk2-devel@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> <https://lists.sourceforge.net/lists/listinfo/edk2-devel>
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel