5.6 create c++ project failed

When I create a C+±based UE project using the Unreal Project Browser, I receive a compilation error prompt, and the log is as follows:

Running C:/Program Files/Epic Games/UE_5.6/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="C:/Users/AIVE-SJB-2025/Documents/project/ue5/cpp/test/test.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 8.0.300 win-x64
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="C:/Users/AIVE-SJB-2025/Documents/project/ue5/cpp/test/test.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\AIVE-SJB-2025\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for testEditor (no existing makefile)
@progress push 5%
Parsing headers for testEditor
  Running Internal UnrealHeaderTool C:\Users\AIVE-SJB-2025\Documents\project\ue5\cpp\test\test.uproject C:\Users\AIVE-SJB-2025\Documents\project\ue5\cpp\test\Intermediate\Build\Win64\testEditor\Development\testEditor.uhtmanifest -WarningsAsErrors -installed
Total of 0 written
Reflection code generated for testEditor in 2.3600822 seconds
@progress pop
Building testEditor...
Using Visual Studio 2022 14.38.33145 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Determining max actions to execute in parallel (8 physical cores, 16 logical cores)
  Executing up to 8 processes, one per physical core
  Requested 1.5 GB memory per action, 10.28 GB available: limiting max parallel actions to 6
Using Unreal Build Accelerator local executor to run 7 action(s)
  Storage capacity 40Gb
---- Starting trace: 250715_134553 ----
UbaServer - Listening on 0.0.0.0:1345
------ Building 7 action(s) started ------
[1/7] Resource Default.rc2
 Resource Default.rc2: Exited with error code -1 . The build will fail.
 Resource Default.rc2: WorkingDirectory C:\Program Files\Epic Games\UE_5.6\Engine\Source
 Resource Default.rc2: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe /nologo /D_WIN64 /l 0x409 /I "." /I "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/INCLUDE" /I "C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/ucrt" /I "C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/shared" /I "C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/um" /I "C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/winrt" /DIS_PROGRAM=0 /DUE_EDITOR=1 /DUSE_SHADER_COMPILER_WORKER_TRACE=0 /DUE_REFERENCE_COLLECTOR_REQUIRE_OBJECTPTR=1 /DWITH_VERSE_VM=0 /DENABLE_PGO_PROFILE=0 /DUSE_VORBIS_FOR_STREAMING=1 /DUSE_XMA2_FOR_STREAMING=1 /DWITH_DEV_AUTOMATION_TESTS=1 /DWITH_PERF_AUTOMATION_TESTS=1 /DWITH_LOW_LEVEL_TESTS=0 /DEXPLICIT_TESTS_TARGET=0 /DWITH_TESTS=1 /DUNICODE /D_UNICODE /D__UNREAL__ /DIS_MONOLITHIC=0 /DIS_MERGEDMODULES=0 /DWITH_ENGINE=1 /DWITH_UNREAL_DEVELOPER_TOOLS=1 /DWITH_UNREAL_TARGET_DEVELOPER_TOOLS=1 /DWITH_APPLICATION_CORE=1 /DWITH_COREUOBJECT=1 /DUE_TRACE_ENABLED=1 /DUE_TRACE_FORCE_ENABLED=0 /DWITH_VERSE=1 /DUE_USE_VERSE_PATHS=1 /DWITH_VERSE_BPVM=1 /DUSE_STATS_WITHOUT_ENGINE=0 /DWITH_PLUGIN_SUPPORT=0 /DWITH_ACCESSIBILITY=1 /DWITH_PERFCOUNTERS=1 /DWITH_FIXED_TIME_STEP_SUPPORT=1 /DUSE_LOGGING_IN_SHIPPING=0 /DALLOW_CONSOLE_IN_SHIPPING=0 /DALLOW_PROFILEGPU_IN_TEST=0 /DALLOW_PROFILEGPU_IN_SHIPPING=0 /DWITH_LOGGING_TO_MEMORY=0 /DUSE_CACHE_FREED_OS_ALLOCS=1 /DUSE_CHECKS_IN_SHIPPING=0 /DUSE_UTF8_TCHARS=0 /DUSE_ESTIMATED_UTCNOW=0 /DUE_ALLOW_EXEC_COMMANDS_IN_SHIPPING=1 /DWITH_EDITOR=1 /DWITH_IOSTORE_IN_EDITOR=1 /DWITH_CLIENT_CODE=1 /DWITH_SERVER_CODE=1 /DUE_FNAME_OUTLINE_NUMBER=0 /DWITH_PUSH_MODEL=1 /DWITH_CEF3=1 /DWITH_LIVE_CODING=1 /DWITH_CPP_MODULES=0 /DWITH_CPP_COROUTINES=0 /DWITH_PROCESS_PRIORITY_CONTROL=0 /DUBT_MODULE_MANIFEST="UnrealEditor.modules" /DUBT_MODULE_MANIFEST_DEBUGGAME="UnrealEditor-Win64-DebugGame.modules" /DUBT_COMPILED_PLATFORM=Win64 /DUBT_COMPILED_TARGET=Editor /DUE_APP_NAME="UnrealEditor" /DUE_WARNINGS_AS_ERRORS=0 /DFORCE_ANSI_ALLOCATOR=0 /DUSE_MALLOC_BINNED2=1 /DUSE_MALLOC_BINNED3=0 /DNDIS_MINIPORT_MAJOR_VERSION=0 /DWIN32=1 /D_WIN32_WINNT=0x0601 /DWINVER=0x0601 /DPLATFORM_WINDOWS=1 /DPLATFORM_MICROSOFT=1 /DOVERRIDE_PLATFORM_HEADER_NAME=Windows /DRHI_RAYTRACING=1 /DWINDOWS_MAX_NUM_TLS_SLOTS=2048 /DWINDOWS_MAX_NUM_THREADS_WITH_TLS_SLOTS=512 /DNDEBUG=1 /DUE_BUILD_DEVELOPMENT=1 /DORIGINAL_FILE_NAME="UnrealEditor-test.dll" /DBUILD_ICON_FILE_NAME="\"..\\Build\\Windows\\Resources\\Default.ico\"" /DPROJECT_COPYRIGHT_STRING="Fill out your copyright notice in the Description page of Project Settings." /DPROJECT_PRODUCT_IDENTIFIER=test /fo "C:/Users/AIVE-SJB-2025/Documents/project/ue5/cpp/test/Intermediate/Build/Win64/x64/UnrealEditor/Development/test/Default.rc2.res" "../Build/Windows/Resources/Default.rc2"
 Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: Exited with error code -1 . The build will fail.
 Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: WorkingDirectory C:\Program Files\Epic Games\UE_5.6\Engine\Source
 Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe @"C:/Users/AIVE-SJB-2025/Documents/project/ue5/cpp/test/Intermediate/Build/Win64/x64/testEditor/Development/UnrealEd/SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.h.obj.rsp" 
[2/7] Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp
Trace written to file C:/Users/AIVE-SJB-2025/AppData/Local/UnrealBuildTool/Log.uba with size 1.8kb
Total time in Unreal Build Accelerator local executor: 4.05 seconds

Result: Failed (OtherCompilationError)
Total execution time: 10.88 seconds

Has anyone encountered this problem before? What could be the reason? What should I do?

1 Like

I guess there was an missing Icon file which cannot be found or corrupt.

Hello there @HXhlx!

Checking through your log, the main errors to check out are:

Resource Default.rc2: Exited with error code -1 . The build will fail.
Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: Exited with error code -1 . The build will fail.

Both of these aim at an issue when UE is attempting to work with the C++ compiler, and failing to do so. This type of conflict is usually tied to missing or incompatible VS components.

So, the first step is to double-check your entire setup, and make sure you are using the correct version for all components in your UE/VS install. Please follow the doc below to do so:

After this process, the next step is to clear your project’s cache. In order to do this, close Unreal Engine, and delete the following folders from your project directory:

  • Binaries/
  • Intermediate/
  • Saved/

Finally, re-generate your Visual Studio project files, and build your solution again. Hope this helps!

I ensured that there was no issue with my environmental configuration operation, as the problem only occurred on one device, while everything was normal on the other device.
I checked the Windows Event Viewer and found the following error reported:

Error application name: cl.exe, version: 19.38.33145.0, timestamp: 0x1d3a5f80
Error module name: UbaDetours.dll, version: 5.7.0.0, timestamp: 0x51fa1f3d
Exception code: 0xc0000409
Error offset: 0x00000000000bf028
Error process ID: 0x5a68
Error application startup time: 0x01dbf5fa470fad79
Incorrect application path: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe
Error module path: C:\Program Files\Epic Games\UE_5.6\Engine\Binaries\DotNET\UnrealBuildTool\runtimes\win-x64\native\UbaDetours.dll
Report ID: eb29643b-a25f-4f5c-b5fd-91f2fe30f44e
Full name of incorrect package:
Incorrect package relative application ID:
Error application name: rc.exe, version: 10.0.22621.5040, timestamp: 0xdd7e7ca5
Error module name: UbaDetours.dll, version: 5.7.0.0, timestamp: 0x51fa1f3d
Exception code: 0xc0000409
Error offset: 0x00000000000bf028
Error process ID: 0x3fb0
Error application startup time: 0x01dbf5fa470fb176
Incorrect application path: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe
Error module path: C:\Program Files\Epic Games\UE_5.6\Engine\Binaries\DotNET\UnrealBuildTool\runtimes\win-x64\native\UbaDetours.dll
Report ID: c3fd90e2-749d-4996-bfe0-6ceca7425555
Full name of incorrect package:
Incorrect package relative application ID:

Considering that the uba module was introduced starting from UE5.4, I attempted to perform the same operation using UE5.6 and UE5.5, but encountered the same issue. However, when I created a C+±based project using UE5.3, everything functioned normally.