Hello,
I’m trying to build UE5 from the source I got from GitHub.
I followed the Setting Up Visual Studio and Downloading Unreal Engine Source Code pages from the documentation.
I get a ton of C1083 include errors whenever I try to build the UE5 project. The headers that are missing seem to be both from Windows SDK and Third Party libs. I think I have all the VS2022 components required so it doesn’t make sense that those includes can’t be found.
I don’t have any error when building C++ projects created from an UE5 version I install from the Epic Launcher, this is only when building from the sources.
Also something weird I noticed is if I pick one .cpp that I saw had an include error in the error window and build it alone (Ctrl+F7), there is no error and that file builds fine. It’s only when I compile the UE5 project that I get those errors.
I’ve tried with and without unity builds, but I have similar errors in both cases. Below is some error log from VS2022
With Unity build
11>------ Build started: Project: UE5, Configuration: Development_Editor x64 ------
11>Using bundled DotNet SDK version: 6.0.302
11>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -Target="UnrealEditor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild
11>Log file: C:\UnrealEngine\UnrealEngine-5.3\Engine\Programs\UnrealBuildTool\Log.txt
11>Invalidating makefile for UnrealEditor (working set of source files changed)
11>Invalidating makefile for ShaderCompileWorker (working set of source files changed)
11>Building UnrealEditor and ShaderCompileWorker...
11>Using Visual Studio 2022 14.36.32545 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
11>Determining max actions to execute in parallel (10 physical cores, 20 logical cores)
11> Executing up to 10 processes, one per physical core
11>Distributing 4203 actions to SN-DBS
11>[1/4203] Compile [x64] MiMalloc.c
11>[2/4203] Compile [x64] Module.Core.3.cpp
11>[3/4203] Compile [x64] Module.Core.4.cpp
11>[4/4203] Compile [x64] Module.Core.5.cpp
11>C:\UnrealEngine\UnrealEngine-5.3\Engine\Source\Runtime\Core\Public\ProfilingDebugging\CountersTrace.h(13): fatal error C1083: Cannot open include file: 'atomic': No such file or directory
11>[5/4203] Compile [x64] Module.Core.6.cpp
11>C:\UnrealEngine\UnrealEngine-5.3\Engine\Source\Runtime\Core\Public\HAL\ExceptionHandling.h(22): fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory
11>[6/4203] Compile [x64] Module.Core.7.cpp
11>C:\UnrealEngine\UnrealEngine-5.3\Engine\Source\Runtime\Core\Private\Thirdparty\IncludeMiMalloc.h(24): fatal error C1083: Cannot open include file: 'mimalloc.h': No such file or directory
11>[7/4203] Compile [x64] Module.Core.8.cpp
11>C:\UnrealEngine\UnrealEngine-5.3\Engine\Source\Runtime\Core\Public\Internationalization\StringTableCore.h(24): fatal error C1083: Cannot open include file: 'atomic': No such file or directory
11>[8/4203] Compile [x64] Module.Core.9.cpp
11>C:\UnrealEngine\UnrealEngine-5.3\Engine\Source\Runtime\Core\Public\Memory\SharedBuffer.h(15): fatal error C1083: Cannot open include file: 'atomic': No such file or directory
11>[9/4203] Compile [x64] Module.ApplicationCore.cpp
11>C:\UnrealEngine\UnrealEngine-5.3\Engine\Source\Runtime\Core\Public\Windows\MinWindows.h(74): fatal error C1083: Cannot open include file: 'Windows.h': No such file or directory
Without Unity build
1>------ Build started: Project: UE5, Configuration: Development_Editor x64 ------
1>Using bundled DotNet SDK version: 6.0.302
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -Target="UnrealEditor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild
1>Log file: C:\UnrealEngine\UnrealEngine-5.3\Engine\Programs\UnrealBuildTool\Log.txt
1>Creating makefile for UnrealEditor (no existing makefile)
1>Parsing headers for UnrealEditor
1> Running Internal UnrealHeaderTool UnrealEditor C:\UnrealEngine\UnrealEngine-5.3\Engine\Intermediate\Build\Win64\UnrealEditorNU\Development\UnrealEditor.uhtmanifest -WarningsAsErrors
1>Total of 19910 written
1>Reflection code generated for UnrealEditor in 7.1935364 seconds
1>Creating makefile for ShaderCompileWorker (no existing makefile)
1>Parsing headers for ShaderCompileWorker
1> Running Internal UnrealHeaderTool ShaderCompileWorker C:\UnrealEngine\UnrealEngine-5.3\Engine\Intermediate\Build\Win64\ShaderCompileWorkerNU\Development\ShaderCompileWorker.uhtmanifest -WarningsAsErrors
1>Total of 209 written
1>Reflection code generated for ShaderCompileWorker in 0.1244189 seconds
1>Building UnrealEditor and ShaderCompileWorker...
1>Using Visual Studio 2022 14.36.32545 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>Determining max actions to execute in parallel (10 physical cores, 20 logical cores)
1> Executing up to 10 processes, one per physical core
1>Distributing 32163 actions to SN-DBS
1>[1/32163] Resource Default.rc2
1>[2/32163] Compile [x64] MiMalloc.c
1>[3/32163] Compile [x64] Cache.cpp
1>[4/32163] Compile [x64] BlockPool.cpp
1>C:\UnrealEngine\UnrealEngine-5.3\Engine\Source\Runtime\Core\Private\Thirdparty\IncludeMiMalloc.h(24): fatal error C1083: Cannot open include file: 'mimalloc.h': No such file or directory
1>[5/32163] Compile [x64] Channel.cpp
1>C:\UnrealEngine\UnrealEngine-5.3\Engine\Source\Runtime\Core\Public\Windows\WindowsPlatform.h(7): fatal error C1083: Cannot open include file: 'sal.h': No such file or directory
Any help would be much appreciated, thanks.