Undefined reference errors

SFCBias

05-04-2010 18:14:31

So i finally build OgreNewt but now when i add it to my project i get

Invoking: GCC C++ Linker
g++ -L/usr/local/lib -L/home/sfcbias/newtonSDK/sdk -L/usr/lib -o"Game" ./src/Camera.o ./src/Collision.o ./src/InputHandler.o ./src/LevelScenes.o ./src/Physics.o ./src/Players.o ./src/Setup.o ./src/main.o ./src/xmlParser.o -lOgreMain -lOgreNewt -lNewton -lOIS
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomKinematicController::CustomKinematicController(NewtonBody const*, dVector const&)'
/usr/local/lib/libOgreNewt.so: undefined reference to `NewtonCustomJoint::operator delete(void*)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomKinematicController::SetPickMode(int)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomUpVector::SetPinDir(dVector const&)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomHinge::EnableLimits(bool)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomHinge::CustomHinge(dMatrix const&, NewtonBody const*, NewtonBody const*)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomHinge::SetLimis(float, float)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomPlayerController::GetPlayerStairHeight() const'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomKinematicController::SetTargetMatrix(dMatrix const&)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomSlider::CustomSlider(dMatrix const&, NewtonBody const*, NewtonBody const*)'
/usr/local/lib/libOgreNewt.so: undefined reference to `NewtonCustomJoint::GetBody1() const'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomSlider::SetLimis(float, float)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomSlider::EnableLimits(bool)'
/usr/local/lib/libOgreNewt.so: undefined reference to `NewtonCustomJoint::GetBody0() const'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomHinge::GetJointOmega() const'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomBallAndSocket::CustomBallAndSocket(dMatrix const&, NewtonBody const*, NewtonBody const*)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomHinge::GetJointAngle() const'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomHinge::GetPinAxis() const'
/usr/local/lib/libOgreNewt.so: undefined reference to `dgGrammSchmidt(dVector const&)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomPlayerController::GetVelocity(float&, float&, float&) const'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomKinematicController::SetTargetRotation(dQuaternion const&)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomKinematicController::SetMaxLinearFriction(float)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomKinematicController::SetMaxAngularFriction(float)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomPlayerController::SetVelocity(float, float, float)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomPlayerController::GetSensorShape() const'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomKinematicController::SetTargetPosit(dVector const&)'
/usr/local/lib/libOgreNewt.so: undefined reference to `NewtonCustomJoint::operator new(unsigned long)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomKinematicController::GetTargetMatrix() const'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomUpVector::CustomUpVector(dVector const&, NewtonBody*)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomPlayerController::GetStairStepShape() const'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomPlayerController::GetPlayerHeight() const'
/usr/local/lib/libOgreNewt.so: undefined reference to `NewtonCustomJoint::GetJoint() const'
/usr/local/lib/libOgreNewt.so: undefined reference to `dMatrix::dMatrix(dQuaternion const&, dVector const&)'
/usr/local/lib/libOgreNewt.so: undefined reference to `CustomUserBlank::CustomUserBlank(unsigned int, NewtonBody const*, NewtonBody const*)'
collect2: ld returned 1 exit status


which all appear to be talking about Newton functions. I linked libNewton.so to my project and i tried adding #include "Newton.h" but still no luck

I also ran ldconfig to be safe and still nothing

any suggestions?

SuperNoa

05-04-2010 23:53:07

I have the same problem after i have installed using your tutorial!

SFCBias

06-04-2010 13:06:46

Im already looking into it ;). I think it is a problem with th e OgreNewt sources themselves so im going to try and recompile the library from source

SuperNoa

06-04-2010 13:19:38

Im already looking into it ;). I think it is a problem with th e OgreNewt sources themselves so im going to try and recompile the library from source

I'm waiting for good news! :D

Entelin

17-04-2010 02:15:48

same issue here as well... its looking like the author doesn't pay much attention to linux i guess :(

SFCBias

18-04-2010 20:27:46

Here is the most updated post that *should* fix these errors

New post