Closed parsarahimi closed 5 years ago
What were the errors you were seeing?
Well after I enabled all prerequisites in the project settings, the only error is
Error C1083 Cannot open include file: 'malloc.h': No such file or directory LowLevelCloth pxpreprocessor.h Error C1083 Cannot open include file: 'stddef.h': No such file or directory LowLevelCloth pxpreprocessor.h Error E1696 cannot open source file "corecrt.h" PxFoundation Error E1696 cannot open source file "stddef.h" PxFoundation Error E1696 cannot open source file "stdlib.h" PxFoundation Error E1696 cannot open source file "string.h" PxFoundation Error E0254 type name is not allowed PxFoundation
There is around 450 errors most of which are stddef.h only 1 is malloc.h.
I managed to fix all the errors and build successfuly by repairing the visual studio to get a fresh version of all c++ redist... and then retargeted the solution to a newer windows SDK
There are still 2 linker warnings:
Warning LNK4098 defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library Warning LNK4199 /DELAYLOAD:nvcuda.dll ignored; no imports found from nvcuda.dll
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 C2220 warning treated as error - no 'object' file generated PsFastXml c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\malloc.h 160 Error C2220 warning treated as error - no 'object' file generated (compiling source file ..\..\LowLevelDynamics\src\DyArticulation.cpp) LowLevelDynamics c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\malloc.h 160 Error C2220 warning treated as error - no 'object' file generated (compiling source file ..\..\SceneQuery\src\SqAABBTree.cpp) SceneQuery c:\program files (x86)\windows kits\10\include\10.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 kits\10\include\10.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 kits\10\include\10.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 kits\10\include\10.0.10240.0\ucrt\malloc.h 160
Thanks a lot!
I can see that if failed because of warning treated as error, but what is the warning? I dont see it in the log, what VS version do you use?
Closing until more feedback.
I am using Visual Studio 2017 professional and I used the solution in \PhysX_3.4\Source\compiler\vc15win64 since that was the latest version (so it is logically the one that is most likely to be compiled successfully). Can you edit the description and make it easier for everyone to understand what they have to do to compile the SDK? The documentation in https://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/guide/Manual/Index.html is also very poorly written and vague...