NVIDIAGameWorks / PhysX-3.4

NVIDIA PhysX SDK 3.4
https://www.nvidia.com/
2.35k stars 273 forks source link

Issues building on OSX64 #54

Closed JuicyPasta closed 6 years ago

JuicyPasta commented 6 years ago

I am linking files from PhysX_3.4/Lib/osx64 and PxShared/lib/osx64

I have also included .h files from the include directories in PhysX_3.4 and PxShared

Undefined symbols for architecture x86_64: "physx::PxDefaultErrorCallback::PxDefaultErrorCallback()", referenced from: GLOBALsub_I_Physics.cpp in Physics.cpp.o "physx::PxDefaultErrorCallback::~PxDefaultErrorCallback()", referenced from: GLOBALsub_I_Physics.cpp in Physics.cpp.o ld: symbol(s) not found for architecture x86_64

AlesBorovicka commented 6 years ago

Hi, The PxDefaultErrorCallback implementation is in extensions code, do you link against libPhysX3Extensions?

JuicyPasta commented 6 years ago

I was not doing the linking correctly in my CMakeLists.txt, everything is up and running now!