So today I was testing out CEGUI in my ogre test, using the Ogre renderer in CEGUI. I was following the tutorial in http://cegui.org.uk/wiki/CEGUI_In_Pract ... troduction when I noticed the XML *.schema file wasn't loading properly. The whole program just stood there doing nothing with black screen immediately after trying to load the schema. Here's what I'm trying to do, right after initializing ogre and my resource groups and physics:
Code: Select all
renderer = &CEGUI::OgreRenderer::bootstrapSystem(*(root->getRenderTarget("Hello Ogre World")));
CEGUI::SchemeManager::getSingleton().createFromFile("TaharezLook.scheme"); // <- hangs here
I tried debugging it but the result was even more cryptic. The program just doesn't go any further than the following part of OgreDataStream.cpp. It doesn't even crash or anything. It just simply does nothing.
Code: Select all
size_t FileStreamDataStream::read(void* buf, size_t count)
{
mInStream->read(static_cast<char*>(buf), static_cast<std::streamsize>(count)); // <- here
return (size_t)mInStream->gcount();
}
So far I have tried downgrading ogre from 1.10 to 1.9, changing XML parsers, changing the layout of the schema file, changing file permissions even to 777 and rebuilding everything a million times with different settings. None of this has worked.
My CEGUI.log is here (note: the only part omitted from this log is everything above the essential section, the log doesn't continue further.)
Code: Select all
28/01/2016 03:43:20 (Std) ********************************************************************************
28/01/2016 03:43:20 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
28/01/2016 03:43:20 (Std) ********************************************************************************
28/01/2016 03:43:20 (Std) ---- Version: 0.8.4 (Build: Jan 28 2016 GNU/Linux g++ 4.8.4 64 bit) ----
28/01/2016 03:43:20 (Std) ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
28/01/2016 03:43:20 (Std) ---- XML Parser module is: CEGUI::LibxmlParser - Official libxml2 based parser module for CEGUI ----
28/01/2016 03:43:20 (Std) ---- Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine. ----
28/01/2016 03:43:20 (Std) ---- Scripting module is: None ----
28/01/2016 03:43:20 (Std) ********************************************************************************
28/01/2016 03:43:20 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
28/01/2016 03:43:20 (Std) ********************************************************************************
28/01/2016 03:43:20 (Std)
28/01/2016 03:43:20 (Std) ---- Begining CEGUI System initialisation ----
28/01/2016 03:43:20 (Std) [CEGUI::ImageManager] Singleton created (0xd8dbc0)
28/01/2016 03:43:20 (Std) [CEGUI::ImageManager] Registered Image type: BasicImage
28/01/2016 03:43:20 (Std) CEGUI::FontManager singleton created. (0xd8e280)
28/01/2016 03:43:20 (Std) CEGUI::WindowFactoryManager singleton created
28/01/2016 03:43:20 (Std) CEGUI::WindowManager singleton created (0xd8cf00)
28/01/2016 03:43:20 (Std) CEGUI::SchemeManager singleton created. (0xd8cf90)
28/01/2016 03:43:20 (Std) CEGUI::GlobalEventSet singleton created. (0xd8cc90)
28/01/2016 03:43:20 (Std) CEGUI::AnimationManager singleton created (0xd8d0c0)
28/01/2016 03:43:20 (Std) CEGUI::WidgetLookManager singleton created. (0xd8dc40)
28/01/2016 03:43:20 (Std) CEGUI::WindowRendererManager singleton created (0xd376b0)
28/01/2016 03:43:20 (Std) CEGUI::RenderEffectManager singleton created (0xd8cde0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'DefaultWindow' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'DefaultWindow' windows added. (0xd91590)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'DragContainer' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'DragContainer' windows added. (0xd91670)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'ScrolledContainer' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'ScrolledContainer' windows added. (0xd91840)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'ClippedContainer' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'ClippedContainer' windows added. (0xd91a20)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/PushButton' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/PushButton' windows added. (0xd91bd0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/RadioButton' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/RadioButton' windows added. (0xd91ee0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/Combobox' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/Combobox' windows added. (0xd92080)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/ComboDropList' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/ComboDropList' windows added. (0xd92220)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/Editbox' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/Editbox' windows added. (0xd922e0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/FrameWindow' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/FrameWindow' windows added. (0xd92650)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/ItemEntry' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/ItemEntry' windows added. (0xd927f0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/Listbox' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/Listbox' windows added. (0xd92990)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/ListHeader' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/ListHeader' windows added. (0xd92b30)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (0xd92cd0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/Menubar' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/Menubar' windows added. (0xd92e70)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/PopupMenu' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/PopupMenu' windows added. (0xd93010)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/MenuItem' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/MenuItem' windows added. (0xd931b0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/MultiColumnList' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/MultiColumnList' windows added. (0xd93460)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (0xd93600)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/ProgressBar' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/ProgressBar' windows added. (0xd937a0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/ScrollablePane' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/ScrollablePane' windows added. (0xd93940)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/Scrollbar' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/Scrollbar' windows added. (0xd93ae0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/Slider' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/Slider' windows added. (0xd93c80)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/Spinner' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/Spinner' windows added. (0xd93e20)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/TabButton' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/TabButton' windows added. (0xd93fc0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/TabControl' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/TabControl' windows added. (0xd94160)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/Thumb' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/Thumb' windows added. (0xd94300)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/Titlebar' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/Titlebar' windows added. (0xd944a0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/ToggleButton' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/ToggleButton' windows added. (0xd94640)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/Tooltip' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/Tooltip' windows added. (0xd947e0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/ItemListbox' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/ItemListbox' windows added. (0xd94980)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/GroupBox' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/GroupBox' windows added. (0xd94b20)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'CEGUI/Tree' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'CEGUI/Tree' windows added. (0xd94cc0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'LayoutCell' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'LayoutCell' windows added. (0xd93350)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'HorizontalLayoutContainer' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'HorizontalLayoutContainer' windows added. (0xd95150)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'VerticalLayoutContainer' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'VerticalLayoutContainer' windows added. (0xd952f0)
28/01/2016 03:43:20 (Std) Created WindowFactory for 'GridLayoutContainer' windows.
28/01/2016 03:43:20 (Std) WindowFactory for 'GridLayoutContainer' windows added. (0xd95490)
28/01/2016 03:43:20 (Std) CEGUI::System singleton created. (0xd8c240)
28/01/2016 03:43:20 (Std) ---- CEGUI System initialisation completed ----
28/01/2016 03:43:20 (Std)
28/01/2016 03:43:21 (Std) Started creation of Scheme from XML specification:
28/01/2016 03:43:21 (Std) ---- CEGUI GUIScheme name:
Output of ls -l | grep Taharez. The permissions should be just fine.
Code: Select all
-rwxrwxrwx 1 kilves kilves 20447 Apr 29 2013 TaharezLook.imageset
-rw-rw-rw- 1 kilves kilves 199244 Jul 7 2014 TaharezLook.looknfeel
-rw-r--r-- 1 kilves kilves 26630 Apr 29 2013 TaharezLook.png
-rw-rw-rw- 1 kilves kilves 575 Jan 28 01:23 TaharezLook.scheme
TaharezLook.scheme:
Code: Select all
<?xml version="1.0" ?>
<GUIScheme version="5" Name="TaharezLook">
<Imageset Filename="TaharezLook.imageset" />
<Font Filename="DejaVuSans-10.font" />
<LookNFeel Filename="TaharezLook.looknfeel" />
<WindowRendererSet Filename="CEGUIFalagardWRBase" />
<FalagardMapping WindowType="TaharezLook/Button" TargetType="CEGUI/PushButton" Renderer="Falagard/Button" LookNFeel="TaharezLook/Button" />
<FalagardMapping WindowType="TaharezLook/Checkbox" TargetType="CEGUI/Checkbox" Renderer="Falagard/ToggleButton" LookNFeel="TaharezLook/Checkbox" />
</GUIScheme>
All the files mentioned above are placed in the root working directory.