# 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:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Wayne\_Koorts](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wayne_koorts/32/713752_2.png) [@Wayne\_Koorts](https://forums.unrealengine.com/u/Wayne_Koorts)\
**Post date:** [September 19, 2021, 11:38pm UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/23 "2021-09-19T23:38:12Z")

</div>

This will be fixed in 4.27.1. If you pull in the latest changes from the “4.27” branch on upstream then you can get the fix now. I’ll be interested if you run into the problems I’m still having, which are to do with building UnrealFileServer.

---

<div class="post-metadata">

**Author:** ![pjenness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pjenness](https://forums.unrealengine.com/u/pjenness)\
**Post date:** [September 20, 2021, 2:17am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/24 "2021-09-20T02:17:54Z")

</div>

OK that worked Thanks!! Novice question… I rebuilt HeadlessChaos and it succeeded… is there a way to run a UE4 build but not go thru everything again…it just builds the ones that failed last time ? It took almost 2 hours to go thru 4000 modules 🙂

---

<div class="post-metadata">

**Author:** ![Wayne\_Koorts](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wayne_koorts/32/713752_2.png) [@Wayne\_Koorts](https://forums.unrealengine.com/u/Wayne_Koorts)\
**Post date:** [September 20, 2021, 2:35am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/25 "2021-09-20T02:35:57Z")

</div>

Cool! Do you get any errors when building the UnrealFileServer under the Programs folder? If you want to just build stuff that failed you can just do Build Solution and that should only run the stuff that failed (and its dependencies if any of those changed or failed).

---

<div class="post-metadata">

**Author:** ![pjenness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pjenness](https://forums.unrealengine.com/u/pjenness)\
**Post date:** [September 20, 2021, 6:11am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/26 "2021-09-20T06:11:32Z")

</div>

I do get a tonne of errors. (Havent had a successful build yet…)

 ![349019-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/6/866a57b630a0618ae7f3fde2c35b9fa8a4474286.jpeg)

---

<div class="post-metadata">

**Author:** ![Wayne\_Koorts](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wayne_koorts/32/713752_2.png) [@Wayne\_Koorts](https://forums.unrealengine.com/u/Wayne_Koorts)\
**Post date:** [September 20, 2021, 6:57am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/27 "2021-09-20T06:57:40Z")

</div>

Looks like what I’m getting too. I’m convinced there is a fundamental problem with 4.27 that Epic hasn’t picked up on yet. Unfortunately there doesn’t seem to be a way to engage them directly, so we’re pretty much screwed until we get lucky with an update on the 4.27 branch I think.

---

<div class="post-metadata">

**Author:** ![pjenness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pjenness](https://forums.unrealengine.com/u/pjenness)\
**Post date:** [September 20, 2021, 7:07am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/28 "2021-09-20T07:07:00Z")

</div>

HAve you had a look in here [Unreal Engine Issues and Bug Tracker (UE-124648)](https://issues.unrealengine.com/issue/UE-124648)  
Will have a try a bit later tonight

---

<div class="post-metadata">

**Author:** ![Wayne\_Koorts](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wayne_koorts/32/713752_2.png) [@Wayne\_Koorts](https://forums.unrealengine.com/u/Wayne_Koorts)\
**Post date:** [September 20, 2021, 7:09am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/29 "2021-09-20T07:09:21Z")

</div>

Well, yeah, of course excluding the troublesome project(s) gets around the issue, but it’s not a proper fix 🙂

---

<div class="post-metadata">

**Author:** ![pjenness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pjenness](https://forums.unrealengine.com/u/pjenness)\
**Post date:** [September 20, 2021, 7:19am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/30 "2021-09-20T07:19:29Z")

</div>

ha… it did compile and editor is starting up for first time…I dont know the ramifications of not having those particulse project modules though 🙂

---

<div class="post-metadata">

**Author:** ![Wayne\_Koorts](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wayne_koorts/32/713752_2.png) [@Wayne\_Koorts](https://forums.unrealengine.com/u/Wayne_Koorts)\
**Post date:** [September 20, 2021, 7:20am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/31 "2021-09-20T07:20:46Z")

</div>

The most important stuff is in the UE4 solution. Out of the Programs you can probably get away with just UnrealLightmass for the most part, so you’ll probably be fine. I’m just being pedantic about my project because it’s a hobby project and I want a pristine engine 🙂

---

<div class="post-metadata">

**Author:** ![pjenness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pjenness](https://forums.unrealengine.com/u/pjenness)\
**Post date:** [September 20, 2021, 9:40pm UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/32 "2021-09-20T21:40:42Z")

</div>

I still get tonnes of errors . Haven managed a clean build yet for days trying

```
38>V:\UnrealEngine\UE427\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
38>V:\UnrealEngine\UE427\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
38>V:\UnrealEngine\UE427\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
38>V:\UnrealEngine\UE427\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
38>V:\UnrealEngine\UE427\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2065: 'FAsyncPreRegisterDDCRequest': undeclared identifier
38>V:\UnrealEngine\UE427\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2923: 'TSharedPtr': 'FAsyncPreRegisterDDCRequest' is not a valid template type argument for parameter 'ObjectType'
38> V:\UnrealEngine\UE427\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): note: see declaration of 'FAsyncPreRegisterDDCRequest'
38>V:\UnrealEngine\UE427\Engine\Source\Runtime\Engine\Classes\Engine/World.h(1650): error C2976: 'TSharedPtr': too few template arguments
38> V:\UnrealEngine\UE427\Engine\Source\Runtime\Core\Public\Templates/SharedPointer.h(560): note: see declaration of 'TSharedPtr'

```

And so on. in Unreal File Server

---

<div class="post-metadata">

**Author:** ![renderlounge](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/renderlounge/32/485255_2.png) [@renderlounge](https://forums.unrealengine.com/u/renderlounge)\
**Post date:** [October 8, 2021, 7:38am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/33 "2021-10-08T07:38:58Z")

</div>

My UE5 source and UE4.27 source compiles perfectly without any errors  
But when i create my blueprint project and add c++ class and then copy the target file to make server file and do all other stuff to then build the Solution for Development Editor , i’m getting the same 48 or 49 list of errors and i don’t know what to do, i have built unreal 5 and 4.27 two times on two different PCs and nothing seems to work  
Followed all the instructions  
updated the visual studio 19  
installed nudget, windows sdk and everything else, nothing seems to work and its been a week  
**please help me!**

---

<div class="post-metadata">

**Author:** ![renderlounge](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/renderlounge/32/485255_2.png) [@renderlounge](https://forums.unrealengine.com/u/renderlounge)\
**Post date:** [October 8, 2021, 7:52am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/34 "2021-10-08T07:52:28Z")

</div>

![350073-errors.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/5/c95c7c0a09f2cd4ebb01165e2944eef65d1155d8.png)

My UE5 source and UE4.27 source compiles perfectly without any errors But when i create my blueprint project and add c++ class and then copy the target file to make server file and do all other stuff to then build the Solution for Development Editor , i’m getting the same 48 or 49 list of errors and i don’t know what to do, i have built unreal 5 and 4.27 two times on two different PCs and nothing seems to work Followed all the instructions updated the visual studio 19 installed nudget, windows sdk and everything else, nothing seems to work and its been a week please help me!

---

<div class="post-metadata">

**Author:** ![nagillusion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nagillusion](https://forums.unrealengine.com/u/nagillusion)\
**Post date:** [October 9, 2021, 1:35pm UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/35 "2021-10-09T13:35:05Z")

</div>

One thing is important, DO NOT click build in the toolbar directly. This way the compiler cannot locate some headers.  
I solved my problem by RIGHT CLICKING on the UE4(UE5) project and then clicking build option that pops up.  
(right, I am an idiot… I clicked the build button in the toolbar)

---

<div class="post-metadata">

**Author:** ![avdept](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@avdept](https://forums.unrealengine.com/u/avdept)\
**Post date:** [October 20, 2021, 7:54pm UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/36 "2021-10-20T19:54:51Z")

</div>

Didn’t work for me. I had already installed nuget package manager and rest of newly added dependencies(unreal installation…) but still having same issue. Although it compiled just fine on Mac OS

---

<div class="post-metadata">

**Author:** ![House\_zu\_Heltzer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/house_zu_heltzer/32/488662_2.png) [@House\_zu\_Heltzer](https://forums.unrealengine.com/u/House_zu_Heltzer)\
**Post date:** [November 5, 2021, 8:40pm UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/37 "2021-11-05T20:40:31Z")

</div>

there’s no difference between pressing build on the toolbar, and right clicking and pressing build on UE4/5 project. You just didn’t have your startup project set to UE4/5. Right click the UE4/5 project \> set as startup project

---

<div class="post-metadata">

**Author:** ![TheBareBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheBareBear](https://forums.unrealengine.com/u/TheBareBear)\
**Post date:** [November 8, 2021, 10:56pm UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/38 "2021-11-08T22:56:38Z")

</div>

Fixed this by making sure the 4.27 engine is NOT the startup project. You must make a valid UE4 project the startup project. The Engine does not build by itself with the deprecation of PhysX, it requires the Chaos Plugin, which it can get from a project.

---

<div class="post-metadata">

**Author:** ![MrBuilderMann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrBuilderMann](https://forums.unrealengine.com/u/MrBuilderMann)\
**Post date:** [November 24, 2021, 8:38am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/39 "2021-11-24T08:38:27Z")

</div>

Had a lot of trouble with this (literal days of compiling)… After solving the Nuget problems etc and installing a different SDK, it still didn’t work, getting the same errors as above^… I was using I think a ‘too modern’ sdk. not sure…

Make sure to uninstall old SDKs and that you are using an appropriate windows 10 sdk. Then, in solution explorer in visual studio rightclick and select retarget solution, this should show you’ve selected the right sdk from the visual studio installer. Good luck! I Hope I save you some pain :(.

---

<div class="post-metadata">

**Author:** ![MrBuilderMann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrBuilderMann](https://forums.unrealengine.com/u/MrBuilderMann)\
**Post date:** [November 24, 2021, 8:39am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/40 "2021-11-24T08:39:45Z")

</div>

Had a lot of trouble with this (literal days of compiling)… After solving the Nuget problems etc and installing a different SDK, it still didn’t work, getting the same errors as above^… I was using I think a ‘too modern’ sdk. not sure…

 ![352932-solution-for-me.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/d/d7d40b3886defaedfc830de000c6fd38b8a1fc2d.png)

Make sure to uninstall old SDKs and that you are using an appropriate windows 10 sdk. Then, in solution explorer in visual studio rightclick and select retarget solution, this should show you’ve selected the right sdk from the visual studio installer. Good luck! I Hope I save you some pain :(.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_93c56a14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_93c56a14](https://forums.unrealengine.com/u/anonymous_user_93c56a14)\
**Post date:** [February 23, 2022, 4:29am UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/42 "2022-02-23T04:29:19Z")

</div>

It’s not working.  
I use UE4.27 with VS 2019 16.11.3 and SDK 10.19041.0  
Installed both Nuget components.  
I also tried installing SDK 10.22000.0 but it didn’t work (i even created more problems when I reverted to 10.19041.0)  
The log is same as here: [Unreal Engine Issues and Bug Tracker (UE-124648)](https://issues.unrealengine.com/issue/UE-124648) but it’s marked as Duplicate without any solution. I’m currently not use UnrealFileServer but it’s a pain in the \*\*\* to see those errors. It compiled without any errors in 4.26 though  
Any news on this?

---

<div class="post-metadata">

**Author:** ![ErB1281](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ErB1281](https://forums.unrealengine.com/u/ErB1281)\
**Post date:** [March 22, 2022, 5:30pm UTC](https://forums.unrealengine.com/t/building-ue-4-27-fails-due-to-missing-physx-headers-on-microsoft-windows/484568/43 "2022-03-22T17:30:47Z")

</div>

UnrealFileServer depends on NetworkFileSystem which, in 4.27, now depends on Engine.

But UnrealFileServer.cs sets this:  
bCompileAgainstEngine = false;

Which causes the WITH\_ENGINE marco to evaluate to 0.

And that causes all the problems building the file server.

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

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