Struggling with MyGUI.

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
Jay721
Halfling
Posts: 62
Joined: Mon Jan 29, 2018 8:19 am

Struggling with MyGUI.

Post by Jay721 »

Hi

I'm trying to add MyGUI to a project. Everything goes fine until I load in MyGUI_Media resources folder.

This only crashes when the mygui resources have been loaded:

Code: Select all

mGUI = new MyGUI::Gui();
mGUI->initialise();
I'm completely stumped... This is the MyGUI log:

Code: Select all

15:52:26  |  Platform  |  Info  |  * Initialise: RenderManager  |  ...\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2RenderManager.cpp  |  57
15:52:26  |  Platform  |  Info  |  RenderManager successfully initialized  |  ...\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2RenderManager.cpp  |  92
15:52:26  |  Platform  |  Info  |  * Initialise: DataManager  |  ...\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2DataManager.cpp  |  27
15:52:26  |  Platform  |  Info  |  DataManager successfully initialized  |  ...\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2DataManager.cpp  |  35
15:52:26  |  Core  |  Info  |  * Initialise: Gui  |  ...\MyGUIEngine\src\MyGUI_Gui.cpp  |  61
15:52:26  |  Core  |  Info  |  * MyGUI version 3.2.3  |  ...\MyGUIEngine\src\MyGUI_Gui.cpp  |  66
15:52:26  |  Core  |  Info  |  * Initialise: ResourceManager  |  ...\MyGUIEngine\src\MyGUI_ResourceManager.cpp  |  32
15:52:26  |  Core  |  Info  |  ResourceManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_ResourceManager.cpp  |  40
15:52:26  |  Core  |  Info  |  * Initialise: LayerManager  |  ...\MyGUIEngine\src\MyGUI_LayerManager.cpp  |  33
15:52:26  |  Core  |  Info  |  LayerManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_LayerManager.cpp  |  41
15:52:26  |  Core  |  Info  |  * Initialise: WidgetManager  |  ...\MyGUIEngine\src\MyGUI_WidgetManager.cpp  |  53
15:52:26  |  Core  |  Info  |  WidgetManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_WidgetManager.cpp  |  84
15:52:26  |  Core  |  Info  |  * Initialise: InputManager  |  ...\MyGUIEngine\src\MyGUI_InputManager.cpp  |  46
15:52:26  |  Core  |  Info  |  InputManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_InputManager.cpp  |  66
15:52:26  |  Core  |  Info  |  * Initialise: SubWidgetManager  |  ...\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp  |  36
15:52:26  |  Core  |  Info  |  SubWidgetManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp  |  56
15:52:26  |  Core  |  Info  |  * Initialise: SkinManager  |  ...\MyGUIEngine\src\MyGUI_SkinManager.cpp  |  36
15:52:26  |  Core  |  Info  |  SkinManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_SkinManager.cpp  |  46
15:52:26  |  Core  |  Info  |  * Initialise: FontManager  |  ...\MyGUIEngine\src\MyGUI_FontManager.cpp  |  32
15:52:26  |  Core  |  Info  |  FontManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_FontManager.cpp  |  42
15:52:26  |  Core  |  Info  |  * Initialise: ControllerManager  |  ...\MyGUIEngine\src\MyGUI_ControllerManager.cpp  |  33
15:52:26  |  Core  |  Info  |  ControllerManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_ControllerManager.cpp  |  42
15:52:26  |  Core  |  Info  |  * Initialise: PointerManager  |  ...\MyGUIEngine\src\MyGUI_PointerManager.cpp  |  43
15:52:26  |  Core  |  Info  |  PointerManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_PointerManager.cpp  |  62
15:52:26  |  Core  |  Info  |  * Initialise: ClipboardManager  |  ...\MyGUIEngine\src\MyGUI_ClipboardManager.cpp  |  32
15:52:26  |  Core  |  Info  |  ClipboardManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_ClipboardManager.cpp  |  39
15:52:26  |  Core  |  Info  |  * Initialise: LayoutManager  |  ...\MyGUIEngine\src\MyGUI_LayoutManager.cpp  |  28
15:52:26  |  Core  |  Info  |  LayoutManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_LayoutManager.cpp  |  35
15:52:26  |  Core  |  Info  |  * Initialise: DynLibManager  |  ...\MyGUIEngine\src\MyGUI_DynLibManager.cpp  |  26
15:52:26  |  Core  |  Info  |  DynLibManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_DynLibManager.cpp  |  30
15:52:26  |  Core  |  Info  |  * Initialise: PluginManager  |  ...\MyGUIEngine\src\MyGUI_PluginManager.cpp  |  30
15:52:26  |  Core  |  Info  |  PluginManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_PluginManager.cpp  |  34
15:52:26  |  Core  |  Info  |  * Initialise: LanguageManager  |  ...\MyGUIEngine\src\MyGUI_LanguageManager.cpp  |  30
15:52:26  |  Core  |  Info  |  LanguageManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_LanguageManager.cpp  |  34
15:52:26  |  Core  |  Info  |  * Initialise: FactoryManager  |  ...\MyGUIEngine\src\MyGUI_FactoryManager.cpp  |  25
15:52:26  |  Core  |  Info  |  FactoryManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_FactoryManager.cpp  |  27
15:52:26  |  Core  |  Info  |  * Initialise: ToolTipManager  |  ...\MyGUIEngine\src\MyGUI_ToolTipManager.cpp  |  33
15:52:26  |  Core  |  Info  |  ToolTipManager successfully initialized  |  ...\MyGUIEngine\src\MyGUI_ToolTipManager.cpp  |  45
15:52:26  |  Core  |  Info  |  Load ini file 'MyGUI_GeneratedFonts.xml'  |  ...\MyGUIEngine\src\MyGUI_ResourceManager.cpp  |  114
Lax
Hobgoblin
Posts: 583
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 50

Re: Struggling with MyGUI.

Post by Lax »

Hi,

you also need to init MyGUI plattform etc.

Code: Select all

myGuiOgrePlatform = new MyGUI::Ogre2Platform();
myGuiOgrePlatform->initialise(this->renderWindow, sceneManager, "Essential", logName);
At best, read this forum topic viewtopic.php?f=25&t=83569&start=25, because there are several steps, that needs to be done, e.g. custom MyGUI pass for compositor.

Best Regards
Lax

http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62

Post Reply