Can't compile PhysX.sln (3.4)

Hi everyone ! I just downloaded PhysX 3.4 on GitHub, but it seems like I can’t compile PhysX.sln. I get a bunch of errors like this :

C1083 Cannot open include file: ‘stddef.h’: No such file or directory (compiling source file …\SimulationController\src\ScTriggerInteraction.cpp)

I don’t see why it doesn’t compile… Any idea ? I’m using Visual Studio 2017 by the way.

Thanks !

I finally got rid of these errors by changing the Windows SDK Version (in each PhysX.sln’s project : Properties > General > Windows SDK Version). But now I have this error :

C1189 #error: Visual studio 2017 prior to 15.5.1 is not supported because of a compiler bug.

Apparently NVIDIA is aware of this error, so I guess we just can’t compile PhysX.sln on Visual Studio 15.5.1 and below for the moment…

Hi,

Please check if you have the “Desktop development with C++” component installed for your Visual Studio 2017 and it includes the Windows 10 SDK component too.

That error appears if you are using version 15.5.1 or earlier. Please upgrade to the latest version of 15.5.7.

I updated to 15.6 and it worked, thanks !

Hi,I just downloaded PhysX 3.4 on GitHub, but it also seems like I can’t compile PhysX.sln.Such like this:

Severity	Code	Description	Project	File	Line	Suppression State
Error	C1083	Cannot open include file: 'stddef.h': No such file or directory	PsFastXml	c:\users\littlezhang\desktop\physx\physx-3.4-master\physx-3.4-master\pxshared\include\foundation\pxpreprocessor.h	33	
Error	C1083	Cannot open include file: 'stddef.h': No such file or directory (compiling source file ..\..\foundation\src\windows\PsWindowsAtomic.cpp)	PxFoundation	c:\users\littlezhang\desktop\physx\physx-3.4-master\physx-3.4-master\pxshared\include\foundation\pxpreprocessor.h	33	
Error	C1083	Cannot open include file: 'stddef.h': No such file or directory (compiling source file ..\..\foundation\src\windows\PsWindowsCpu.cpp)	PxFoundation	c:\users\littlezhang\desktop\physx\physx-3.4-master\physx-3.4-master\pxshared\include\foundation\pxpreprocessor.h	33

I use Visual Studio 2017 and the version is 15.8.8.No matter how I set up windows sdk version(such as 10.0.16299.0、10.0.17134.0 or 8.1), it doesn’t work at all.Hope to reply!Thanks.

I solved this problem according this site:https://stackoverflow.com/questions/42777424/visual-studio-2017-errors-on-standard-headers/42778079.
But now I get another error:

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2220	warning treated as error - no 'object' file generated (compiling source file ..\..\LowLevelAABB\src\BpBroadPhaseMBP.cpp)	LowLevelAABB	c:\program files (x86)\windows kits0\include0.0.10240.0\ucrt\malloc.h	160	
Error	C2220	warning treated as error - no 'object' file generated (compiling source file ..\..\SimulationController\src\particles\ScParticlePacketShape.cpp)	SimulationController	c:\program files (x86)\windows kits0\include0.0.10240.0\ucrt\malloc.h	160	
Error	C2220	warning treated as error - no 'object' file generated (compiling source file ..\..\foundation\src\windows\PsWindowsAtomic.cpp)	PxFoundation	c:\program files (x86)\windows kits0\include0.0.10240.0\ucrt\malloc.h	160	
Error	C2220	warning treated as error - no 'object' file generated (compiling source file ..\..\LowLevelAABB\src\BpBroadPhase.cpp)	LowLevelAABB	c:\program files (x86)\windows kits0\include0.0.10240.0\ucrt\malloc.h	160	
Error	C2220	warning treated as error - no 'object' file generated (compiling source file ..\..\SceneQuery\src\SqAABBPruner.cpp)	SceneQuery	c:\program files (x86)\windows kits0\include0.0.10240.0\ucrt\malloc.h	160	
Error	C2220	warning treated as error - no 'object' file generated (compiling source file ..\..\foundation\src\windows\PsWindowsFPU.cpp)	PxFoundation	c:\program files (x86)\windows kits0\include0.0.10240.0\ucrt\malloc.h	160	
Error	C2220	warning treated as error - no 'object' file generated (compiling source file ..\..\foundation\src\windows\PsWindowsCpu.cpp)	PxFoundation	c:\program files (x86)\windows kits0\include0.0.10240.0\ucrt\malloc.h	160	
Error	C2220	warning treated as error - no 'object' file generated	PsFastXml	c:\program files (x86)\windows kits0\include0.0.10240.0\ucrt\malloc.h	160

Hi, do you have “Desktop development with C++” component installed too?
Which solution file was being opened?