jbuch
06-01-2009 02:16:02
I'm hoping someone here can help. I'm trying to use OgreBullet with a gcc/MingW setup on Windows, but I'm having trouble getting it to link properly. Is anyone using it in this setup? I've tried using the libraries compiled under Visual C++ 2005, and I found a package for Linux that included CMakefiles, which I then used to compile OgreBullet under gcc/MingW, but I continue to receive errors when it gets to the linker phase. Maintaining the gcc/MingW environment is important to my client. I was excited about using Bullet, but may have to go with another solution for physics if we can't get past this.
I've included the error messages I'm receiving in case they are of any use in troubleshooting the problem. I'd appreciate any help.
Jason
AvalancheSR.o: In function `_ZN22AvalancheSRApplication9initWorldERKN4Ogre7Vector3ERKNS0_14AxisAlignedBoxE':
c:/cygwin/bin/simulation/AvalancheSR/AvalancheSR.cpp:216: undefined reference to `OgreBulletDynamics::DynamicsWorld::Dyn
amicsWorld(Ogre::SceneManager*, Ogre::AxisAlignedBox const&, Ogre::Vector3 const&)'
AvalancheSR.o: In function `_ZN22AvalancheSRApplication18initPhysicsTerrainEv':
c:/cygwin/bin/simulation/AvalancheSR/AvalancheSR.cpp:283: undefined reference to `OgreBulletDynamics::RigidBody::RigidBo
dy(std::string const&, OgreBulletDynamics::DynamicsWorld*)'
c:/cygwin/bin/simulation/AvalancheSR/AvalancheSR.cpp:294: undefined reference to `OgreBulletDynamics::RigidBody::setStat
icShape(Ogre::SceneNode*, OgreBulletCollisions::CollisionShape*, float, float, Ogre::Vector3 const&, Ogre::Quaternion co
nst&)'
AvalancheSR.o: In function `_ZNK9__gnu_cxx17__normal_iteratorIPKN4Ogre7Vector3ESt6vectorIS2_SaIS2_EEE4baseEv':
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s23HeightmapCollisionShapeC1EiiRN4Ogre7Vector3EPfb[OgreBulletCollisions::HeightmapCollisionShape::HeightmapCollisionShap
e(int, int, Ogre::Vector3&, float*, bool)]+0x4c): undefined reference to `OgreBulletCollisions::CollisionShape::Collisio
nShape()'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s23HeightmapCollisionShapeC1EiiRN4Ogre7Vector3EPfb[OgreBulletCollisions::HeightmapCollisionShape::HeightmapCollisionShap
e(int, int, Ogre::Vector3&, float*, bool)]+0xc5): undefined reference to `btHeightfieldTerrainShape::btHeightfieldTerrai
nShape(int, int, void*, float, int, bool, bool)'
AvalancheSR.o: In function `main':
c:/cygwin/bin/simulation/AvalancheSR/AvalancheSR.cpp:34: undefined reference to `OgreBulletCollisions::CollisionShape::~
CollisionShape()'
AvalancheSR.o: In function `_ZNK9__gnu_cxx17__normal_iteratorIPKN4Ogre7Vector3ESt6vectorIS2_SaIS2_EEE4baseEv':
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s25DebugTriangleDrawCallbackD1Ev[OgreBulletCollisions::DebugTriangleDrawCallback::~DebugTriangleDrawCallback()]+0x16): u
ndefined reference to `btTriangleCallback::~btTriangleCallback()'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN18btTriangleCallbackC
2Ev[btTriangleCallback::btTriangleCallback()]+0x8): undefined reference to `vtable for btTriangleCallback'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s23HeightmapCollisionShapeD0Ev[OgreBulletCollisions::HeightmapCollisionShape::~HeightmapCollisionShape()]+0x16): undefin
ed reference to `OgreBulletCollisions::CollisionShape::~CollisionShape()'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s23HeightmapCollisionShapeD1Ev[OgreBulletCollisions::HeightmapCollisionShape::~HeightmapCollisionShape()]+0x16): undefin
ed reference to `OgreBulletCollisions::CollisionShape::~CollisionShape()'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s10DebugLines7addLineERKN4Ogre7Vector3ES4_[OgreBulletCollisions::DebugLines::addLine(Ogre::Vector3 const&, Ogre::Vector3
const&)]+0xd): undefined reference to `OgreBulletCollisions::DebugLines::clear()'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s25DebugTriangleDrawCallbackD0Ev[OgreBulletCollisions::DebugTriangleDrawCallback::~DebugTriangleDrawCallback()]+0x16): u
ndefined reference to `btTriangleCallback::~btTriangleCallback()'
I've included the error messages I'm receiving in case they are of any use in troubleshooting the problem. I'd appreciate any help.
Jason
AvalancheSR.o: In function `_ZN22AvalancheSRApplication9initWorldERKN4Ogre7Vector3ERKNS0_14AxisAlignedBoxE':
c:/cygwin/bin/simulation/AvalancheSR/AvalancheSR.cpp:216: undefined reference to `OgreBulletDynamics::DynamicsWorld::Dyn
amicsWorld(Ogre::SceneManager*, Ogre::AxisAlignedBox const&, Ogre::Vector3 const&)'
AvalancheSR.o: In function `_ZN22AvalancheSRApplication18initPhysicsTerrainEv':
c:/cygwin/bin/simulation/AvalancheSR/AvalancheSR.cpp:283: undefined reference to `OgreBulletDynamics::RigidBody::RigidBo
dy(std::string const&, OgreBulletDynamics::DynamicsWorld*)'
c:/cygwin/bin/simulation/AvalancheSR/AvalancheSR.cpp:294: undefined reference to `OgreBulletDynamics::RigidBody::setStat
icShape(Ogre::SceneNode*, OgreBulletCollisions::CollisionShape*, float, float, Ogre::Vector3 const&, Ogre::Quaternion co
nst&)'
AvalancheSR.o: In function `_ZNK9__gnu_cxx17__normal_iteratorIPKN4Ogre7Vector3ESt6vectorIS2_SaIS2_EEE4baseEv':
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s23HeightmapCollisionShapeC1EiiRN4Ogre7Vector3EPfb[OgreBulletCollisions::HeightmapCollisionShape::HeightmapCollisionShap
e(int, int, Ogre::Vector3&, float*, bool)]+0x4c): undefined reference to `OgreBulletCollisions::CollisionShape::Collisio
nShape()'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s23HeightmapCollisionShapeC1EiiRN4Ogre7Vector3EPfb[OgreBulletCollisions::HeightmapCollisionShape::HeightmapCollisionShap
e(int, int, Ogre::Vector3&, float*, bool)]+0xc5): undefined reference to `btHeightfieldTerrainShape::btHeightfieldTerrai
nShape(int, int, void*, float, int, bool, bool)'
AvalancheSR.o: In function `main':
c:/cygwin/bin/simulation/AvalancheSR/AvalancheSR.cpp:34: undefined reference to `OgreBulletCollisions::CollisionShape::~
CollisionShape()'
AvalancheSR.o: In function `_ZNK9__gnu_cxx17__normal_iteratorIPKN4Ogre7Vector3ESt6vectorIS2_SaIS2_EEE4baseEv':
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s25DebugTriangleDrawCallbackD1Ev[OgreBulletCollisions::DebugTriangleDrawCallback::~DebugTriangleDrawCallback()]+0x16): u
ndefined reference to `btTriangleCallback::~btTriangleCallback()'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN18btTriangleCallbackC
2Ev[btTriangleCallback::btTriangleCallback()]+0x8): undefined reference to `vtable for btTriangleCallback'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s23HeightmapCollisionShapeD0Ev[OgreBulletCollisions::HeightmapCollisionShape::~HeightmapCollisionShape()]+0x16): undefin
ed reference to `OgreBulletCollisions::CollisionShape::~CollisionShape()'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s23HeightmapCollisionShapeD1Ev[OgreBulletCollisions::HeightmapCollisionShape::~HeightmapCollisionShape()]+0x16): undefin
ed reference to `OgreBulletCollisions::CollisionShape::~CollisionShape()'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s10DebugLines7addLineERKN4Ogre7Vector3ES4_[OgreBulletCollisions::DebugLines::addLine(Ogre::Vector3 const&, Ogre::Vector3
const&)]+0xd): undefined reference to `OgreBulletCollisions::DebugLines::clear()'
c:/cygwin/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZN20OgreBulletCollision
s25DebugTriangleDrawCallbackD0Ev[OgreBulletCollisions::DebugTriangleDrawCallback::~DebugTriangleDrawCallback()]+0x16): u
ndefined reference to `btTriangleCallback::~btTriangleCallback()'