I’m having this issue on 4.27.2, with:
- Visual Studio 2019 v16.5
- Windows SDK 10.0.18362 (also retargeted to 10.0.22000)
- Nuget Package Manager & Nuget targets and build tasks
I’m having this issue on 4.27.2, with:
Same here. Tried different WSDK without luck.
Anyone else was able to resolve this issue?
i’ve set <<UE>>\Engine\Source\Programs\UnrealFileServer\UnrealFileServer.Target.cs\
bCompileAgainstEngine = true;
and it kind of helped, but i still get certain errors
<<..>>
Building UnrealFileServer...
Using Visual Studio 2019 14.29.30143 toolchain (<<VS>>\VC\Tools\MSVC\14.29.30133) and Windows 10.0.20348.0 SDK (D:\Windows Kits\10).
<<..>>
[17/659] PCH.Engine.cpp
53><<UE>>\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2065: 'FAsyncPreRegisterDDCRequest': undeclared identifier [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
53><<UE>>\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2923: 'TSharedPtr': 'FAsyncPreRegisterDDCRequest' is not a valid template type argument for parameter 'ObjectType' [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
<<UE>>\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): note: see declaration of 'FAsyncPreRegisterDDCRequest'
53><<UE>>\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2976: 'TSharedPtr': too few template arguments [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
<<UE>>\Engine\Source\Runtime\Core\Public\Templates/SharedPointer.h(560): note: see declaration of 'TSharedPtr'
53><<UE>>\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 [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
53><<UE>>\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 [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
53><<UE>>\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 [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
<<..>>
[21/659] SharedPCH.Engine.ShadowErrors.cpp
53><<UE>>\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2065: 'FAsyncPreRegisterDDCRequest': undeclared identifier [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
53><<UE>>\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2923: 'TSharedPtr': 'FAsyncPreRegisterDDCRequest' is not a valid template type argument for parameter 'ObjectType' [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
<<UE>>\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): note: see declaration of 'FAsyncPreRegisterDDCRequest'
53><<UE>>\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2976: 'TSharedPtr': too few template arguments [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
<<UE>>\Engine\Source\Runtime\Core\Public\Templates/SharedPointer.h(560): note: see declaration of 'TSharedPtr'
53><<UE>>\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 [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
53><<UE>>\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 [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
53><<UE>>\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 [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
<<..>>
[180/659] UnrealFileServer.cpp
53><<UE>>\Engine\Source\Runtime\Launch\Public\LaunchEngineLoop.h(8): fatal error C1083: Cannot open include file: 'UnrealEngine.h': No such file or directory [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
<<..>>
53><<VS>>\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(45,5): error MSB3073: The command "..\..\Build\BatchFiles\Build.bat UnrealFileServer Win64 Development -WaitMutex -FromMsBuild" exited with code 6. [<<UE>>\Engine\Intermediate\ProjectFiles\UnrealFileServer.vcxproj]
like some of the other posts suggested, I removed the HeadlessChaos, UnrealFileServer, etc from the solution and never looked back. It’s very unlikely that you need these projects.
I recently grabbed the UE 4.27 Plus branch from github and ran into all of these errors while using Visual Studio 2019, but someone suggested to try VS 2022, so I did and that fixed everything.
Make sure to install with the following modules
I follow the instructions of UE 4_27 build failed and every works fine!!!