Bapt
05-03-2006 01:14:22
I'm trying to understand how to use .osm files with ogre. I tried to build the Demo_oSceneLoader with the usual configuration for Visual Studio 2005 (as in the SettingUpAnApplication tutorial) but I get 25 errors :
I don't understand how I can make this work. Anybody?
Error 1 error C2039: 'TrackList' : is not a member of 'Ogre::Animation' c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 91
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 91
Error 3 error C2143: syntax error : missing ';' before '&' c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 91
Error 4 error C2065: 'trackList' : undeclared identifier c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 91
Error 5 error C2039: '_getTrackList' : is not a member of 'Ogre::Animation' c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 91
Error 6 error C3083: 'TrackList': the symbol to the left of a '::' must be a type c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 93
Error 7 error C2039: 'const_iterator' : is not a member of 'Ogre::Animation' c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 93
Error 8 error C2065: 'const_iterator' : undeclared identifier c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 93
Error 9 error C2146: syntax error : missing ';' before identifier 'it' c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 93
Error 10 error C2065: 'it' : undeclared identifier c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 93
Error 11 error C2228: left of '.begin' must have class/struct/union c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 93
Error 12 error C3083: 'TrackList': the symbol to the left of a '::' must be a type c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 94
Error 13 error C2039: 'const_iterator' : is not a member of 'Ogre::Animation' c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 94
Error 14 error C2146: syntax error : missing ';' before identifier 'iend' c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 94
Error 15 error C2065: 'iend' : undeclared identifier c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 94
Error 16 error C2228: left of '.end' must have class/struct/union c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 94
Error 17 error C2227: left of '->second' must point to class/struct/union/generic type c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 97
Error 18 error C2039: 'getAssociatedNode' : is not a member of 'Ogre::AnimationTrack' c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 98
Error 19 error C2227: left of '->resetToInitialState' must point to class/struct/union/generic type c:\documents and settings\baptiste\my documents\visual studio 2005\projects\oscenedemo2\oscenedemo2\include\oSceneLibDemo.h 98
Error 20 error C2664: 'Ogre::Root::getSceneManager' : cannot convert parameter 1 from 'Ogre::SceneType' to 'const Ogre::String &' c:\Documents and Settings\Baptiste\My Documents\Visual Studio 2005\Projects\oSceneDemo2\oSceneDemo2\src\OgreOSMScene.cpp 208
Error 21 error C2039: 'createTrack' : is not a member of 'Ogre::Animation' c:\Documents and Settings\Baptiste\My Documents\Visual Studio 2005\Projects\oSceneDemo2\oSceneDemo2\src\OgreOSMScene.cpp 396
Error 22 error C2039: 'getNumTracks' : is not a member of 'Ogre::Animation' c:\Documents and Settings\Baptiste\My Documents\Visual Studio 2005\Projects\oSceneDemo2\oSceneDemo2\src\OgreOSMScene.cpp 396
Error 23 error C2039: 'setTranslate' : is not a member of 'Ogre::KeyFrame' c:\Documents and Settings\Baptiste\My Documents\Visual Studio 2005\Projects\oSceneDemo2\oSceneDemo2\src\OgreOSMScene.cpp 413
Error 24 error C2039: 'setRotation' : is not a member of 'Ogre::KeyFrame' c:\Documents and Settings\Baptiste\My Documents\Visual Studio 2005\Projects\oSceneDemo2\oSceneDemo2\src\OgreOSMScene.cpp 425
Error 25 error C2664: 'Ogre::Root::getSceneManager' : cannot convert parameter 1 from 'Ogre::SceneType' to 'const Ogre::String &' c:\Documents and Settings\Baptiste\My Documents\Visual Studio 2005\Projects\oSceneDemo2\oSceneDemo2\src\OgreOSMScene.cpp 442
Warning 26 warning C4482: nonstandard extension used: enum 'Ogre::Light::LightTypes' used in qualified name c:\Documents and Settings\Baptiste\My Documents\Visual Studio 2005\Projects\oSceneDemo2\oSceneDemo2\src\OgreOSMScene.cpp 641
Warning 27 warning C4482: nonstandard extension used: enum 'Ogre::Light::LightTypes' used in qualified name c:\Documents and Settings\Baptiste\My Documents\Visual Studio 2005\Projects\oSceneDemo2\oSceneDemo2\src\OgreOSMScene.cpp 644
Warning 28 warning C4482: nonstandard extension used: enum 'Ogre::Light::LightTypes' used in qualified name c:\Documents and Settings\Baptiste\My Documents\Visual Studio 2005\Projects\oSceneDemo2\oSceneDemo2\src\OgreOSMScene.cpp 652
I don't understand how I can make this work. Anybody?