I have trouble building 2.4.0 on Windows. It is regarding (at least) the cef-project. I have unsuccesfully been looking for answers to this. Likewise not been able to figure it out myself.
First I assume that the build.bat should be modified for
set BUILD_VCVARSALL=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat
and
cmake -G “Visual Studio 17 2022” -A x64 …\src || goto :error
for VS2022.
Please see the build error screen dump. Building in Visual Studio produce same result. Both Debug and Release.
Hmm, very strange then…
I’ve just made the master branch (which is 2.4.0 and a couple of tiny changes) build with 2022, and didn’t have any difficulty. You can see the full change I did at chore: build with vs2022 · CasparCG/server@119297c · GitHub
Based on your screenshot it is complaining that the patch there doesnt apply to the version of cef being built, so it is failing. So maybe it will work fine without the patch?
That modification builds using both msbuild and VS2022. Thanks.
Edit. Although VS do not build in debug if msbuild has not been run first. I think it is related to zlibstatic.lib being zlibstaticd.lib in debug. And VS fails this for some reason.