I am required to use VS2010 (due to other dependencies), and based on the "Windows Build Requirement" on the
BranchedAndBuilding page, I'm using the 1750 branch (currently the 3.1750.1679 binary from cefbuilds.com)
The advice to disable sandbox support (#define CEF_ENABLE_SANDBOX 0) resolved the LNK2038/MSC_VER mismatch, and the cefsimple app built OK, but the cefclient app still failed to build with these errors for me (perhaps because I have VS2013 and Windows Kit 8.0 installed as well for other reasons)
- Code: Select all
1> client_handler_win.cpp
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\gl/gl.h(22): fatal error C1083: Cannot open include file: 'winapifamily.h': No such file or directory
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\windowsx.h(17): fatal error C1083: Cannot open include file: 'winapifamily.h': No such file or directory
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\shlobj.h(12): fatal error C1083: Cannot open include file: 'winapifamily.h': No such file or directory
I was able to resolve this by simply removing the three references to the Windows Kits\8.0\Include\* in the cefclient project settings (Configuration,C/C++,General,Additional Include Directories)
I do have a couple of questions:
1. What exactly is the impact of using the CEF_ENABLE_SANDBOX vs. not? Specifically, I would like to support PNaCl - is the sandbox required for this?
2. What is the SANDBOX dependency on VS2013/WinSDK8? Is it possible to build it against VS2010/WinSDK7 (or WinSDK8 if careful with API use) if I build from source?
3. Similarly, could I use the newer 1916/Chrome 35 branch with VS2010?