Skip to content

nyers33/minimal_glfw_physx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal GLFW PhysX Sample

Description

minimal PhysX sample with CMake, GLFW, GLEW and GLM - project dependencies are included

Build Instructions for VS2019

  1. build PhysX
  • set runtime library to multi-threaded dll
    • edit Location\PhysX\physx\buildtools\presets\publicvc16win64.xml
    • set CMake switch NV_USE_STATIC_WINCRT to False
  • run generate_projects.bat with preset 13 (build files in Location/PhysX/physx/compiler/vc16win64)
  • fix include for MSVC2019
    • edit Location/PhysX/physx/source/foundation/include/PsAllocator.h
    • remove .h extension from #include <typeinfo.h> (line 40)
  • build PhysXSDK.sln
    • MSBuild PhysXSDK.sln /property:Configuration=Debug
    • MSBuild PhysXSDK.sln /property:Configuration=Release
  1. set custom PhysX root in minimal_glfw_physx/src CMake file (line 53-54)
  2. generate minimal_glfw_physx project with CMake
  • set glm_DIR to your local glm
  • configure & generate
  1. build & run minimal_glfw_physx from VS2019
  • set MSVC Configuration Properties / Debugging / Environment - PATH=%PATH%;Location\PhysX\physx\bin\win.x86_64.vc142.md$(Configuration)
  • build & run - enjoy

References

About

minimal PhysX 4.x sample with CMake, GLFW, GLEW and GLM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published