Ogrenewt Compile situation

Tux11

20-02-2007 00:44:50

Hi,

Kinda new to the ogre community and I'm trying to mess around with ogrenewt a bit but i can't get the thing to compile. I'm using the cvs of ogre with ois .72 from the website. Is there something simple i'm overlooking?

here are the errors i get:


1>------ Build started: Project: Demo01_TheBasics, Configuration: Release Win32 ------
1>Compiling...
1>OgreNewtonFrameListener.cpp
1>c:\OgreCVS\Ogre\ogrenew\Samples\Common\include\ExampleFrameListener.h(151) : error C2660: 'OIS::InputManager::destroyInputSystem' : function does not take 1 arguments
1>c:\OgreCVS\Ogre\ogrenew\Samples\Common\include\ExampleFrameListener.h(274) : error C2039: 'X' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\OgreCVS\Ogre\ogrenew\Samples\Common\include\ExampleFrameListener.h(274) : error C2228: left of '.rel' must have class/struct/union
1>c:\OgreCVS\Ogre\ogrenew\Samples\Common\include\ExampleFrameListener.h(275) : error C2039: 'Y' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\OgreCVS\Ogre\ogrenew\Samples\Common\include\ExampleFrameListener.h(275) : error C2228: left of '.rel' must have class/struct/union
1>c:\OgreCVS\Ogre\ogrenew\Samples\Common\include\ExampleFrameListener.h(279) : error C2039: 'X' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\OgreCVS\Ogre\ogrenew\Samples\Common\include\ExampleFrameListener.h(279) : error C2228: left of '.rel' must have class/struct/union
1>c:\OgreCVS\Ogre\ogrenew\Samples\Common\include\ExampleFrameListener.h(280) : error C2039: 'Y' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\OgreCVS\Ogre\ogrenew\Samples\Common\include\ExampleFrameListener.h(280) : error C2228: left of '.rel' must have class/struct/union
1>.\OgreNewtonFrameListener.cpp(34) : error C2039: 'Y' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>.\OgreNewtonFrameListener.cpp(34) : error C2228: left of '.rel' must have class/struct/union
1>.\OgreNewtonFrameListener.cpp(35) : error C2039: 'X' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>.\OgreNewtonFrameListener.cpp(35) : error C2228: left of '.rel' must have class/struct/union
1>OgreNewtonApplication.cpp
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(151) : error C2660: 'OIS::InputManager::destroyInputSystem' : function does not take 1 arguments
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(274) : error C2039: 'X' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(274) : error C2228: left of '.rel' must have class/struct/union
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(275) : error C2039: 'Y' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(275) : error C2228: left of '.rel' must have class/struct/union
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(279) : error C2039: 'X' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(279) : error C2228: left of '.rel' must have class/struct/union
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(280) : error C2039: 'Y' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(280) : error C2228: left of '.rel' must have class/struct/union
1>demo01.cpp
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(151) : error C2660: 'OIS::InputManager::destroyInputSystem' : function does not take 1 arguments
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(274) : error C2039: 'X' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(274) : error C2228: left of '.rel' must have class/struct/union
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(275) : error C2039: 'Y' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(275) : error C2228: left of '.rel' must have class/struct/union
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(279) : error C2039: 'X' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(279) : error C2228: left of '.rel' must have class/struct/union
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(280) : error C2039: 'Y' : is not a member of 'OIS::MouseState'
1> c:\ogrecvs\ogre\ogrenew\samples\common\include\ois\OISMouse.h(41) : see declaration of 'OIS::MouseState'
1>c:\ogrecvs\ogre\ogrenew\samples\common\include\ExampleFrameListener.h(280) : error C2228: left of '.rel' must have class/struct/union
1>Generating Code...
1>Build log was saved at "file://c:\OgreCVS\Ogre\ogreaddons\ogrenewt\demos\Demo01_TheBasics\Build\Release\BuildLog.htm"
1>Demo01_TheBasics - 31 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

Game_Ender

20-02-2007 02:30:25

Yes you are. I don't think Wabler has finished the updates to make OgreNewt fully compatible with the latest Ogre and OIS. Either don't use the basic framelisteners (which most serious apps don't anyways), or just port it over to and submit a patch to save Wabler the trouble.

walaber

20-02-2007 02:47:48

everything is update to work with the version of OIS that has been prepared as a dependency for Eihort.

something must have changed in a more recent version of OIS.

walaber

20-02-2007 02:54:47

update

it looks like you need to change the ".X.rel" to ".relX", etc for all of the MouseState stuff to be compatible with the latest version of OIS.

Tux11

20-02-2007 03:11:39

really appreciate the help, i'll do the changes later tonight and let you know how it goes.

Tux11

20-02-2007 04:57:07

Those changes worked for the latest version, Long story short I ended up going with the prepackaged dependencies from the main page. There was one other thing with the newest version of OIS. There was a call to the inputmanager destructor that used to take mInputManager as a param but now it doesn't take any so i don't know if they changed the way that function works. Thanks again for the help