Error while build OGRENEWT

deshan

06-05-2009 20:31:03

Hi I am very new to OGRENEWT.
As I found their were so many topics regarding to the folder structure and the 'OGRE.h' not found error. I also faced the same and then I added Ogre and Newton to VC++ 2005 global include/library directories as the walaber suggest.
Then I faced some different kind of errors

Error 4 error C2039: 'setNormaliseNormals' : is not a member of 'Ogre::Entity' f:\More_Softwares\Newton_Game_Dynamics\OGRE_Wrapper\OgreNewt\demos\Demo01_TheBasics\OgreNewtonApplication.cpp 45
Error 3 error C2039: 'setNormaliseNormals' : is not a member of 'Ogre::Entity' f:\More_Softwares\Newton_Game_Dynamics\OGRE_Wrapper\OgreNewt\demos\Demo01_TheBasics\OgreNewtonFrameListener.cpp 74
Error 2 error C2039: 'getWorldPosition' : is not a member of 'Ogre::SceneNode' f:\More_Softwares\Newton_Game_Dynamics\OGRE_Wrapper\OgreNewt\demos\Demo01_TheBasics\OgreNewtonFrameListener.cpp 65
Error 1 error C2039: 'getWorldOrientation' : is not a member of 'Ogre::SceneNode' f:\More_Softwares\Newton_Game_Dynamics\OGRE_Wrapper\OgreNewt\demos\Demo01_TheBasics\OgreNewtonFrameListener.cpp 56



So this is the way I made the configs
Tools->options->project and solutions->VC++ directories
---------inludefiles
--------------------$(OGRE_HOME)\include
--------------------$(OGRE_HOME)\samples\include
--------------------C:\NewtonSDK\sdk

---------library files
--------------------C:\NewtonSDK\sdk\dll
--------------------$(OGRE_HOME)\lib

Please correct me If I am wrong

Virginie

07-05-2009 08:58:07

Yes those errors are because OgreNewt is not update now you can :
- coment lines where there are setNormaliseNormals (now it is done automatically)
- replace getWorldPosition() by _getDerivedPosition()
- replace getWorldOrientation() by _getDerivedOrientation()

I still see this problem :)

Virginie

07-05-2009 09:18:50

You should use OgreNewt 2.0, it's a beta version but better than the older.

deshan

07-05-2009 13:10:25

Yes those errors are because OgreNewt is not update now you can :
- coment lines where there are setNormaliseNormals (now it is done automatically)
- replace getWorldPosition() by _getDerivedPosition()
- replace getWorldOrientation() by _getDerivedOrientation()

I still see this problem :)



:D :D
Thank You very much Virginie. Now it's compile. But still I cant run any of the project because it says "Newton.dll" not found. I have found that the dll is placed in following two paths.
NewtonSDK\sdk\dll_double
NewtonSDK\sdk\dll

And I have add these two paths to global library directory as Tools->options->project and solutions->VC++ directories-> library files.
Still the same issue. Could u please help me again?

You should use OgreNewt 2.0, it's a beta version but better than the older.

Or is this the problem?

Thanks again

westpointer

07-05-2009 16:02:51

Copy Newton.dll to your exe directory.

deshan

07-05-2009 18:31:55

Copy Newton.dll to your exe directory.

Thanx westpointer
It is not only the Newton.dll must copy to make it work. But also
Newton.dll
OgreMain.dll
OIS.dll
RenderSystem_GL.dll
RenderSystem_Direct3D9.dll

And it works fine when I try to run the exe by double click on it. But when I try to debug on IDE it doesn't work. Still it is ok because the running the exe is not a big issue. :D

westpointer

08-05-2009 02:28:17

But when I try to debug on IDE it doesn't work.
Set your project's working directory to your exe folder

deshan

08-05-2009 05:59:01

But when I try to debug on IDE it doesn't work.
Set your project's working directory to your exe folder


yeah that's works fine.
Thanks westpointer. :D

marc_antoine

16-05-2009 14:27:24

deshan, you are in debt with westpointer for those questions..lol.., at least you should invite him a breakfast or a dinner or something.. jst kidding, did you tried ogrenewt 2.0? does it works?. i'm also gtting into this so first i'm rying to read post about the problems... and stuff to have a panorama if ogreNewt is what i need or they are too any issues than answers...

cheers!..