ionescu007 / VisualUefi

A project for allowing EDK-II Development with Visual Studio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build fails with current source

skochinsky opened this issue · comments

It may be that I fail at git but reporting this just in case. Using VS2015 but with Target Platform set to 10.0.10240.0 (not sure if important).

  1. recent git pull cleaned up the openssl directory with the exeption of a few includes so BaseCryptLib and OpenSslLib fail to build due to missing .c files

  2. GlueLib fails to compile guid.c due to last line:

1>------ Build started: Project: GlueLib, Configuration: Release x64 ------
1>  guid.c
1>guid.c(105): error C2065: 'EDKII_IFR_BIT_VARSTORE_GUID': undeclared identifier
1>guid.c(105): error C2099: initializer is not a constant

commenting it out allows build to succeed and I can build the samples.

Tried some git incantations but could not get it to work. Finally deleted everything and did a pull from scratch:

git clone https://github.com/ionescu007/VisualUefi.git --recurse-submodules

This seems to have worked - EDK-II compiled without errors and samples too. Got one minor warning though:

1>LINK : warning LNK4281: undesirable base address 0x0 for x64 image; set base address above 4GB for best ASLR optimization

I don't trust myself enough with git to make a PR, but /IGNORE:4281 in linker options seems to suppress it.

It does, and I've created a PR to add this flag to the linker options in your stead 😉