Unreal Engine 5 Build Troubleshooting

Notes on problems encountered while building the ue5-main branch and their possible solutions; pieced together from various sources as well as trial and error. This document gathers these ideas in one place.

Updated almost 3 years ago Edit Page Revisions
  • Make sure you have the .NET Framework 6.0 SDK installed; looks like this version is being targeted.
  • Use Visual Studio 2022, since 6.0 can't be targeted in lower versions of VS.
  • Set your VisualStudio2022 format in the Engine\Saved\UnrealBuildTool\BuildConfiguration.xml
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
    <ProjectFileGenerator>
        <Format>VisualStudio2022</Format>
    </ProjectFileGenerator>
</Configuration>
  • Make sure the right Windows SDK version is installed; for UE5, this seems to be SDK 10.0.18362 at the time of this writing.
  • Also install NuGet and NuGet targets and build tasks.
  • Project file generator may complain about missing Engine\Restricted\NotForLicensees\Build. Just manually create this directory.

ResonanceAudio Hacks/Workarounds:

  • Delete the generated /Engine/Plugins/Runtime/ResonanceAudio/Source/ResonanceAudio/Private/ResonanceAudioLibrary/resonance_audio/out, since main files in there are still picked up even when git-ignored for some reason. Otherwise you get a main redefinition error from the cmake compiler test programs.