Spent the entire weekend trying to get a working build of the UE5.1 Caustics branch.
I solved the first issue with Setup.bat and posted the answer here
I also followed the setup steps for Visual Studio (2022 Community) exactly as described in the documentation here
These are just the last few lines of my Output window.
8>[5682/5683] WriteMetadata UnrealEditor.version cancelled
8>[5683/5683] WriteMetadata UnrealEditor.target cancelled
8>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “…..\Build\BatchFiles\Build.bat -Target=“UnrealEditor Win64 Development” -Target=“ShaderCompileWorker Win64 Development -Quiet” -WaitMutex -FromMsBuild” exited with code 6.
8>Done building project “UE5.vcxproj” – FAILED.
========== Build: 7 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build started at 11:14 AM and took 01:52:48.300 hours ==========
When trying to launch any of the Sample projects get a Fatal error popup stating
"Unable to read module manifest from…UnrealEditor.modules’
I even tried a 3rd time uninstalling VS 2022 and using VS 2019 instead.
Mostly worked with 2 caveats.
The Setup.bat issue mentioned above and also needed a more recent dotnet SDK.
After compiling seached Output for errors and came up with 1>Module.D3D12RHI.4_of_4.cpp.obj : error LNK2019: unresolved external symbol NvAPI_D3D12_GetRaytracingCaps referenced in function “public: virtual void __cdecl FD3D12DynamicRHI::Init(void)” (?Init@FD3D12DynamicRHI@@UEAAXXZ) 1>…\Binaries\Win64\UnrealEditor-D3D12RHI.dll : fatal error LNK1120: 1 unresolved externals
I think perhaps the issue may be that the Commit.gitdeps.xml file for the caustics branch needs updating.
Did as recommended. Plain NvRTX tree compiles without issue.
Compiling NvRTX Caustics branch compiles with errors. Of course I also first copied the Commit.deps.xml file from the NvRTX main branch.
This is the fourth time.
I did notice when downloading the .zip for caustics Bitdefender notices and blocks the following
\UnrealEngine-NvRTX_Caustics-5.1.zip tried to load a malicious resource detected as Amsi.Edge.22.F9CBBDCD and was blocked. Your device is safe.
Guessing Bitdefender is being over zealous? But not sure if something was blocked that would cause a compile issue.
One error noticed when compiling was a link error relating to OpenColorIO.
These are the last few lines of my compile. Would it be possible to confirm the latest caustics branch compiles without error?
Not sure why the main NvRTX branch compiles fine but caustics doesn’t.