[Solved]Basic non-scheme setup: Window object name not found
Posted: Wed Dec 21, 2011 12:53
I've read through the main docs a few times now and I felt confident enough to try something out.
I must be missing something, or the libraries have screwed up somewhere, I'm not entirely sure.
Start off with the CEGUI code:
The last line "fWnd->setText" will cause an UnknownObjectException.
Output in the console:
Here's the resulting log:
As far as I can tell, the frame window is created successfully and I added it to the guiSheet root, so what am I missing?
[Edit] Added console output.
System info: I'm using Visual Studio 2010 with the vc100 toolset for debugging. Windows 7 x64, but compiling for 32bit
I've compiled the SILLY library myself (thread) which I did have some troubles with. I got it to compile but I have no idea if this may be related.
I must be missing something, or the libraries have screwed up somewhere, I'm not entirely sure.
Start off with the CEGUI code:
Code: Select all
using namespace CEGUI;
OpenGLRenderer& myRenderer =
OpenGLRenderer::bootstrapSystem();
Logger::getSingleton().setLoggingLevel( Informative );
WindowManager& wmgr = WindowManager::getSingleton();
Window* root = wmgr.createWindow( "DefaultWindow", "root" );
System::getSingleton().setGUISheet( root );
FrameWindow* fWnd = static_cast<FrameWindow*>(
wmgr.createWindow( "CEGUI/FrameWindow", "testWindow" ) );
root->addChildWindow( fWnd );
fWnd->setPosition( UVector2( UDim( 0.25f, 0 ), UDim( 0.25, 0 ) ) );
fWnd->setSize( UVector2( UDim(0.5f, 0 ), UDim( 0.5f, 0 ) ) );
fWnd->setText( "Hello world!" );
The last line "fWnd->setText" will cause an UnknownObjectException.
Output in the console:
Code: Select all
intunsigned intCEGUI::UnknownObjectException in file c:\cegui-0.7.5\cegui\src\ce
guiwindowmanager.cpp(256) : WindowManager::getWindow - A Window object with the
name 'testWindow__auto_titlebar__' does not exist within the system
Here's the resulting log:
Code: Select all
21/12/2011 13:38:19 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
21/12/2011 13:38:19 (Std) + Crazy Eddie's GUI System - Event log +
21/12/2011 13:38:19 (Std) + (http://www.cegui.org.uk/) +
21/12/2011 13:38:19 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
21/12/2011 13:38:19 (Std) CEGUI::Logger singleton created. (00C7E5E8)
21/12/2011 13:38:19 (Std)
21/12/2011 13:38:19 (Std) ********************************************************************************
21/12/2011 13:38:19 (Std) * Important: *
21/12/2011 13:38:19 (Std) * To get support at the CEGUI forums, you must post _at least_ the section *
21/12/2011 13:38:19 (Std) * of this log file indicated below. Failure to do this will result in no *
21/12/2011 13:38:19 (Std) * support being given; please do not waste our time. *
21/12/2011 13:38:19 (Std) ********************************************************************************
21/12/2011 13:38:19 (Std) ********************************************************************************
21/12/2011 13:38:19 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
21/12/2011 13:38:19 (Std) ********************************************************************************
21/12/2011 13:38:19 (Std) ---- Version 0.7.5 (Build: Nov 19 2010 Debug Microsoft Windows MSVC++ 10.0 32 bit) ----
21/12/2011 13:38:19 (Std) ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module. TextureTarget support enabled via FBO extension. ----
21/12/2011 13:38:19 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
21/12/2011 13:38:19 (Std) ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
21/12/2011 13:38:19 (Std) ---- Scripting module is: None ----
21/12/2011 13:38:19 (Std) ********************************************************************************
21/12/2011 13:38:19 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
21/12/2011 13:38:19 (Std) ********************************************************************************
21/12/2011 13:38:19 (Std)
21/12/2011 13:38:19 (Std) ---- Begining CEGUI System initialisation ----
21/12/2011 13:38:19 (Std) CEGUI::ImagesetManager singleton created (00C7F8F0)
21/12/2011 13:38:19 (Std) CEGUI::FontManager singleton created. (00C7FCD8)
21/12/2011 13:38:19 (Std) CEGUI::WindowFactoryManager singleton created
21/12/2011 13:38:19 (Std) CEGUI::WindowManager singleton created (00C816F8)
21/12/2011 13:38:19 (Std) CEGUI::SchemeManager singleton created. (00C819E8)
21/12/2011 13:38:19 (Std) CEGUI::MouseCursor singleton created. (00C81D50)
21/12/2011 13:38:19 (Std) CEGUI::GlobalEventSet singleton created. (00C820F0)
21/12/2011 13:38:19 (Std) CEGUI::AnimationManager singleton created (00C82280)
21/12/2011 13:38:19 (Std) CEGUI::WidgetLookManager singleton created. (00C83880)
21/12/2011 13:38:19 (Std) CEGUI::WindowRendererManager singleton created (00C7FA40)
21/12/2011 13:38:19 (Std) CEGUI::RenderEffectManager singleton created (00C83CD8)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'DefaultWindow' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'DefaultWindow' windows added. (00C83F10)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'DragContainer' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'DragContainer' windows added. (00C84110)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'ScrolledContainer' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'ScrolledContainer' windows added. (00C84318)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'ClippedContainer' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'ClippedContainer' windows added. (00C84520)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Checkbox' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Checkbox' windows added. (00C84730)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/PushButton' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/PushButton' windows added. (00C84948)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/RadioButton' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/RadioButton' windows added. (00C84B08)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Combobox' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Combobox' windows added. (00C84D28)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/ComboDropList' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/ComboDropList' windows added. (00C84EE8)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Editbox' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Editbox' windows added. (00C850A8)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/FrameWindow' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/FrameWindow' windows added. (00C852D8)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/ItemEntry' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/ItemEntry' windows added. (00C85498)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Listbox' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Listbox' windows added. (00C85658)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/ListHeader' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/ListHeader' windows added. (00C85D00)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (00C85818)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Menubar' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Menubar' windows added. (00C85EC0)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/PopupMenu' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/PopupMenu' windows added. (00C85AC0)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/MenuItem' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/MenuItem' windows added. (00C85F98)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/MultiColumnList' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/MultiColumnList' windows added. (00C86298)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (00C86458)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/ProgressBar' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/ProgressBar' windows added. (00C866C8)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/ScrollablePane' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/ScrollablePane' windows added. (00C86888)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Scrollbar' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Scrollbar' windows added. (00C86A48)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Slider' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Slider' windows added. (00C86C08)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Spinner' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Spinner' windows added. (00C86DC8)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/TabButton' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/TabButton' windows added. (00C86F88)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/TabControl' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/TabControl' windows added. (00C87148)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Thumb' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Thumb' windows added. (00C87308)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Titlebar' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Titlebar' windows added. (00C874C8)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Tooltip' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Tooltip' windows added. (00C87770)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/ItemListbox' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/ItemListbox' windows added. (00C87930)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/GroupBox' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/GroupBox' windows added. (00C87AF0)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'CEGUI/Tree' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'CEGUI/Tree' windows added. (00C87CB0)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'HorizontalLayoutContainer' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'HorizontalLayoutContainer' windows added. (00C87E70)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'VerticalLayoutContainer' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'VerticalLayoutContainer' windows added. (00C88100)
21/12/2011 13:38:19 (Std) Created WindowFactory for 'GridLayoutContainer' windows.
21/12/2011 13:38:19 (Std) WindowFactory for 'GridLayoutContainer' windows added. (00C882C0)
21/12/2011 13:38:19 (Std) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
21/12/2011 13:38:19 (Std) CEGUI::System singleton created. (00C7E138)
21/12/2011 13:38:19 (Std) ---- CEGUI System initialisation completed ----
21/12/2011 13:38:19 (Std)
21/12/2011 13:38:25 (Info) Window 'root' of type 'DefaultWindow' has been created. (00C88650)
21/12/2011 13:38:37 (Info) Window 'testWindow' of type 'CEGUI/FrameWindow' has been created. (00C8BF88)
21/12/2011 13:39:30 (Error) CEGUI::UnknownObjectException in file c:\cegui-0.7.5\cegui\src\ceguiwindowmanager.cpp(256) : WindowManager::getWindow - A Window object with the name 'testWindow__auto_titlebar__' does not exist within the system
As far as I can tell, the frame window is created successfully and I added it to the guiSheet root, so what am I missing?
[Edit] Added console output.
System info: I'm using Visual Studio 2010 with the vc100 toolset for debugging. Windows 7 x64, but compiling for 32bit
I've compiled the SILLY library myself (thread) which I did have some troubles with. I got it to compile but I have no idea if this may be related.