NVIDIAGameWorks / PhysX

NVIDIA PhysX SDK
Other
3.17k stars 807 forks source link

Building for Visual Studio 2022? #522

Open nothke opened 2 years ago

nothke commented 2 years ago

Attempting to configure with 2019 option reports missing VS 2019. I'm looking at cmake files but it's utterly confusing. Anyone has any idea how to add a 2022 build?

I can't believe that I just updated to 2022 a couple of days ago to find out you can only build PhysX up to 2019 :D I don't want to reinstall 2019 just for this.

Zeblote commented 2 years ago

Adding support for VS 2022 yourself is quite easy. I have done so here. https://github.com/Zeblote/PhysX/commit/00180480a25c8ac6172d3703a4939af8dc06812b

nothke commented 2 years ago

Ooh, that's great! Thanks a lot!

youss2017 commented 2 years ago

use this branch for vs 2022 git clone -b brickadia-4.1.2 https://github.com/Zeblote/PhysX

Zeblote commented 2 years ago

Worth noting that my branch is specialized for brickadia, it might not be ideal for all uses cases, for example shared shapes are broken.

lotusblue963 commented 2 years ago

I tried using it but it's still not building it

slackchen commented 2 years ago

I've do it for myself too: https://github.com/NVIDIAGameWorks/PhysX/pull/577 lol~

Pacheco95 commented 2 years ago

@Zeblote thaks. It works perfectly for me. https://github.com/NVIDIAGameWorks/PhysX/issues/522#issuecomment-1017127872