Can't compile OgreNewt release with Newton 2.22

pra

21-06-2010 15:11:01

Trying to fix some bug, I updated my Newton Game Dynamics from 2.20 to 2.22.

Compiling in debug mode works fine, but in release mode, the following happens:
1>OgreNewt_BasicJoints.obj : error LNK2019: unresolved external symbol "class dMatrix __cdecl dgGrammSchmidt(class dVector const &)" (?dgGrammSchmidt@@YA?AVdMatrix@@ABVdVector@@@Z) referenced in function "public: __thiscall OgreNewt::Hinge::Hinge(class OgreNewt::Body const *,class OgreNewt::Body const *,class Ogre::Vector3 const &,class Ogre::Vector3 const &)" (??0Hinge@OgreNewt@@QAE@PBVBody@1@0ABVVector3@Ogre@@1@Z)
1>OgreNewt_PlayerController.obj : error LNK2019: unresolved external symbol "public: __thiscall dMatrix::dMatrix(class dQuaternion const &,class dVector const &)" (??0dMatrix@@QAE@ABVdQuaternion@@ABVdVector@@@Z) referenced in function "protected: virtual void __thiscall OgreNewt::PlayerController::showDebugData(class Ogre::SceneNode *)" (?showDebugData@PlayerController@OgreNewt@@MAEXPAVSceneNode@Ogre@@@Z)
1>OgreNewt_RayCastVehicle.obj : error LNK2001: unresolved external symbol "public: __thiscall dMatrix::dMatrix(class dQuaternion const &,class dVector const &)" (??0dMatrix@@QAE@ABVdQuaternion@@ABVdVector@@@Z)
1>OgreNewt_RayCastVehicle.obj : error LNK2019: unresolved external symbol "public: class dMatrix __thiscall dMatrix::operator*(class dMatrix const &)const " (??DdMatrix@@QBE?AV0@ABV0@@Z) referenced in function "public: virtual void __thiscall OgreNewt::RayCastVehicle::showDebugData(class Ogre::SceneNode *)" (?showDebugData@RayCastVehicle@OgreNewt@@UAEXPAVSceneNode@Ogre@@@Z)
1>./lib/OgreNewt.dll : fatal error LNK1120: 3 unresolved externals


The lib dirs are for both release and debug:
"$(OGRE_HOME)/lib";"$(BOOST_HOME)/libs";"$(NEWTON_HOME)/sdk/x32";"$(NEWTON_HOME)/sdk/x32/dll_vs9"

lib input is:
debug:
kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib newton.lib dMath_d.lib JointLibrary_d.lib OgreMain_d.lib OgreTerrain_d.lib $(NOINHERIT)
release:
kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib newton.lib dMath.lib JointLibrary.lib OgreMain.lib OgreTerrain.lib $(NOINHERIT)
...which should be the default stuff for ogrenewt.

compiling with 2.21 works fine

kallaspriit

21-06-2010 16:59:29

Noticed that myself, Julio has forgot to include the latest version of joint library, compile it yourself and your'e good to go ;)

NIKIMC

25-08-2010 13:49:32

where can I find that library?

kallaspriit

26-08-2010 14:33:30

Get the latest NGD and also update OgreNewt from SVN, should work again.

kallaspriit

26-08-2010 14:33:30

Get the latest NGD and also update OgreNewt from SVN, should work again.