Question about PhysX Linking

Plague

25-11-2007 03:36:53

My linker hates me...

I'm trying to compile an Ogre program, and I've noticed that I need to include some PhysX libraries that I don't seem to have.


PhysicsTest.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall NxOgre::PhysXDriverParams::~PhysXDriverParams(void)" (__imp_??1PhysXDriverParams@NxOgre@@QAE@XZ)
PhysicsTest.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall NxOgre::PhysXDriverParams::PhysXDriverParams(void)" (__imp_??0PhysXDriverParams@NxOgre@@QAE@XZ)
PhysicsTest.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall NxOgre::World::World(class NxOgre::PhysXDriverParams)" (__imp_??0World@NxOgre@@QAE@VPhysXDriverParams@1@@Z)


I've got paths to

$(PHYSX_DIR)\SDKs\Cooking\lib\win32\Release
$(PHYSX_DIR)\SDKs\Physics\lib\win32\Release
$(PHYSX_DIR)\SDKs\NxCharacter\lib\win32\Release

But I've noticed that none of these directories exist... so here's my stupid question: Do I need to compile the PhysX SDK in such a way that creates these libraries, or should I try and find these libraries elsewhere? I know you don't generally compile SDKs, but there's always an exception, so I'm asking :P

Any comments would be helpful.

EDIT: I only seem to have a measley four libraries in my $(PHYSX_DIR)\SDKs\lib\win32 directory: NXCharacter.lib, NXCooking.lib, NXExtensions.lib, and PhysXLoader.lib. If I should have more, please tell me so I can go find them. (Directions are always appreciated :P)

betajaen

25-11-2007 10:36:52

Those are the four ones you need, and no you don't compile the PhysX SDK. Did you link to the NxOgre[_d].lib as well?

If your not totally sure what to do read the "Writing your own" chapter in my short guide.

NickM

25-11-2007 10:39:06

EDIT: betajaen beat me to the reply.

Plague

25-11-2007 15:38:30

Well lookit that.... I had the paths set up but never told the linker which libraries to use.... :oops: Thanks both of you :D