GPT가 알려준 아래 코드를 우선 실행해본다.
SDK 빌드하기
아, build부터가 벽이었다. 아래 docs를 보면 CMake를 통해 결과 빌드 구성 파일을 생성할 수 있다.
빌드는 Visual Studio를 설치할 때 함께 설치되는 ‘x64 Native Tools Command Prompt for VS 2022’ 바로가기 파일에서 진행할 수 있다.
-
x64 Native Tools Command Prompt for VS 2022 실행
-
physX 디렉터리로 이동
-
generate_projects.bat 실행
이 동작을 통해 physX SDK 솔루션 파일과 프로젝트 파일들이 만들어진다. CMake를 수행하는 것이리라.
-
preset 입력 (VC 16은 VS2019, VC17은 VS2022)
-
완료

정상적으로 완료되면 bin 폴더와 함께 bin/win.x86_64.vc143.mt/ 하위로 4개의 폴더(checked, debug, profile, release)가 생성 된다. 각 폴더에 대한 자세한 내용은 다음의 링크를 참고했다.
https://nvidia-omniverse.github.io/PhysX/physx/5.5.1/docs/BuildingWithPhysX.html#build-configurations
- the debug build can be useful for error analysis, but contains asserts used for SDK development which some customers may find too intrusive for daily use. Optimizations are turned off for this configuration.
- the checked build contains code to detect invalid parameters, API race conditions, and other incorrect uses of the API which might otherwise cause mysterious crashes or failures in simulation.
- the profile build omits the checks, but still has PVD and memory instrumentation.
- the release build is built for minimal footprint and maximum speed. It omits most checks and instrumentation.
solution
아래 경로에 있다고 한다.