# Building UE 4.27 fails due to missing Physx headers on Microsoft Windows

**URL:** <https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568>\
**Category:** World Creation\
**Tags:** windows, physx, unreal-engine, GitHub, Physics, Visual-Studio, CPP, question\
**Created:** [June 8, 2021, 4:56pm UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568 "2021-06-08T16:56:58Z")\
**Posts on this page:** 6\
**Page:** 3

<div class="post-metadata">

**Author:** ![monstercoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@monstercoo](https://forums.unrealengine.com/u/monstercoo)\
**Post date:** [March 25, 2022, 1:49am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/44 "2022-03-25T01:49:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![intoxicat3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@intoxicat3](https://forums.unrealengine.com/u/intoxicat3)\
**Post date:** [April 4, 2022, 12:47pm UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/45 "2022-04-04T12:47:07Z")

</div>

Same here. Tried different WSDK without luck.

Anyone else was able to resolve this issue?

---

<div class="post-metadata">

**Author:** ![irvnriir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/irvnriir/32/474441_2.png) [@irvnriir](https://forums.unrealengine.com/u/irvnriir)\
**Post date:** [May 7, 2022, 1:46am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/47 "2022-05-07T01:46:55Z")

</div>

i’ve set `<<UE>>\Engine\Source\Programs\UnrealFileServer\UnrealFileServer.Target.cs\`

```auto
bCompileAgainstEngine = true;

```

and it kind of helped, but i still get certain errors

```auto
<<..>>
         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]

```

---

<div class="post-metadata">

**Author:** ![monstercoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@monstercoo](https://forums.unrealengine.com/u/monstercoo)\
**Post date:** [May 8, 2022, 8:19am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/48 "2022-05-08T08:19:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MinhLe\_PearlAbys1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MinhLe\_PearlAbys1](https://forums.unrealengine.com/u/MinhLe_PearlAbys1)\
**Post date:** [March 10, 2023, 1:26am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/49 "2023-03-10T01:26:31Z")

</div>

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

 ![setup_p4C7wnqMG3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/8/898e10fd14ee1098ff2093a72825c479b7a4b372.png)

 ![setup_6QpGG8aSvh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/0/8406a34b787bfa5a0632a57f8d6999ac491ea164.png)  
 ![setup_yM7kb82DhL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/e/38e8f06fcefd33e72bfd3086a3e3ea35d61f9436.png)

---

<div class="post-metadata">

**Author:** ![FonseCode1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FonseCode1](https://forums.unrealengine.com/u/FonseCode1)\
**Post date:** [April 4, 2023, 5:33pm UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/50 "2023-04-04T17:33:12Z")

</div>

I follow the instructions of [UE 4\_27 build failed](https://forums.unrealengine.com/t/ue-4-27-build-failed/632549) and every works fine!!!

[Previous page](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568.md?page=2)
