PhysX icon indicating copy to clipboard operation
PhysX copied to clipboard

Building for Visual Studio 2022?

Open nothke opened this issue 2 years ago • 7 comments

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.

nothke avatar Jan 19 '22 03:01 nothke

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

Zeblote avatar Jan 20 '22 05:01 Zeblote

Ooh, that's great! Thanks a lot!

nothke avatar Jan 20 '22 11:01 nothke

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

youss2017 avatar Apr 29 '22 16:04 youss2017

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

Zeblote avatar Apr 30 '22 13:04 Zeblote

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

lotusblue963 avatar May 17 '22 01:05 lotusblue963

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

slackchen avatar Jun 29 '22 09:06 slackchen

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

Pacheco95 avatar Oct 16 '22 18:10 Pacheco95