Hey there, I’m trying to get a new 4.27.2 Engine repo compiling from source, but get errors on build. I’ve followed the setup instructions here and here multiple times to no avail.
I’ve tried generating project files and compiling on Visual Studio 2019 and Visual Studio 2022, with the same result. The following logs are from VS2019.
I get the following errors building Development Editor for Win64:
48>------ Build started: Project: CrashReportClient, Configuration: Development_Program x64 ------
33>Parsing headers for UnrealFileServer
33> Running UnrealHeaderTool UnrealFileServer "D:\Repos\Proto_Unreal_4_27\Engine\Intermediate\Build\Win64\UnrealFileServer\Development\UnrealFileServer.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="D:\Repos\Proto_Unreal_4_27\Engine\Programs\UnrealBuildTool\Log_UHT.txt"
33>LogInit: Display: Loading text-based GConfig....
33>Reflection code generated for UnrealFileServer in 7.2345858 seconds
33>Building UnrealFileServer...
33>Using Visual Studio 2019 14.29.30148 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133) and Windows 10.0.22000.0 SDK (C:\Program Files (x86)\Windows Kits\10).
33>Building 293 actions with 16 processes...
33> [1/293] Module.SlateNullRenderer.cpp
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/SlateNullRenderer/Private/SlateNullRendererModule.cpp(12): fatal error C1083: Cannot open include file: 'TextureResource.h': No such file or directory
33> [2/293] UnrealFileServer.cpp
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\NetworkFileSystem\Public\INetworkFileSystemModule.h(7): fatal error C1083: Cannot open include file: 'ShaderCompiler.h': No such file or directory
33> [3/293] Module.PhysicsCore.cpp
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(92): error C2653: 'FChaosEngineInterface': is not a class or namespace name
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(92): error C3861: 'ReleaseMaterial': identifier not found
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(103): error C2027: use of undefined type 'FPhysicsMaterialHandle_PhysX'
33> D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\PhysicsCore\Public\PhysicsInterfaceDeclaresCore.h(188): note: see declaration of 'FPhysicsMaterialHandle_PhysX'
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(103): error C2232: '->TUniquePtr<FPhysicsMaterialHandle,TDefaultDelete<T>>::IsValid': left operand has 'class' type, use '.'
33> with
33> [
33> T=FPhysicsMaterialHandle
33> ]
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(105): error C2653: 'FChaosEngineInterface': is not a class or namespace name
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(105): error C3861: 'CreateMaterial': identifier not found
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(105): error C2582: 'operator =' function is unavailable in 'FPhysicsMaterialHandle_PhysX'
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(106): error C2027: use of undefined type 'FPhysicsMaterialHandle_PhysX'
33> D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\PhysicsCore\Public\PhysicsInterfaceDeclaresCore.h(188): note: see declaration of 'FPhysicsMaterialHandle_PhysX'
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(106): error C2232: '->TUniquePtr<FPhysicsMaterialHandle,TDefaultDelete<T>>::IsValid': left operand has 'class' type, use '.'
33> with
33> [
33> T=FPhysicsMaterialHandle
33> ]
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(108): error C2653: 'FChaosEngineInterface': is not a class or namespace name
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(108): error C3861: 'SetUserData': identifier not found
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(109): error C2653: 'FChaosEngineInterface': is not a class or namespace name
33>D:/Repos/Proto_Unreal_4_27/Engine/Source/Runtime/PhysicsCore/Private/PhysicalMaterial.cpp(109): error C3861: 'UpdateMaterial': identifier not found
33> [4/293] PCH.Engine.cpp
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Components/ActorComponent.h(375): error C3668: 'UActorComponent::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/Level.h(757): error C3668: 'ULevel::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(2912): error C3668: 'AActor::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Public\Subsystems/WorldSubsystem.h(24): error C3668: 'UWorldSubsystem::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2065: 'FAsyncPreRegisterDDCRequest': undeclared identifier
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2923: 'TSharedPtr': 'FAsyncPreRegisterDDCRequest' is not a valid template type argument for parameter 'ObjectType'
33> D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): note: see declaration of 'FAsyncPreRegisterDDCRequest'
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2976: 'TSharedPtr': too few template arguments
33> D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Core\Public\Templates/SharedPointer.h(560): note: see declaration of 'TSharedPtr'
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C3203: 'TSharedPtr': unspecialized class template can't be used as a template argument for template parameter 'InElementType', expected a real type
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(2564): error C3668: 'UWorld::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Public\Physics/PhysicsInterfacePhysX.h(173): error C2504: 'FChaosEngineInterface': base class undefined
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Curves/CurveBase.h(82): error C3668: 'UCurveBase::PostEditChangeProperty': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Sound/SoundEffectSource.h(62): error C3668: 'USoundEffectSourcePresetChain::PostEditChangeProperty': method with override specifier 'override' did not override any base class methods
33> [5/293] SharedPCH.Engine.ShadowErrors.cpp
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Components/ActorComponent.h(375): error C3668: 'UActorComponent::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/Level.h(757): error C3668: 'ULevel::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(2912): error C3668: 'AActor::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Public\Subsystems/WorldSubsystem.h(24): error C3668: 'UWorldSubsystem::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2065: 'FAsyncPreRegisterDDCRequest': undeclared identifier
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2923: 'TSharedPtr': 'FAsyncPreRegisterDDCRequest' is not a valid template type argument for parameter 'ObjectType'
33> D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): note: see declaration of 'FAsyncPreRegisterDDCRequest'
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2976: 'TSharedPtr': too few template arguments
33> D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Core\Public\Templates/SharedPointer.h(560): note: see declaration of 'TSharedPtr'
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C3203: 'TSharedPtr': unspecialized class template can't be used as a template argument for template parameter 'InElementType', expected a real type
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/World.h(2564): error C3668: 'UWorld::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Public\Physics/PhysicsInterfacePhysX.h(173): error C2504: 'FChaosEngineInterface': base class undefined
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Curves/CurveBase.h(82): error C3668: 'UCurveBase::PostEditChangeProperty': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Sound/SoundEffectSource.h(62): error C3668: 'USoundEffectSourcePresetChain::PostEditChangeProperty': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Animation/AnimNotifies/AnimNotify.h(94): error C3668: 'UAnimNotify::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Animation/AnimInstance.h(1285): error C3668: 'UAnimInstance::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/NetDriver.h(1496): error C3668: 'UNetDriver::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/NetConnection.h(814): error C3668: 'UNetConnection::GetWorld': method with override specifier 'override' did not override any base class methods
33>D:\Repos\Proto_Unreal_4_27\Engine\Source\Runtime\Engine\Classes\Engine/LocalPlayer.h(277): error C3668: 'ULocalPlayer::GetWorld': method with override specifier 'override' did not override any base class methods
33>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(45,5): error MSB3073: The command "..\..\Build\BatchFiles\Build.bat UnrealFileServer Win64 Development -WaitMutex -FromMsBuild -2019" exited with code 6.
33>Done building project "UnrealFileServer.vcxproj" -- FAILED.
and later in the log:
43>Building UE4Editor and ShaderCompileWorker...
43>Using Visual Studio 2019 14.29.30148 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133) and Windows 10.0.22000.0 SDK (C:\Program Files (x86)\Windows Kits\10).
43>Building 4 actions with 16 processes...
43> [1/4] Module.HoloLensTargetPlatform.cpp
43>C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt\wrl/event.h(211): error C4668: '_NOEXCEPT_TYPES_SUPPORTED' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
43>C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt\wrl/event.h(211): error C4668: '__cpp_noexcept_function_type' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
43>C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt\wrl/event.h(371): error C4668: '_NOEXCEPT_TYPES_SUPPORTED' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
43>C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt\wrl/event.h(371): error C4668: '__cpp_noexcept_function_type' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
43>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(45,5): error MSB3073: The command "..\..\Build\BatchFiles\Build.bat -Target="UE4Editor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild -2019" exited with code 6.
43>Done building project "UE4.vcxproj" -- FAILED.
Any idea how to resolve these missing files errors?