Problem Compiling OgreNewt: "size_t not declared"

freak82

07-11-2008 11:59:34

Hi, i'm new to Ogre and Ogrenewt, I just installed Newton SDK and tried to compile Ogrenewt in COde:Blocks with Ogremewt.sln.
I set up compiler search directories to:

c:\OgreSDK\include
c:\Programmi\NewtonSDK\SDK

and linker:
c:\mingw\lib
c:\Programmi\NewtonSDK\sdk
$(OGRE_HOME)\bin\$(TARGET_NAME)
C:\OgreSDK\lib

Am I missing Something?

freak82

07-11-2008 12:42:02

Ok, I just solved the problem adding at the top the following lines from a workin Ogre project, if that one used size-t it had to work here too!

Now I'm trying to compile TheBasics demo, and i get these erors:
C:\OgreSDK\OgreNewt\demos\Demo01_TheBasics\OgreNewtonFrameListener.cpp:56: error: 'class Ogre::SceneNode' has no member named 'getWorldOrientation'
C:\OgreSDK\OgreNewt\demos\Demo01_TheBasics\OgreNewtonFrameListener.cpp:65: error: 'class Ogre::SceneNode' has no member named 'getWorldPosition'
C:\OgreSDK\OgreNewt\demos\Demo01_TheBasics\OgreNewtonFrameListener.cpp:74: error: 'class Ogre::Entity' has no member named 'setNormaliseNormals'

nullsquared

10-11-2008 02:10:27

Replace 'getWorld' with '_getDerived' and remove the entire call to setNormaliseNormals().

Julian

10-11-2008 09:50:42

It that the only thing to do to launch the demo projects ? :?