Unreal Engine 5.6.1 During the initial build of the engine,UbaSessionServer.cpp(218,22): Error C2509: 'CreateFileW': Member function not declared in 'uba:SessionServer'.

I got it pure and built it, but there are a lot of UBA errors

Hi,

Normally, you would not build UBA. You should use the prebuilt binaries available under Engine/Binaries/Win64/UnrealBuildAccelerator/. In some cases, you may need to pull the latest UBA binaries from UE5/main since they are detouring OS calls and those changes sometimes after a Windows update or a Toolchain update. Under normal UE usage, you would not need to build them yourself. Let me know if you need to build them for some purposes.

Instead, I’m assuming that you got the UE code, then generated the VS solution and now you try to build the entire solution. That’s a common misconception and a waste of CPU/disk space. The solution is there to browse all UE projects, but you should only build the project(s) you need.

So you should start by building the UE5 project. This will build the Editor and the important tools for you. Just build that project first. If you need other projects later (like UnrealInsights), selectively build them. In VS, just rigth-click on the UE5 project and build it.

Regards,

Patrick