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…
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.
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.