I am reposting this question because I never got an answer the last time I posted it. To be fair, I stopped pressing for an answer because I had to put the project aside for a while. The original question is here:
https://groups.google.com/g/grpc-io/c/Sjap2pyP-Ho
I am trying to follow the build instructions for Windows in BUILDING.md and it is not building. I am now using version gRPC 1.65.0. However, the instructions, as written, SIMPLY FAIL. (Which should be of concern.)
Please, can anyone spend some time and attention to help me get past this hurdle? I presume it's a matter of undocumented assumptions.
The first, worst error is this one, which occurs over 100 times (in different files):
19>###HIDING###\grpc\third_party\boringssl-with-bazel\src\crypto\asn1\../internal.h(136,1): fatal error C1083: Cannot open include file: 'stdalign.h': No such file or directory
These are the steps that I used
git clone --recurse-submodules -b v1.65.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc
cd \grpc
mkdir cmake\build
cd cmake\build
cmake ..\..
md .build
cd .build
cmake .. -G "Visual Studio 16 2019"
cmake --build . --config Release
And that's where it fails.
As I said last time, it seems to be building with Windows SDDK 10.0.17763.0, which doesn't have stdalign.h. I have 10.0.22000.0 installed, and this version does have stdalign.h.
But I do not understand how to fix this.