MyGUI.OgrePlatform.lib problem

seidan

24-04-2010 03:38:48

hi all

i have a problem with MyGUi.OgrePlatform.lib

when i put this

MyGUI::OgrePlatform* mPlatform = new MyGUI::OgrePlatform();

show me this

msvcprt.lib(MSVCP90.dll) : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBDABV10@@Z) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreTexture.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "bool __cdecl std::operator<<char,struct std::char_traits<char>,class std::allocator<char> >(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> > const &)" (??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >::str(void)const " (?str@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >(int)" (??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator=(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::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> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >::`vbase destructor'(void)" (??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: static int __cdecl std::char_traits<char>::eof(void)" (?eof@?$char_traits@D@std@@SAHXZ) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: static bool __cdecl std::char_traits<char>::eq_int_type(int const &,int const &)" (?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) already defined in MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreTexture.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataStream.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreTexture.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataStream.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAEXXZ)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAEXXZ)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)" (?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAEXXZ)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)" (?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAEXXZ)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: unresolved external symbol "protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::showmanyc(void)" (?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JXZ)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::showmanyc(void)" (?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JXZ)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: unresolved external symbol "protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::xsgetn(char *,__int64)" (?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JPAD_J@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::xsgetn(char *,__int64)" (?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JPAD_J@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: unresolved external symbol "protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::xsputn(char const *,__int64)" (?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JPBD_J@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::xsputn(char const *,__int64)" (?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JPBD_J@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: unresolved external symbol "protected: virtual class std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::setbuf(char *,__int64)" (?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PAD_J@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "protected: virtual class std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::setbuf(char *,__int64)" (?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PAD_J@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) __int64 const std::_BADOFF" (__imp_?_BADOFF@std@@3_JB)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) __int64 const std::_BADOFF" (__imp_?_BADOFF@std@@3_JB)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,__int64)" (__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE_JPBD_J@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,__int64)" (__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE_JPBD_J@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreTexture.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,__int64)" (__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE_JPBD_J@Z)


the demos works fine, i use the code from de wiki

sorry for my bad english

seidan

25-04-2010 01:00:58

problem solved

now i cant see the gui, i have this


#include "ExampleApplication.h"
#include "MyGUI.h"
#include "MyGUI_OgrePlatform.h"

class TutorialApplication : public ExampleApplication
{
protected:
public:
TutorialApplication()
{
}

~TutorialApplication()
{
mGUI->shutdown();
delete mGUI;
mGUI = 0;
mPlatform->shutdown();
delete mPlatform;
mPlatform = 0;
}
protected:
MyGUI::Gui * mGUI;
MyGUI::OgrePlatform* mPlatform;
virtual void createCamera(void)
{
mCamera = mSceneMgr->createCamera("PlayerCam");
mCamera->setPosition(Vector3(0,10,500));
mCamera->lookAt(Vector3(0,0,0));
mCamera->setNearClipDistance(5);
}

virtual void createViewports(void)
{
Viewport* vp = mWindow->addViewport(mCamera);
vp->setBackgroundColour(ColourValue(0,0,0));
mCamera->setAspectRatio(Real(vp->getActualWidth()) / Real(vp->getActualHeight()));
}

void createScene(void)
{
Entity *ent;
Light *light;

mSceneMgr->setAmbientLight( ColourValue( 0, 0, 0 ) );
mSceneMgr->setShadowTechnique( SHADOWTYPE_STENCIL_ADDITIVE );

ent = mSceneMgr->createEntity("Ninja", "ninja.mesh");
ent->setCastShadows(true);
mSceneMgr->getRootSceneNode()->createChildSceneNode()->attachObject(ent);

Plane plane(Vector3::UNIT_Y, 0);

MeshManager::getSingleton().createPlane("ground",
ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, plane,
1500,1500,20,20,true,1,5,5,Vector3::UNIT_Z);

ent = mSceneMgr->createEntity("GroundEntity", "ground");
mSceneMgr->getRootSceneNode()->createChildSceneNode()->attachObject(ent);

ent->setMaterialName("Examples/Rockwall");
ent->setCastShadows(false);

light = mSceneMgr->createLight("Light1");
light->setType(Light::LT_POINT);
light->setPosition(Vector3(0, 150, 250));

light->setDiffuseColour(1.0, 0.0, 0.0);
light->setSpecularColour(1.0, 0.0, 0.0);

light = mSceneMgr->createLight("Light3");
light->setType(Light::LT_DIRECTIONAL);
light->setDiffuseColour(ColourValue(.25, .25, 0));
light->setSpecularColour(ColourValue(.25, .25, 0));

light->setDirection(Vector3( 0, -1, 1 ));

light = mSceneMgr->createLight("Light2");
light->setType(Light::LT_SPOTLIGHT);
light->setDiffuseColour(0, 0, 1.0);
light->setSpecularColour(0, 0, 1.0);

light->setDirection(-1, -1, 0);
light->setPosition(Vector3(300, 300, 0));

light->setSpotlightRange(Degree(35), Degree(50));

mPlatform = new MyGUI::OgrePlatform();
mPlatform->initialise(mWindow, mSceneMgr); // mWindow is Ogre::RenderWindow*, mSceneManager is Ogre::SceneManager*
mGUI = new MyGUI::Gui();
mGUI->initialise();

mPlatform->getRenderManagerPtr()->setActiveViewport(1);
MyGUI::ButtonPtr button = mGUI->createWidget<MyGUI::Button>("Button", 10, 10, 300, 26, MyGUI::Align::Default, "Main");

}
};

Altren

25-04-2010 15:00:54

Check MyGUI.log

seidan

26-04-2010 00:20:24

this is MyGui.log

----------------------------------------------------------------------------------------------------------------------------------
loging report for : 04/25/2010 18:44:27
----------------------------------------------------------------------------------------------------------------------------------

18:44:27 | Platform | Info | * Initialise: OgreRenderManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 26
18:44:27 | Platform | Info | OgreRenderManager successfully initialized | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 54
18:44:27 | Platform | Info | * Initialise: OgreDataManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 45
18:44:27 | Platform | Info | OgreDataManager successfully initialized | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 49
18:44:27 | Core | Info | * Initialise: Gui | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 82
18:44:27 | Core | Info | * MyGUI version 3.0.1 | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 86
18:44:27 | Core | Info | * Initialise: ResourceManager | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 43
18:44:27 | Core | Info | ResourceManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 51
18:44:27 | Core | Info | * Initialise: LayerManager | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 44
18:44:27 | Core | Info | LayerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 52
18:44:27 | Core | Info | * Initialise: WidgetManager | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 66
18:44:27 | Core | Info | WidgetManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 105
18:44:27 | Core | Info | * Initialise: InputManager | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 41
18:44:27 | Core | Info | InputManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 58
18:44:27 | Core | Info | * Initialise: SubWidgetManager | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 44
18:44:27 | Core | Info | SubWidgetManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 64
18:44:27 | Core | Info | * Initialise: SkinManager | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 46
18:44:27 | Core | Info | SkinManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 54
18:44:27 | Core | Info | * Initialise: FontManager | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 43
18:44:27 | Core | Info | FontManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 52
18:44:27 | Core | Info | * Initialise: ControllerManager | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 41
18:44:27 | Core | Info | ControllerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 51
18:44:27 | Core | Info | * Initialise: PointerManager | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 51
18:44:27 | Core | Info | PointerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 69
18:44:27 | Core | Info | * Initialise: ClipboardManager | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 82
18:44:27 | Core | Info | ClipboardManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 96
18:44:27 | Core | Info | * Initialise: LayoutManager | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 42
18:44:27 | Core | Info | LayoutManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 48
18:44:27 | Core | Info | * Initialise: DynLibManager | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 34
18:44:27 | Core | Info | DynLibManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 36
18:44:27 | Core | Info | * Initialise: PluginManager | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 36
18:44:27 | Core | Info | PluginManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 40
18:44:27 | Core | Info | * Initialise: LanguageManager | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 40
18:44:27 | Core | Info | LanguageManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 44
18:44:27 | Core | Info | * Initialise: FactoryManager | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 34
18:44:27 | Core | Info | FactoryManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 37
18:44:27 | Core | Info | Load ini file 'core_theme.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
18:44:27 | Core | Info | Load ini file 'core_language.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
18:44:27 | Core | Info | Load ini file 'core_font.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
18:44:27 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.17' using texture size 512 x 256 | ..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 203
18:44:27 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.17' using real height 17 pixels | ..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 204
18:44:27 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.14' using texture size 256 x 256 | ..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 203
18:44:27 | Core | Info | ResourceTrueTypeFont 'font_DejaVuSans.14' using real height 14 pixels | ..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 204
18:44:27 | Core | Info | Load ini file 'core_resource.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
18:44:27 | Core | Info | Load ini file 'core_skin.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
18:44:27 | Core | Info | Load ini file 'core_pointer.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
18:44:27 | Core | Info | Load ini file 'core_layer.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
18:44:27 | Core | Info | Load ini file 'core_settings.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
18:44:27 | Core | Info | Gui successfully initialized | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 129
18:44:29 | Core | Info | * Shutdown: Gui | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 136
18:44:29 | Core | Info | * Shutdown: PointerManager | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 76
18:44:29 | Core | Info | PointerManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 92
18:44:29 | Core | Info | * Shutdown: InputManager | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 65
18:44:29 | Core | Info | InputManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 70
18:44:29 | Core | Info | * Shutdown: SkinManager | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 61
18:44:29 | Core | Info | SkinManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 66
18:44:29 | Core | Info | * Shutdown: SubWidgetManager | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 71
18:44:29 | Core | Info | SubWidgetManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 91
18:44:29 | Core | Info | * Shutdown: LayerManager | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 59
18:44:29 | Core | Info | destroy layer 'Wallpaper' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'Back' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'Overlapped' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'Middle' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'Modal' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'Main' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'Popup' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'FadeMiddle' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'Info' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'ToolTip' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'DragAndDrop' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'FadeBusy' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'Pointer' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'Fade' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | destroy layer 'Statistic' | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 207
18:44:29 | Core | Info | LayerManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 70
18:44:29 | Core | Info | * Shutdown: FontManager | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 59
18:44:29 | Core | Info | FontManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 66
18:44:29 | Core | Info | * Shutdown: ControllerManager | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 58
18:44:29 | Core | Info | ControllerManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 69
18:44:29 | Core | Info | * Shutdown: ClipboardManager | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 103
18:44:29 | Core | Info | ClipboardManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 105
18:44:29 | Core | Info | * Shutdown: LayoutManager | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 55
18:44:29 | Core | Info | LayoutManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 59
18:44:29 | Core | Info | * Shutdown: PluginManager | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 47
18:44:29 | Core | Info | PluginManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 52
18:44:29 | Core | Info | * Shutdown: DynLibManager | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 43
18:44:29 | Core | Info | DynLibManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 57
18:44:29 | Core | Info | * Shutdown: LanguageManager | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 51
18:44:29 | Core | Info | LanguageManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 55
18:44:29 | Core | Info | * Shutdown: ResourceManager | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 58
18:44:29 | Core | Info | ResourceManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 68
18:44:29 | Core | Info | * Shutdown: FactoryManager | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 44
18:44:29 | Core | Info | FactoryManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 46
18:44:29 | Core | Info | * Shutdown: WidgetManager | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 112
18:44:29 | Core | Info | WidgetManager successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 122
18:44:29 | Core | Info | Gui successfully shutdown | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 175
18:44:29 | Platform | Info | * Shutdown: OgreRenderManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 61
18:44:29 | Platform | Info | OgreRenderManager successfully shutdown | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 69
18:44:29 | Platform | Info | * Shutdown: OgreDataManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 56
18:44:29 | Platform | Info | OgreDataManager successfully shutdown | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 58

Ripgiblet

02-10-2010 19:58:01

How did you fix the first problem, I am getting the same thing... (after upgrading from Visual Studio 9 to Visual Studio 10... no code changes, worked in Visual Studio 9, but does not work now....)

Creating library C:\Users\Mark\Documents\RosDevl\Bin\Release\PhysicsTest.lib and object C:\Users\Mark\Documents\RosDevl\Bin\Release\PhysicsTest.exp
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,int)" (__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,int)" (__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::swap(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (__imp_?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXAAV12@@Z)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataStream.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::clear(void)" (__imp_?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ)
1>C:\Users\Mark\Documents\RosDevl\Bin\Release\PhysicsTest.exe : fatal error LNK1120: 3 unresolved externals


Also for future reference its nice if you solve a problem, to say how you solved it, not "ok I solved the problem." lol:]

Ripgiblet

02-10-2010 20:05:21

Ok the problem is that previously I was linking the old MyGUI.OgrePlatform.lib and in MyGUI 3.01 its compiles to MyGUI.lib.....
And it must have previously worked since compiled with Visual Studio 9, so when I was recompiling MyGUI with Visual Studio 10 I was not updating the lib that I was linking....

Anyway cya's:]

ConfusedGuy

27-10-2010 18:43:28

hi.
a had problems with this too.

mainly the error has to do with cmake. it will create wrong dependencies in the vs project files because of that dot in 'MyGUI.OgrePlatform'. It will be fixed in Version 2.8.3, since than try to use a nightly build :-)
Or change the name either in the cmakescripts or in the projectfiles.

Regards

IlBrillanteJack

27-10-2010 20:44:03

Hello mates

Since I did not want to create another topic for my problem, I thought about writing here.
I'm trying to use MyGUI a few days without success, maybe there some detail that escapes me. I used the example of the wiki, but I did not understand much. A little something I've understood by reading the API, but I would really help me if any of you put a link to a simple Ogre standard project , which MyGUI is used and the use of method newDelegate.
Nothing complicated just to understand what I'm wrong.
Thanks in advance.

OgreSDK v1.7.1
MyGUI v3.0.1

Altren

27-10-2010 21:39:16

You can look at MyGUI demos - they use MyGUI and OGRE.
And about delegates: http://www.ogre3d.org/tikiwiki/MyGUI+use+delegates

IlBrillanteJack

29-10-2010 17:55:43

Altren Thanks, you were very kind.
But unfortunately I still can not understand the operation. In fact, I created this small test project, which compiles perfectly.
Only that does not display the button created with the libraries of MyGUI, method createGUI.
Obviously it is my fault, I missed something for a correct view of the button?
Thank you for your kindness and helpfulness.

OgreTutorial.cpp

/*
-----------------------------------------------------------------------------
Filename: OgreTutorial.cpp
-----------------------------------------------------------------------------


This source file is generated by the
___ _ __ __ _ _
/___\__ _ _ __ ___ /_\ _ __ _ __/ / /\ \ (_)______ _ _ __ __| |
// // _` | '__/ _ \ //_\\| '_ \| '_ \ \/ \/ / |_ / _` | '__/ _` |
/ \_// (_| | | | __/ / _ \ |_) | |_) \ /\ /| |/ / (_| | | | (_| |
\___/ \__, |_| \___| \_/ \_/ .__/| .__/ \/ \/ |_/___\__,_|_| \__,_|
|___/ |_| |_|
Ogre 1.7.x Application Wizard for VC9 (August 2010)
http://code.google.com/p/ogreappwizards/
-----------------------------------------------------------------------------
*/

#include "OgreTutorial.h"

//funzione globale per MyGUI
static void funzione(MyGUI::Widget* _widget)
{
//per ora non fa niente...
}

//-------------------------------------------------------------------------------------
OgreTutorial::OgreTutorial(void)
{
}
//-------------------------------------------------------------------------------------
OgreTutorial::~OgreTutorial(void)
{
}

//-------------------------------------------------------------------------------------
void OgreTutorial::createGUI(void)
{
mPlatform = new MyGUI::OgrePlatform();
mPlatform->initialise(mWindow, mSceneMgr);
mGUI = new MyGUI::Gui();
mGUI->initialise();

MyGUI::ButtonPtr button = mGUI->createWidget<MyGUI::Button>("Button", 10, 10, 300, 26, MyGUI::Align::Default, "Main");
button->setCaption("ESCI");
button->eventMouseButtonClick = MyGUI::newDelegate(funzione);
}

void OgreTutorial::createScene(void)
{
mSceneMgr->setAmbientLight(Ogre::ColourValue::White);
Ogre::Entity* ogreHead = mSceneMgr->createEntity("Head", "ogrehead.mesh");
Ogre::SceneNode* headNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
headNode->attachObject(ogreHead);
}

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
#else
int main(int argc, char *argv[])
#endif
{
// Create application object
OgreTutorial app;

try {
app.go();
} catch( Ogre::Exception& e ) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
std::cerr << "An exception has occured: " <<
e.getFullDescription().c_str() << std::endl;
#endif
}

return 0;
}

#ifdef __cplusplus
}
#endif

Altren

29-10-2010 20:01:17

You should check MyGUI.log. Code looks correct, I guess something wrong with resources - you need MyGUI_Media for your application.