MyGUI and VC9 ! Display nothing...

compvis

11-03-2009 09:38:05

hi,

I compile MyGUI with VC9 (Ogre dependencies). All things in good (compiling) then i run demos (MyGUI demos), nothing displayed. Only render window with back color.

MyGUI log is:

----------------------------------------------------------------------------------------------------------------------------------
loging report for : 03/11/2009 09:27:53
----------------------------------------------------------------------------------------------------------------------------------

09:27:53 | General | Info | * Initialise: Gui | .\src\MyGUI_Gui.cpp | 55
09:27:53 | General | Info | * MyGUI version 2.3.0 | .\src\MyGUI_Gui.cpp | 59
09:27:53 | General | Info | Viewport : 1024 768 | .\src\MyGUI_Gui.cpp | 69
09:27:53 | General | Info | * Initialise: ResourceManager | .\src\MyGUI_ResourceManager.cpp | 41
09:27:53 | General | Info | ResourceManager successfully initialized | .\src\MyGUI_ResourceManager.cpp | 53
09:27:53 | General | Info | * Initialise: LayerManager | .\src\MyGUI_LayerManager.cpp | 41
09:27:53 | General | Info | LayerManager successfully initialized | .\src\MyGUI_LayerManager.cpp | 73
09:27:53 | General | Info | * Initialise: WidgetManager | .\src\MyGUI_WidgetManager.cpp | 62
09:27:53 | General | Info | * Register widget factory 'Widget' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'Button' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'Window' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'List' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'HScroll' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'VScroll' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'Edit' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'ComboBox' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'StaticText' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'Tab' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'TabItem' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'TabItem' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'Sheet' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'Progress' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'ItemBox' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'MultiList' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'StaticImage' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'Message' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'RenderBox' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'MenuCtrl' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'MenuItem' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'PopupMenu' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'MenuBar' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'ScrollView' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'DDContainer' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | * Register widget factory 'Canvas' | .\src\MyGUI_WidgetManager.cpp | 118
09:27:53 | General | Info | WidgetManager successfully initialized | .\src\MyGUI_WidgetManager.cpp | 93
09:27:53 | General | Info | * Initialise: InputManager | .\src\MyGUI_InputManager.cpp | 51
09:27:53 | General | Info | InputManager successfully initialized | .\src\MyGUI_InputManager.cpp | 74
09:27:53 | General | Info | * Initialise: SubWidgetManager | .\src\MyGUI_SubWidgetManager.cpp | 33
09:27:53 | General | Info | SubWidgetManager successfully initialized | .\src\MyGUI_SubWidgetManager.cpp | 49
09:27:53 | General | Info | * Initialise: SkinManager | .\src\MyGUI_SkinManager.cpp | 40
09:27:53 | General | Info | SkinManager successfully initialized | .\src\MyGUI_SkinManager.cpp | 46
09:27:53 | General | Info | * Initialise: FontManager | .\src\MyGUI_FontManager.cpp | 43
09:27:53 | General | Info | FontManager successfully initialized | .\src\MyGUI_FontManager.cpp | 47
09:27:53 | General | Info | * Initialise: ControllerManager | .\src\MyGUI_ControllerManager.cpp | 36
09:27:53 | General | Info | ControllerManager successfully initialized | .\src\MyGUI_ControllerManager.cpp | 40
09:27:53 | General | Info | * Initialise: PointerManager | .\src\MyGUI_PointerManager.cpp | 41
09:27:53 | General | Info | PointerManager successfully initialized | .\src\MyGUI_PointerManager.cpp | 50
09:27:53 | General | Info | * Initialise: ClipboardManager | .\src\MyGUI_ClipboardManager.cpp | 35
09:27:53 | General | Info | ClipboardManager successfully initialized | .\src\MyGUI_ClipboardManager.cpp | 44
09:27:53 | General | Info | * Initialise: LayoutManager | .\src\MyGUI_LayoutManager.cpp | 41
09:27:53 | General | Info | LayoutManager successfully initialized | .\src\MyGUI_LayoutManager.cpp | 47
09:27:53 | General | Info | * Initialise: DynLibManager | .\src\MyGUI_DynLibManager.cpp | 34
09:27:53 | General | Info | DynLibManager successfully initialized | .\src\MyGUI_DynLibManager.cpp | 36
09:27:53 | General | Info | * Initialise: PluginManager | .\src\MyGUI_PluginManager.cpp | 36
09:27:53 | General | Info | PluginManager successfully initialized | .\src\MyGUI_PluginManager.cpp | 40
09:27:53 | General | Info | * Initialise: DelegateManager | .\src\MyGUI_DelegateManager.cpp | 33
09:27:53 | General | Info | DelegateManager successfully initialized | .\src\MyGUI_DelegateManager.cpp | 37
09:27:53 | General | Info | * Initialise: LanguageManager | .\src\MyGUI_LanguageManager.cpp | 37
09:27:53 | General | Info | LanguageManager successfully initialized | .\src\MyGUI_LanguageManager.cpp | 44
09:27:53 | General | Info | Load ini file 'core_location.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
09:27:53 | General | Info | Load ini file 'core_keyboard.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
09:27:53 | General | Info | Load ini file 'core_language.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
09:27:53 | General | Info | Load ini file 'core_layer.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
09:27:53 | General | Info | Load ini file 'core_font.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
09:27:53 | General | Info | Load ini file 'core_theme.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
09:27:53 | General | Info | Load ini file 'core_resource.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
09:27:53 | General | Info | Load ini file 'core_skin.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
09:27:53 | General | Info | Load ini file 'core_pointer.xml' from resource group : General | .\src\MyGUI_ResourceManager.cpp | 147
09:27:53 | General | Info | Gui successfully initialized | .\src\MyGUI_Gui.cpp | 115
09:27:53 | General | Info | Font 'Default' using texture size 1024 x 128 | .\src\MyGUI_Font.cpp | 205
09:27:53 | General | Info | Font 'Default' using real height 17 pixels | .\src\MyGUI_Font.cpp | 206
09:27:53 | General | Info | Font 'DejaVuSans.14' using texture size 1024 x 128 | .\src\MyGUI_Font.cpp | 205
09:27:53 | General | Info | Font 'DejaVuSans.14' using real height 14 pixels | .\src\MyGUI_Font.cpp | 206
09:27:53 | General | Error | ResourceManager : 'external.xml', 'Failed to open XML file' , file='external.xml' , line=0 , col=0 | .\src\MyGUI_ResourceManager.cpp | 180
09:31:59 | General | Info | * Shutdown: Gui | .\src\MyGUI_Gui.cpp | 122
09:31:59 | General | Info | * Shutdown: PointerManager | .\src\MyGUI_PointerManager.cpp | 57
09:31:59 | General | Info | PointerManager successfully shutdown | .\src\MyGUI_PointerManager.cpp | 67
09:31:59 | General | Info | * Shutdown: InputManager | .\src\MyGUI_InputManager.cpp | 81
09:31:59 | General | Info | InputManager successfully shutdown | .\src\MyGUI_InputManager.cpp | 87
09:31:59 | General | Info | * Shutdown: SkinManager | .\src\MyGUI_SkinManager.cpp | 53
09:31:59 | General | Info | SkinManager successfully shutdown | .\src\MyGUI_SkinManager.cpp | 64
09:31:59 | General | Info | * Shutdown: SubWidgetManager | .\src\MyGUI_SubWidgetManager.cpp | 56
09:31:59 | General | Info | SubWidgetManager successfully shutdown | .\src\MyGUI_SubWidgetManager.cpp | 67
09:31:59 | General | Info | * Shutdown: LayerManager | .\src\MyGUI_LayerManager.cpp | 80
09:31:59 | General | Info | destroy layer 'Back' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'Overlapped' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'Middle' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'Modal' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'Main' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'Popup' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'FadeMiddle' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'Info' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'ToolTip' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'DragAndDrop' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'FadeBusy' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'Pointer' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'Fade' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | destroy layer 'Statistic' | .\src\MyGUI_LayerManager.cpp | 292
09:31:59 | General | Info | LayerManager successfully shutdown | .\src\MyGUI_LayerManager.cpp | 96
09:31:59 | General | Info | * Shutdown: FontManager | .\src\MyGUI_FontManager.cpp | 54
09:31:59 | General | Info | FontManager successfully shutdown | .\src\MyGUI_FontManager.cpp | 58
09:31:59 | General | Info | * Shutdown: ControllerManager | .\src\MyGUI_ControllerManager.cpp | 47
09:31:59 | General | Info | ControllerManager successfully shutdown | .\src\MyGUI_ControllerManager.cpp | 52
09:31:59 | General | Info | * Shutdown: ClipboardManager | .\src\MyGUI_ClipboardManager.cpp | 51
09:31:59 | General | Info | ClipboardManager successfully shutdown | .\src\MyGUI_ClipboardManager.cpp | 53
09:31:59 | General | Info | * Shutdown: LayoutManager | .\src\MyGUI_LayoutManager.cpp | 54
09:31:59 | General | Info | LayoutManager successfully shutdown | .\src\MyGUI_LayoutManager.cpp | 58
09:31:59 | General | Info | * Shutdown: PluginManager | .\src\MyGUI_PluginManager.cpp | 47
09:31:59 | General | Info | PluginManager successfully shutdown | .\src\MyGUI_PluginManager.cpp | 52
09:31:59 | General | Info | * Shutdown: DynLibManager | .\src\MyGUI_DynLibManager.cpp | 43
09:31:59 | General | Info | DynLibManager successfully shutdown | .\src\MyGUI_DynLibManager.cpp | 57
09:31:59 | General | Info | * Shutdown: DelegateManager | .\src\MyGUI_DelegateManager.cpp | 44
09:31:59 | General | Info | DelegateManager successfully shutdown | .\src\MyGUI_DelegateManager.cpp | 48
09:31:59 | General | Info | * Shutdown: LanguageManager | .\src\MyGUI_LanguageManager.cpp | 51
09:31:59 | General | Info | LanguageManager successfully shutdown | .\src\MyGUI_LanguageManager.cpp | 55
09:31:59 | General | Info | * Shutdown: ResourceManager | .\src\MyGUI_ResourceManager.cpp | 60
09:31:59 | General | Info | ResourceManager successfully shutdown | .\src\MyGUI_ResourceManager.cpp | 71
09:31:59 | General | Info | * Shutdown: WidgetManager | .\src\MyGUI_WidgetManager.cpp | 100
09:31:59 | General | Info | * Unregister widget factory 'List' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'HScroll' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'VScroll' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'Edit' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'ComboBox' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'StaticText' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'Tab' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'RenderBox' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'MenuCtrl' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'MenuItem' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'PopupMenu' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'MenuBar' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'ScrollView' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'DDContainer' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'Canvas' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'Widget' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'Button' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'Window' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'TabItem' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'Progress' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'ItemBox' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'MultiList' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'StaticImage' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | * Unregister widget factory 'Message' | .\src\MyGUI_WidgetManager.cpp | 125
09:31:59 | General | Info | WidgetManager successfully shutdown | .\src\MyGUI_WidgetManager.cpp | 111
09:31:59 | General | Info | Gui successfully shutdown | .\src\MyGUI_Gui.cpp | 167

How can i run MyGUI with VC9 (OgreSDK 1.6.1) ?

Thanks

Altren

11-03-2009 19:54:15

Weird. Show your Ogre log too.

Firstborn

09-04-2009 13:18:55

Same problem VC 9.0, Ogre 1.6.1 Shoggoth. Cant add any widget.

Logs sections

Ogre.log - Resource Manager Section:

14:53:38: Loading library .\RenderSystem_Direct3D9_d
14:53:39: Installing plugin: D3D9 RenderSystem
14:53:39: D3D9 : Direct3D9 Rendering Subsystem created.
14:53:39: D3D9: Driver Detection Starts
14:53:39: D3D9: Driver Detection Ends
14:53:39: Plugin successfully installed
14:53:39: Loading library .\RenderSystem_GL_d
14:53:39: Installing plugin: GL RenderSystem
14:53:39: OpenGL Rendering Subsystem created.
14:53:39: Plugin successfully installed
14:53:39: Loading library .\Plugin_ParticleFX_d
14:53:39: Installing plugin: ParticleFX
14:53:39: Particle Emitter Type 'Point' registered
14:53:39: Particle Emitter Type 'Box' registered
14:53:39: Particle Emitter Type 'Ellipsoid' registered
14:53:39: Particle Emitter Type 'Cylinder' registered
14:53:39: Particle Emitter Type 'Ring' registered
14:53:39: Particle Emitter Type 'HollowEllipsoid' registered
14:53:39: Particle Affector Type 'LinearForce' registered
14:53:39: Particle Affector Type 'ColourFader' registered
14:53:39: Particle Affector Type 'ColourFader2' registered
14:53:39: Particle Affector Type 'ColourImage' registered
14:53:39: Particle Affector Type 'ColourInterpolator' registered
14:53:39: Particle Affector Type 'Scaler' registered
14:53:39: Particle Affector Type 'Rotator' registered
14:53:39: Particle Affector Type 'DirectionRandomiser' registered
14:53:39: Particle Affector Type 'DeflectorPlane' registered
14:53:39: Plugin successfully installed
14:53:39: Loading library .\Plugin_BSPSceneManager_d
14:53:39: Installing plugin: BSP Scene Manager
14:53:39: Plugin successfully installed
14:53:39: Loading library .\Plugin_CgProgramManager_d
14:53:39: Installing plugin: Cg Program Manager
14:53:39: Plugin successfully installed
14:53:39: Loading library .\Plugin_PCZSceneManager_d.dll
14:53:39: Installing plugin: Portal Connected Zone Scene Manager
14:53:39: PCZone Factory Type 'ZoneType_Default' registered
14:53:39: Plugin successfully installed
14:53:39: Loading library .\Plugin_OctreeZone_d.dll
14:53:39: Installing plugin: Octree Zone Factory
14:53:39: Plugin successfully installed
14:53:39: Loading library .\Plugin_OctreeSceneManager_d
14:53:39: Installing plugin: Octree & Terrain Scene Manager
14:53:39: Plugin successfully installed
*-*-* OGRE Initialising
14:53:39: *-*-* Version 1.6.1 (Shoggoth)
14:53:39: Added resource location './' of type 'FileSystem' to resource group 'General'
14:53:39: Added resource location './media' of type 'FileSystem' to resource group 'General'
14:53:39: Added resource location './media' of type 'FileSystem' to resource group 'General'
14:53:39: Added resource location './media/materials/programs' of type 'FileSystem' to resource group 'General'
14:53:39: Added resource location './media/materials/scripts' of type 'FileSystem' to resource group 'General'
14:53:39: Added resource location './media/materials/textures' of type 'FileSystem' to resource group 'General'
14:53:39: Added resource location './media/models' of type 'FileSystem' to resource group 'General'


MuGUI.log - Errors Section:

General | Error | helper::getFilePath : filename 'core.xml' a lot of concurrences. | e:\mygui2.2.2_source\myguiengine\src\mygui_resourcepath.cpp | 143
General | Error | * helper::getFilePath : found [0] file : './media/core.xml' | e:\mygui2.2.2_source\myguiengine\src\mygui_resourcepath.cpp | 145
General | Error | * helper::getFilePath : found [1] file : './media/core.xml' | e:\mygui2.2.2_source\myguiengine\src\mygui_resourcepath.cpp | 145
General | Error | ResourceManager : 'core.xml', 'Failed to open XML file' , file='core.xml' , line=0 , col=0 | e:\mygui2.2.2_source\myguiengine\src\mygui_resourcemanager.cpp | 204
General | Info | Gui successfully initialized | e:\mygui2.2.2_source\myguiengine\src\mygui_gui.cpp | 112
General | Warning | Skin 'Button' not found, set Default | e:\mygui2.2.2_source\myguiengine\src\mygui_skinmanager.cpp | 73
General | Critical | Layer 'Main' is not found | e:\mygui2.2.2_source\myguiengine\src\mygui_layermanager.cpp | 199


last three errors as I understand the reason of impossibility load core .xml

Initialising MyGUI:

UserInterface(RenderWindow * gWindow, OIS::Keyboard * u_Key, OIS::Mouse * u_Mouse){
mInterface = new MyGUI::Gui();
mWindow = gWindow; mKey = u_Key; mMouse = u_Mouse;

mInterface->initialise(gWindow);
};


Attempt load widget:

bool UserInterface::frameStarted(const Ogre::FrameEvent& evt)
{
mInterface->injectFrameEntered(evt.timeSinceLastFrame);
MyGUI::ButtonPtr button = mInterface->createWidget<MyGUI::Button>("Button", 10, 10, 300, 26, MyGUI::Align::Default, "Main");
button->setCaption("exit");

return true;
}


I did not put the listeners of the button because a purpose was though that to see.

What i do incorrect?

Altren

09-04-2009 19:23:41

You have more than one core.xml in resources so MyGUI can't decide which one is correct. Remove one of them.

Firstborn

11-04-2009 18:46:38

Its panic, I twice rewrote interface classes, checked often times, saw this error in logs, but closed eyes, I could not think that wrote not correctly resources.cfg. After your answer I checked him... began to work, thank you.