Cannot load file "core.xml" and other *.layout files

telchar

30-08-2009 13:29:41

Hi there,

I'm using the MyGUI release v2.2.2 and Ogre 1.6.3 on Ubuntu 9.04.

My program crashes when i load the gui, and the MyGUI log file tell me this:

ResourceManager : 'core.xml', 'Failed to open XML file' , file='core.xml' , line=0 , col=0 | MyGUI_ResourceManager.cpp | 204
Gui successfully initialized | MyGUI_Gui.cpp | 112
LayoutManager : 'debug.layout', 'Failed to open XML file' , file='debug.layout' , line=0 , col=0 | MyGUI_ResourceManager.cpp | 204
GuiManager Initialized
LayoutManager : 'startup.layout', 'Failed to open XML file' , file='startup.layout' , line=0 , col=0 | MyGUI_ResourceManager.cpp | 204
Widget 'DebugWindow' not found | MyGUI_WidgetManager.cpp | 158
Segmentation Fault

The Ogre.log says this:
14:47:14: OGRE EXCEPTION(10:MyGUIException): Widget 'DebugWindow' not found
in MyGUI at MyGUI_WidgetManager.cpp (line 158)

which is quite normal because the debug.layout is not loaded.


Any idea why i get this problem ?

Five_stars

30-08-2009 14:09:50

Seems, that you didn't write path to MyGUI resources (MyGUI_Media folder) in Ogre resource file.

telchar

30-08-2009 14:12:48

Well it looks like this:

1 [Bootstrap]
2 Zip=../media/OgreCore.zip
3
4 [General]
5 FileSystem=../media
6 FileSystem=../media/tests
7 FileSystem=../gui
8
9 [Objects]
10 FileSystem=../media/objects
11
12 [Particles]
13 FileSystem=../media/particles

The mygui resources files are in the folder /media/gui and my executable in the folder /bin/

telchar

30-08-2009 14:14:54

Ok, so i'm stupid :mrgreen: sorry