bsf icon indicating copy to clipboard operation
bsf copied to clipboard

Clearer steps on how to compile PhysX library for x86

Open xKamuna opened this issue 7 years ago • 3 comments

I have successfully compiled most of the dependencies for x86. However, PhysX has given me a number of troubles (at least for Debug builds), as follows: 0. Compiling PhysX 3.3 in Visual Studio 2017 gives a few warnings/errors. If you turn off warnings as errors and fix the one error by changing a certain variable to const, then...

  1. CHECKED configuration acts as a release build, using the Release Runtime (/MT or /MD). Additionally, Extensions uses /MT or /MTd. DEBUG configuration uses the wrong naming convention, and attempting to change it to CHECKED has strange results.
  2. OptimizedDebug does not exist. I changed Release to use Debug configuration, which gave errors with allocation.
  3. The Debug DLLs are dependent on the Release or OptimizedDebug build, as those DLLs are searched for for whatever reason.
  4. After attempting to fix everything and getting it to build, I get a "Foundation: Invalid registration detected", probably something to do with somehow mixing Debug and Release.

Everything else seems to be working. I would appreciate if the PhysX instructions were updated with what should be changed from the default configuration. Thank you for all your hard work!

xKamuna avatar Jan 04 '19 18:01 xKamuna

I'll update it if I get a moment to try compiling PhysX myself and see what the issues are.

BearishSun avatar Jan 05 '19 11:01 BearishSun

Cool, thanks! In the meanwhile, is there any way to disable bsfPhysX? I don't need physics at the moment.

xKamuna avatar Jan 05 '19 20:01 xKamuna

There is no way to disable it at the moment.

BearishSun avatar Jan 06 '19 09:01 BearishSun