oFusion Loader problems

winder

01-12-2007 17:04:59

hello all

i just tried to work with ofusion and made a simple scene. But i'm having problems with the loading process.

There isn't a single tutorial that i can read and learn what is needed exactly in order to load an osm scene file. Manual says about some cpp files and some header files... i copy all of them in my project folder, and i manage to make a compily (with some warnings though), but when i'm trying to execute the exe file, then the app doesn't even starts...(pop's up a "pls tell microsoft about this problem" ).

P.S even the oSceneLoader demo causes errors during compile...

Lioric

03-12-2007 00:37:15

Provide more details,

what compiler are you using,
what are the warings or errors,
have you debugged your application?
what is your application stack trace?

The issue is in your environment or your application

All you need to load scene is described in the documentation and sampled in the demo application (add the include and cpp files and load the scene as the demo shows)

winder

03-12-2007 10:20:06

Provide more details,

what compiler are you using,
what are the warings or errors,
have you debugged your application?
what is your application stack trace?

The issue is in your environment or your application

All you need to load scene is described in the documentation and sampled in the demo application (add the include and cpp files and load the scene as the demo shows)


I'm using vs 2005. When i try to compile the demo loader i have these 3 errors:

\oscenelibdemo.h(59) : error C2065: 'mInputDevice' : undeclared identifier

\oscenelibdemo.h(59) : error C2227: left of '->isKeyDown' must point to class/struct/union/generic type

\oscenelibdemo.h(59) : error C2065: 'KC_C' : undeclared identifier

As for my project, when i buld it i have no errors, but in debug sais that assertion failed, (Expression: Ms_singleton)

that's all

thanks Lioric for your help.

Lioric

03-12-2007 15:37:23

Those errors are because the demo is for dagon, to update it you need to change the line that query the keyboard state to use the OIS methods

About your application assertion, you need to provide the exact line of it and the call stack to define what are you doing incorrectly

winder

05-12-2007 15:05:38

i deleted the part that has the old input system...bu still many warnings and erros...

1>------ Build started: Project: Demo_oSceneLoader, Configuration: Release Win32 ------
1>Compiling...
1>tinyxmlerror.cpp
1>tinyxml.cpp
1>..\TinyXML\tinyxml.cpp(91) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(345) : see declaration of 'sprintf'
1>..\TinyXML\tinyxml.cpp(536) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(345) : see declaration of 'sprintf'
1>..\TinyXML\tinyxml.cpp(716) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
1>..\TinyXML\tinyxml.cpp(760) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
1>..\TinyXML\tinyxml.cpp(870) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(345) : see declaration of 'sprintf'
1>..\TinyXML\tinyxml.cpp(877) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(345) : see declaration of 'sprintf'
1>tinystr.cpp
1>tinyxmlparser.cpp
1>OgreOSMScene.cpp
1>Generating Code...
1>Linking...
1>oSceneLibDemo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl OIS::InputManager::destroyInputSystem(class OIS::InputManager *)" (__imp_?destroyInputSystem@InputManager@OIS@@SAXPAV12@@Z) referenced in function "public: virtual void __thiscall ExampleFrameListener::windowClosed(class Ogre::RenderWindow *)" (?windowClosed@ExampleFrameListener@@UAEXPAVRenderWindow@Ogre@@@Z)
1>oSceneLibDemo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class OIS::InputManager * __cdecl OIS::InputManager::createInputSystem(class std::multimap<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > &)" (__imp_?createInputSystem@InputManager@OIS@@SAPAV12@AAV?$multimap@V?
$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?
$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U
?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@
@std@@@2@@std@@@Z) referenced in function "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z)
1>.\..\bin\Release/Demo_oSceneLoader.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\OgreSDK\Projects\oSceneLoader_demo\obj\Release\BuildLog.htm"
1>Demo_oSceneLoader - 3 error(s), 6 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


So how can a beginner like me load a scene in the game??! it's really frustrating... :roll:

Anyone has a working example pls? (for the current ogre version)

Lioric

06-12-2007 02:31:22

You need to add the ois.lib file (or the ois_d.lib) to the additional linker dependencies in your project

I will post the updated version of the demo project in the next hours

winder

18-12-2007 22:39:22

any news for the updated demo? it would be really helpful.

Ruslan

14-05-2008 19:34:38

any news for the updated demo? it would be really helpful.HELP