IrrPhysx 0.2 - Nvidia Physx 2.8.1 wrapper

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

if you're not using MSVC then you need to recompile IrrPhysx.

If you're not using Irrlicht 1.4.2 then you need to recompile IrrPhysx.
Image Image Image
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

I recommend recompiling no matter which compiler / Irrlicht version you use.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
geckoman
Posts: 143
Joined: Thu Nov 27, 2008 11:05 am
Location: Germany
Contact:

Post by geckoman »

One Question: Is IrrPhysx able to do what NVIDIA shows in the NVIDIA PhysX Particle Fluid Demo?
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

geckoman wrote:One Question: Is IrrPhysx able to do what NVIDIA shows in the NVIDIA PhysX Particle Fluid Demo?
I've played with that nvidia fluid demo quite a bit. I believe IrrPhysx should be capable of calculating the physics seen in that demo, assuming the demo is running on an nvidia card that exposes PhysX hw acceleration.

Rendering the results could be an issue. I've mentioned instancing earlier in this thread and this is what would be needed for efficient rendering - you would not want, say, 5000 Irrlicht scene nodes for each of 5000 "water particles".

Some form of metaball shader is probably used in the demo too. If anyone knows exactly the technique used I'd be most interested.

I'd planned on looking at IrrPhysx over the holidays so maybe I'll get chance to put together my own water physics demo. 8)

Note that you can use any physics engine run in sw to do a physics water demo. The difference with the nvidia demo is that it's designed for hw acceleration on specific nvidia cards so that they can get the (relatively) large amount of water particles - it's the number of water particles that makes the nvidia demo look so good...
geckoman
Posts: 143
Joined: Thu Nov 27, 2008 11:05 am
Location: Germany
Contact:

Post by geckoman »

Note that you can use any physics engine run in sw to do a physics water demo. The difference with the nvidia demo is that it's designed for hw acceleration on specific nvidia cards so that they can get the (relatively) large amount of water particles - it's the number of water particles that makes the nvidia demo look so good...
Because of that I ask, I HAVE an GF8800 and I like the Fluid Demo very much.

Thx for the answer btw.
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

geckoman wrote:Because of that I ask, I HAVE an GF8800 and I like the Fluid Demo very much.
Are you going to make a fluid demo?
IrrNoob
Posts: 110
Joined: Sun Nov 16, 2008 8:01 pm
Location: Fort Collins, Us

Post by IrrNoob »

Hi, Im tying to compile Irrphysx from source using dev-cpp, but I'm getting alot of errors:

Code: Select all

Compiler: Default compiler
Building Makefile: "C:\downloads\IrrPhysx-v0_2\SRC\Makefile.win"
Executing  make...
make.exe -f "C:\downloads\IrrPhysx-v0_2\SRC\Makefile.win" all
g++.exe -c CCloth.cpp -o CCloth.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/irrlicht-1.4.2/include"  -I"C:/downloads/IrrPhysx-v0_2/SRC"  -I"C:/downloads/IrrPhysx-v0_2/include"  -I"C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include"  -I"C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Foundation/include"   

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Foundation/include/NxVec3.h:18,
                 from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Foundation/include/NxBounds3.h:15,
                 from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Foundation/include/NxFoundation.h:25,
                 from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:21,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Foundation/include/NxMath.h: In static member function `static void NxMath::sinCos(NxF32, NxF32&, NxF32&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Foundation/include/NxMath.h:757: error: `_asm' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Foundation/include/NxMath.h:757: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Foundation/include/NxMath.h:757: error: expected `;' before "fld"

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPointInPlaneJointDesc.h:15,
                 from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:109,
                 from CPhysxMesh.h:5,
                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxJointDesc.h:17:25: PhysXLoader.h: No such file or directory
In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPointInPlaneJointDesc.h:15,

                 from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:109,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxJointDesc.h: In member function `void NxJointDesc::setGlobalAnchor(const NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxJointDesc.h:361: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxJointDesc.h: In member function `void NxJointDesc::setGlobalAxis(const NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxJointDesc.h:366: error: `NxGetUtilLib' undeclared (first use this function)

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:178,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `NxReal NxComputeSphereMass(NxReal, NxReal)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:35: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `NxReal NxComputeSphereDensity(NxReal, NxReal)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:56: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `NxReal NxComputeBoxMass(const NxVec3&, NxReal)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:79: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `NxReal NxComputeBoxDensity(const NxVec3&, NxReal)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:100: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `NxReal NxComputeEllipsoidMass(const NxVec3&, NxReal)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:123: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `NxReal NxComputeEllipsoidDensity(const NxVec3&, NxReal)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:144: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `NxReal NxComputeCylinderMass(NxReal, NxReal, NxReal)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:168: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `NxReal NxComputeCylinderDensity(NxReal, NxReal, NxReal)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:190: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `NxReal NxComputeConeMass(NxReal, NxReal, NxReal)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:214: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `NxReal NxComputeConeDensity(NxReal, NxReal, NxReal)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:236: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `void NxComputeBoxInertiaTensor(NxVec3&, NxReal, NxReal, NxReal, NxReal)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:260: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h: In function `void NxComputeSphereInertiaTensor(NxVec3&, NxReal, NxReal, bool)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxInertiaTensor.h:281: error: `NxGetUtilLib' undeclared (first use this function)

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:179,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionBoxBox.h: In function `bool NxBoxBoxIntersect(const NxVec3&, const NxVec3&, const NxMat33&, const NxVec3&, const NxVec3&, const NxMat33&, bool)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionBoxBox.h:43: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionBoxBox.h: In function `bool NxTriBoxIntersect(const NxVec3&, const NxVec3&, const NxVec3&, const NxVec3&, const NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionBoxBox.h:92: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionBoxBox.h: In function `NxSepAxis NxSeparatingAxis(const NxVec3&, const NxVec3&, const NxMat33&, const NxVec3&, const NxVec3&, const NxMat33&, bool)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionBoxBox.h:122: error: `NxGetUtilLib' undeclared (first use this function)

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:181,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionRayPlane.h: In function `void NxSegmentPlaneIntersect(const NxVec3&, const NxVec3&, const NxPlane&, NxReal&, NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionRayPlane.h:41: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionRayPlane.h:41: error: return-statement with a value, in function returning 'void'
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionRayPlane.h: In function `bool NxRayPlaneIntersect(const NxRay&, const NxPlane&, NxReal&, NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionRayPlane.h:67: error: `NxGetUtilLib' undeclared (first use this function)

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:182,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionRaySphere.h: In function `bool NxRaySphereIntersect(const NxVec3&, const NxVec3&, NxReal, const NxVec3&, NxReal, NxReal&, NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionRaySphere.h:44: error: `NxGetUtilLib' undeclared (first use this function)

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:183,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionRayTriangle.h: In function `bool NxRayTriIntersect(const NxVec3&, const NxVec3&, const NxVec3&, const NxVec3&, const NxVec3&, float&, float&, float&, bool)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionRayTriangle.h:46: error: `NxGetUtilLib' undeclared (first use this function)

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:184,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h: In function `bool NxSegmentBoxIntersect(const NxVec3&, const NxVec3&, const NxVec3&, const NxVec3&, NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h:46: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h: In function `bool NxRayAABBIntersect(const NxVec3&, const NxVec3&, const NxVec3&, const NxVec3&, NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h:73: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h: In function `NxU32 NxRayAABBIntersect2(const NxVec3&, const NxVec3&, const NxVec3&, const NxVec3&, NxVec3&, NxReal&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h:101: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h: In function `bool NxSegmentOBBIntersect(const NxVec3&, const NxVec3&, const NxVec3&, const NxVec3&, const NxMat33&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h:128: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h: In function `bool NxSegmentAABBIntersect(const NxVec3&, const NxVec3&, const NxVec3&, const NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h:154: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h: In function `bool NxRayOBBIntersect(const NxRay&, const NxVec3&, const NxVec3&, const NxMat33&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentBox.h:180: error: `NxGetUtilLib' undeclared (first use this function)

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:185,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentCapsule.h: In function `NxU32 NxRayCapsuleIntersect(const NxVec3&, const NxVec3&, const NxCapsule&, NxReal*)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSegmentCapsule.h:46: error: `NxGetUtilLib' undeclared (first use this function)

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:186,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSweptSpheres.h: In function `bool NxSweptSpheresIntersect(const NxSphere&, const NxVec3&, const NxSphere&, const NxVec3&)':

C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxIntersectionSweptSpheres.h:43: error: `NxGetUtilLib' undeclared (first use this function)

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:188,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxSmoothNormals.h: In function `bool NxBuildSmoothNormals(NxU32, NxU32, const NxVec3*, const NxU32*, const NxU16*, NxVec3*, bool)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxSmoothNormals.h:54: error: `NxGetUtilLib' undeclared (first use this function)

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:189,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxAllocateable.h: In static member function `static void* NxAllocateable::operator new(size_t, NxMemoryType)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxAllocateable.h:44: error: `NxGetPhysicsSDKAllocator' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxAllocateable.h: In static member function `static void* NxAllocateable::operator new [](size_t, NxMemoryType)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxAllocateable.h:49: error: `NxGetPhysicsSDKAllocator' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxAllocateable.h: In static member function `static void NxAllocateable::operator delete(void*)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxAllocateable.h:54: error: `NxGetPhysicsSDKAllocator' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxAllocateable.h: In static member function `static void NxAllocateable::operator delete [](void*)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxAllocateable.h:59: error: `NxGetPhysicsSDKAllocator' undeclared (first use this function)

In file included from C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxPhysics.h:190,
                 from CPhysxMesh.h:5,

                 from CClothPhysxMesh.h:4,
                 from CCloth.h:5,
                 from CCloth.cpp:3:
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `bool NxBoxContainsPoint(const NxBox&, const NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:45: error: `NxGetUtilLib' undeclared (first use this function)

C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxCreateBox(NxBox&, const NxBounds3&, const NxMat34&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:68: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `bool NxComputeBoxPlanes(const NxBox&, NxPlane*)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:92: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `bool NxComputeBoxPoints(const NxBox&, NxVec3*)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:116: error: `NxGetUtilLib' undeclared (first use this function)

C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `bool NxComputeBoxVertexNormals(const NxBox&, NxVec3*)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:140: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `const NxU32* NxGetBoxEdges()':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:160: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `const NxI32* NxGetBoxEdgesAxes()':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:180: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `const NxU32* NxGetBoxTriangles()':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:200: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `const NxVec3* NxGetBoxLocalEdgeNormals()':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:218: error: `NxGetUtilLib' undeclared (first use this function)

C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxComputeBoxWorldEdgeNormal(const NxBox&, NxU32, NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:246: error: `NxGetUtilLib' undeclared (first use this function)

C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxComputeCapsuleAroundBox(const NxBox&, NxCapsule&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:268: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `bool NxIsBoxAInsideBoxB(const NxBox&, const NxBox&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:291: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `const NxU32* NxGetBoxQuads()':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:311: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `const NxU32* NxBoxVertexToQuad(NxU32)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:332: error: `NxGetUtilLib' undeclared (first use this function)

C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxComputeBoxAroundCapsule(const NxCapsule&, NxBox&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:353: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxSetFPUPrecision24()':

C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:369: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxSetFPUPrecision53()':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:385: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxSetFPUPrecision64()':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:401: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxSetFPURoundingChop()':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:417: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxSetFPURoundingUp()':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:433: error: `NxGetUtilLib' undeclared (first use this function)

C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxSetFPURoundingDown()':

C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:449: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxSetFPURoundingNear()':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:465: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxSetFPUExceptions(bool)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:483: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `int NxIntChop(const NxF32&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:503: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `int NxIntFloor(const NxF32&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:523: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `int NxIntCeil(const NxF32&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:543: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `NxF32 NxComputeDistanceSquared(const NxRay&, const NxVec3&, NxF32*)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:567: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `NxF32 NxComputeSquareDistance(const NxSegment&, const NxVec3&, NxF32*)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:591: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `NxBSphereMethod NxComputeSphere(NxSphere&, unsigned int, const NxVec3*)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:615: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `bool NxFastComputeSphere(NxSphere&, unsigned int, const NxVec3*)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:640: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxMergeSpheres(NxSphere&, const NxSphere&, const NxSphere&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:662: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxNormalToTangents(const NxVec3&, NxVec3&, NxVec3&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:682: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `bool NxDiagonalizeInertiaTensor(const NxMat33&, NxVec3&, NxMat33&)':

C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:709: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxFindRotationMatrix(const NxVec3&, const NxVec3&, NxMat33&)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:735: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `void NxComputeBounds(NxVec3&, NxVec3&, NxU32, const NxVec3*)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:758: error: `NxGetUtilLib' undeclared (first use this function)
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h: In function `NxU32 NxCrc32(const void*, NxU32)':
C:/Program Files/NVIDIA Corporation/NVIDIA PhysX SDK/v2.8.1/SDKs/Physics/include/NxExportedUtils.h:802: error: `NxGetUtilLib' undeclared (first use this function)

In file included from CCloth.cpp:5:
Cooking.h:4:23: NxCooking.h: No such file or directory
CCloth.cpp: In destructor `IrrPhysx::CCloth::~CCloth()':
CCloth.cpp:37: warning: deleting `void*' is undefined

make.exe: *** [CCloth.o] Error 1

Execution terminated
Can someone please help me compile this?
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

The windows version of gcc and PhysX do not get along. You'll need to use msvc to compile an application using the later PhysX versions in order to get it to work.
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Currently there's no support for particle effects in IrrPhysx but it's something that will hopefully get added later.

sio2, if you manage to do anything with it then it would be cool if I could put it into IrrPhysx properly!
Image Image Image
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

JP wrote:Currently there's no support for particle effects in IrrPhysx but it's something that will hopefully get added later.

sio2, if you manage to do anything with it then it would be cool if I could put it into IrrPhysx properly!
It sure would be cool.

The nvidia demo has up to 60000 (and more!) water particles. One scene node per-particle would kill the cpu so we'd need something like a PhysX managed CWaterVolumeSceneNode. There would also need some serious shader work to render that lot. The nvidia demo also has reflection and refraction - simple enough to do, but yet more render passes (my 8800 seems to handle it quite well, though).
roelor
Posts: 240
Joined: Wed Aug 13, 2008 8:06 am

Post by roelor »

Dark_Kilauea wrote:The windows version of gcc and PhysX do not get along. You'll need to use msvc to compile an application using the later PhysX versions in order to get it to work.
Microsoft screwed up.. The msvc is not compiling anything! Can someone just compile one? (I want to use physics with gcc)
fmx

Post by fmx »

sio2
that would be interesting, having a general sort of manager-object to handle multiple PhysX fluid particles. It'd be cool to see you produce a fluid demo!

roelor
compile what? irrPhysX libs to use with gcc?

all you guys using devcpp, can I ask why you hesitate to just switch to MSVC? if not planning on porting outside windows OS, you should really consider switching to MSVC



(a little offtopic)

Has anyone tried using PhysX on an 64bit XP?

Although nVidia claims PhysX applications (including the system software) is compatible with XP64, the SDK only contains sample binaries and libs for 32bit windows so it doesn't seem as though 64bit is supported for development.

Any ideas? Is it even possible to develop PhysX applications on XP64?
:?
Pie21
Posts: 13
Joined: Mon Oct 06, 2008 11:21 am
Location: Melbourne, Australia
Contact:

Post by Pie21 »

Hi guys! First post after lurking and using Irrlicht for about a week (loving it so far).

I'm really just messing around with Irrlicht atm (made Pong ftw), and decided to try it out with a physics engine. Basically I'll use whichever engine has the greatest ease of use and most documentation, and following the great JP through various threads, PhysX was it. irrPhysx of course made that decision a lot easier, which brings me to the point of this paragraph - many, many thanks to JP for all his effort making this wrapper for people exactly like me.

That said, I can't get it to work :P I've added the irrPhysx include and lib folders in VC++'s directories, and basically just copied the Boxes example code to a new project and hit 'compile'. Obviously there's something I've failed to link, but I can't find anywhere that says "to use this in your projects, and X and Y to directories". If someone could point them out, I'd appreciate it.

Had similar problems getting Irrlicht to work (new to all C++'s compiling and linking, but I learn by experimentation), but that was evidently a lot simpler :( Apparently these things are too obvious to go in readme's or something.

Using MSVC++ 2008 Express (for now), and Irrlicht 1.4.2 on Vista x64. Cheers!

EDIT: Oh, almost forgot! The build log, if it helps (though presumably you all know the answer already):

Code: Select all

Linking...
Tango.obj : error LNK2019: unresolved external symbol "void __cdecl IrrPhysx::removePhysxManager(class IrrPhysx::IPhysxManager *)" (?removePhysxManager@IrrPhysx@@YAXPAVIPhysxManager@1@@Z) referenced in function _main
Tango.obj : error LNK2019: unresolved external symbol "public: void __thiscall CGUIParamChanger::addParam(wchar_t *,float)" (?addParam@CGUIParamChanger@@QAEXPA_WM@Z) referenced in function _main
Tango.obj : error LNK2019: unresolved external symbol "public: __thiscall CGUIParamChanger::CGUIParamChanger(class irr::gui::IGUIEnvironment *,class irr::gui::IGUIElement *,int,class irr::core::rect)" (??0CGUIParamChanger@@QAE@PAVIGUIEnvironment@gui@irr@@PAVIGUIElement@23@HV?$rect@H@core@3@@Z) referenced in function _main
Tango.obj : error LNK2019: unresolved external symbol "struct SPhysxAndNodePair * __cdecl createBox(class IrrPhysx::IPhysxManager *,class irr::scene::ISceneManager *,class irr::video::IVideoDriver *,class irr::core::vector3d const &,class irr::core::vector3d const &,float,class irr::core::vector3d *)" (?createBox@@YAPAUSPhysxAndNodePair@@PAVIPhysxManager@IrrPhysx@@PAVISceneManager@scene@irr@@PAVIVideoDriver@video@6@ABV?$vector3d@M@core@6@3MPAV9core@6@@Z) referenced in function _main
Tango.obj : error LNK2019: unresolved external symbol "void __cdecl addPlane(class IrrPhysx::IPhysxManager *,class irr::scene::ISceneManager *,float,class irr::core::vector3d const &)" (?addPlane@@YAXPAVIPhysxManager@IrrPhysx@@PAVISceneManager@scene@irr@@MABV?$vector3d@M@core@5@@Z) referenced in function _main
Tango.obj : error LNK2019: unresolved external symbol "class IrrPhysx::IPhysxManager * __cdecl IrrPhysx::createPhysxManager(class irr::IrrlichtDevice *,struct IrrPhysx::SSceneDesc const &,bool)" (?createPhysxManager@IrrPhysx@@YAPAVIPhysxManager@1@PAVIrrlichtDevice@irr@@ABUSSceneDesc@1@_N@Z) referenced in function _main
Tango.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class irr::IrrlichtDevice * __cdecl irr::createDevice(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d const &,unsigned int,bool,bool,bool,class irr::IEventReceiver *,char const *)" (__imp_?createDevice@irr@@YAPAVIrrlichtDevice@1@W4E_DRIVER_TYPE@video@1@ABV?$dimension2d@H@core@1@I_N22PAVIEventReceiver@1@PBD@Z) referenced in function _main
Tango.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CGUIParamChanger::getParam(wchar_t *,float &)" (?getParam@CGUIParamChanger@@QAE_NPA_WAAM@Z) referenced in function "public: virtual bool __thiscall CEventReceiver::OnEvent(struct irr::SEvent const &)" (?OnEvent@CEventReceiver@@UAE_NABUSEvent@irr@@@Z)
Tango.obj : error LNK2019: unresolved external symbol "struct SPhysxAndNodePair * __cdecl createSphereFromCamera(class IrrPhysx::IPhysxManager *,class irr::scene::ISceneManager *,class irr::video::IVideoDriver *,class irr::scene::ICameraSceneNode *,float,float)" (?createSphereFromCamera@@YAPAUSPhysxAndNodePair@@PAVIPhysxManager@IrrPhysx@@PAVISceneManager@scene@irr@@PAVIVideoDriver@video@6@PAVICameraSceneNode@56@MM@Z) referenced in function "public: virtual bool __thiscall CEventReceiver::OnEvent(struct irr::SEvent const &)" (?OnEvent@CEventReceiver@@UAE_NABUSEvent@irr@@@Z)
Tango.obj : error LNK2019: unresolved external symbol "void __cdecl createBoxStack(class IrrPhysx::IPhysxManager *,class irr::scene::ISceneManager *,class irr::video::IVideoDriver *,class irr::core::array > &,float,float,class irr::core::vector3d const &)" (?createBoxStack@@YAXPAVIPhysxManager@IrrPhysx@@PAVISceneManager@scene@irr@@PAVIVideoDriver@video@5@AAV?$array@PAUSPhysxAndNodePair@@V?$irrAllocator@PAUSPhysxAndNodePair@@@core@irr@@@core@5@MMABV?$vector3d@M@95@@Z) referenced in function "public: virtual bool __thiscall CEventReceiver::OnEvent(struct irr::SEvent const &)" (?OnEvent@CEventReceiver@@UAE_NABUSEvent@irr@@@Z)
Tango.obj : error LNK2019: unresolved external symbol "void __cdecl createBoxTower(class IrrPhysx::IPhysxManager *,class irr::scene::ISceneManager *,class irr::video::IVideoDriver *,class irr::core::array >
Oh! And for the record, the game example crashes before it loads - someone else mentioned the same problem earlier in this thread. Loads up all the meshes and textures then just hits a wall, although I don't think that's at all related.
fmx

Post by fmx »

seems like you forgot to include the "common code" files too, which have to be included/added to your project to get the samples to compile.

IMO, maybe there should be a bog-standard "hello-world" sample, something that just shows how to use irrphysx in the simplest possible way.
I'll give it a shot later today (on my main PC, can't use physx on my XP64 laptop :()
Pie21 wrote:Oh! And for the record, the game example crashes before it loads - someone else mentioned the same problem earlier in this thread. Loads up all the meshes and textures then just hits a wall, although I don't think that's at all related.
i've had similar problems before too. The solution was already posted before somewhere, but your problem might be different.
are you sure your physx scene is even being created (not returning a null in initilisation)?
Also make sure you're using the right system-software and SDK versions (and dll) combinations.
Pie21
Posts: 13
Joined: Mon Oct 06, 2008 11:21 am
Location: Melbourne, Australia
Contact:

Post by Pie21 »

Cheers for the response. You always get a bunch of noob questions on these forums for complex things, and I'm loathe to sound like one of them :P

Sorry, that last post was a bit rushed because I had to run off to work. I included the ones I said first, and it didn't work. Then I included CommonCode directory because some of the header names looked familiar from the errors (e.g. ShapeCreation) (that goes under "Include files", right?), but it still didn't work. Then I thought I'd add a few important-sounding include and lib folders from the PhysX SDK folder, but that didn't fix it either.

Just now I noticed a previous post I missed, saying I have to add those CommonCode files to my project, rather than just include them. I don't know why and haven't read that anywhere else but here as the result of an error, so a big +1 for bog-standards. So anyway I added them in, and it cut down the unresolved external symbols - now I'm down to:

Code: Select all

1>Tango.obj : error LNK2019: unresolved external symbol "void __cdecl IrrPhysx::removePhysxManager(class IrrPhysx::IPhysxManager *)" (?removePhysxManager@IrrPhysx@@YAXPAVIPhysxManager@1@@Z) referenced in function _main
1>Tango.obj : error LNK2019: unresolved external symbol "class IrrPhysx::IPhysxManager * __cdecl IrrPhysx::createPhysxManager(class irr::IrrlichtDevice *,struct IrrPhysx::SSceneDesc const &,bool)" (?createPhysxManager@IrrPhysx@@YAPAVIPhysxManager@1@PAVIrrlichtDevice@irr@@ABUSSceneDesc@1@_N@Z) referenced in function _main
1>Tango.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class irr::IrrlichtDevice * __cdecl irr::createDevice(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int> const &,unsigned int,bool,bool,bool,class irr::IEventReceiver *,char const *)" (__imp_?createDevice@irr@@YAPAVIrrlichtDevice@1@W4E_DRIVER_TYPE@video@1@ABV?$dimension2d@H@core@1@I_N22PAVIEventReceiver@1@PBD@Z) referenced in function _main
The first two of those errors mention PhysxManager, so I tried actually adding CPhysxManager .h and .cpp to the project as well which seemed to help except for saying it couldn't find NxPhysics.h, so I added the Physx Physics SDK to the includes, which gave me more missing files, so I added all those to the includes too, and ended up with about 24 unresolved external symbols :( The third one seems to be about the IrrlichtDevice, which should work fine... Odd.

As for the game, it's that exact same scenario as on page 4. I'd love to help with whatever debugging I could do, but until iPx (I like that as an abbreviation ;)) itself compiles, that's not going to yield many results.

Thanks again.

EDIT: Oh and I forgot again (man!) - I'm using the links in the first post of this thread - irrPhysx 0.2, PhysX SDK 2.8.1 and that System Software that ISN'T the most recent.
Last edited by Pie21 on Thu Dec 11, 2008 2:10 pm, edited 1 time in total.
Post Reply