NVIDIA-Omniverse / PhysX

NVIDIA PhysX SDK
BSD 3-Clause "New" or "Revised" License
2.54k stars 361 forks source link

I can not link physx 5.3.0 library from vcpkg into my project #275

Closed ChivenZhang closed 3 months ago

ChivenZhang commented 5 months ago

Library and Version

PhysX v5.3.0 from vcpkg

Operating System

Windows 11, visual studio 2022, v142 toolset

Steps to Trigger Behavior

  1. install physx:x64-windows using vcpkg
  2. link 15 libs into project
  3. compile failed as lnk2019 error

Code Snippet to Reproduce Behavior

image

image

image

image

Expected Behavior

compile pass

Actual Behavior

compile failed

image

preist-nvidia commented 5 months ago

Hi @ChivenZhang - if you follow the instructions here, does it work? https://omni-101.github.io/omniverse/2023/07/07/omniverse-physx-vcpkg-port/

ChivenZhang commented 5 months ago

It does works, Thanks. But I wonder why I can not use physx in ordinary way, just install the library and link it. I remember it worked in version 3.8, but not in version 5.0+.

preist-nvidia commented 3 months ago

Hi @ChivenZhang - sorry we cannot help with linker/build config beyond pointing you to the unofficial vcpkg port docs.