Does anyone know why this build on windows might be failing? It's not finding windows.h, but I'm not sure which windows.h it's looking for, or how to tell ninja or automate-git.py where to find it. I'm a 20-year Linux person who's completely comfortable with make and autotools, but am not used to either chromium or cef build tools, have avoided windows for over a decade, and have now spent two days gnashing my teeth over trying to build CEF on windows. I've tried both the manual build of dev at MasterBuildQuickStart and the automated build of 2883 in BranchesAndBuilding. Both fail looking for the same file. I've googled around extensively and have found hints about other FOSS packages hitting incompatibilities with recent versions of Visual Studio and/or various windows SDK's, but no solutions that have worked yet.
Windows server 2008R2 SP1
Visual Studio Community 2015 14.0.25431.01 u3
Windows SDK 10.0.14393.795
- Code: Select all
c:\code\chromium_git\chromium\src>ninja -C out\Debug_GN_x86 cef
ninja: Entering directory `out\Debug_GN_x86'
[3/26457] CXX obj/base/base_paths/base_paths_win.obj
FAILED: obj/base/base_paths/base_paths_win.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Stu
dio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/base/base_paths
/base_paths_win.obj.rsp /c ../../base/base_paths_win.cc /Foobj/base/base_paths/b
ase_paths_win.obj /Fd"obj/base/base_paths_cc.pdb"
c:\code\chromium_git\chromium\src\base\base_paths_win.cc(5): fatal error C1083:
Cannot open include file: 'windows.h': No such file or directory
[4/26457] CXX obj/base/base_static/pe_image.obj
FAILED: obj/base/base_static/pe_image.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Stu
dio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/base/base_stati
c/pe_image.obj.rsp /c ../../base/win/pe_image.cc /Foobj/base/base_static/pe_imag
e.obj /Fd"obj/base/base_static_cc.pdb"
c:\code\chromium_git\chromium\src\base\win\pe_image.h(14): fatal error C1083: Ca
nnot open include file: 'windows.h': No such file or directory
[5/26457] CXX obj/base/base_paths/base_paths.obj
FAILED: obj/base/base_paths/base_paths.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Stu
dio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/base/base_paths
/base_paths.obj.rsp /c ../../base/base_paths.cc /Foobj/base/base_paths/base_path
s.obj /Fd"obj/base/base_paths_cc.pdb"
c:\code\chromium_git\chromium\src\base\time\time.h(79): fatal error C1083: Canno
t open include file: 'windows.h': No such file or directory