Help compiling simple CEGUI program - Newbie alert
Posted: Sat Jan 14, 2006 22:02
Running under VC++ 6
using .41 native STL Install
Irrlicht renderer
the changes to the xml file locations are deliberate and they are being found by the program (see log) Irrlicht also finds the image file
This is the c++ code
Here is the log
Being an old java programmer, the error looks to me like the config file is telling the program to runtime instantiate a
class and it can't file the information to do that. But this is C++, so I haven't a clue.
I have searched these forums for Irrlicht, templates and heavens knows what else.
Any help would be greatly appreciated. This looks like a
great app!!
using .41 native STL Install
Irrlicht renderer
the changes to the xml file locations are deliberate and they are being found by the program (see log) Irrlicht also finds the image file
This is the c++ code
Code: Select all
// mytest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#define CEGUI_SAMPLES_USE_IRRLICHT
#include <irrlicht.h>
#include <CEGUI.h>
#include <renderers/IrrlichtRenderer/irrlichtrenderer.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace CEGUI;
#pragma comment (lib, "CEGUIBase.lib")
#pragma comment (lib, "Irrlicht.lib")
#pragma comment (lib, "IrrlichtGUIRenderer.lib")
int main(void)
{
IrrlichtDevice *device =
createDevice(EDT_OPENGL,dimension2d<s32>(640,480),32,false,false,false);
device->setWindowCaption(L"CEGUI + IrrlichtTest");
IVideoDriver *driver = device->getVideoDriver();
ISceneManager *smgr = device->getSceneManager();
smgr->addCameraSceneNode();
IrrlichtRenderer* ceguir = new IrrlichtRenderer(device,true);
CEGUI::Logger().getSingleton().setLoggingLevel(Insane );
System* cegui = new System(ceguir);
Imageset *taharezImages
= ImagesetManager::getSingleton().createImageset("datafiles/imagesets/TaharezLook.imageset");
cegui->setDefaultMouseCursor( &taharezImages -> getImage( "MouseArrow" ) );
printf("oooo\n");
FontManager::getSingleton().createFont("datafiles/fonts/Commonwealth-10.font");
printf("alpha\n");
SchemeManager::getSingleton().loadScheme("datafiles/schemes/TaharezLookSkin.scheme");
printf("beta\n");
WindowManager* winmgr = &WindowManager::getSingleton();
DefaultWindow* root = (DefaultWindow*)winmgr -> createWindow("DefaultWindow", "Root");
cegui->setGUISheet(root);
FrameWindow* wnd = (FrameWindow*)winmgr -> createWindow("WindowsLook/FrameWindow", "Demo Window");
root->addChildWindow(wnd);
wnd->setPosition(Point(0.25f, 0.25f));
wnd->setSize(Size(0.5f, 0.5f));
wnd->setMaximumSize(Size(1.0f, 1.0f));
wnd->setMinimumSize(Size(0.1f, 0.1f));
wnd->setText("Some Thing");
while(device->run())
{
if(device->isWindowActive())
{
driver->beginScene(true,true,SColor(0,0,0,0));
smgr->drawAll();
cegui->renderGUI();
driver->endScene();
}
}
delete System::getSingletonPtr();
device->drop();
return 0;
}
Here is the log
Code: Select all
14/01/2006 15:41:00 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
14/01/2006 15:41:00 (InfL1) + Crazy Eddie's GUI System - Event log +
14/01/2006 15:41:00 (InfL1) + (http://www.cegui.org.uk/) +
14/01/2006 15:41:00 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
14/01/2006 15:41:00 (InfL1) CEGUI::Logger singleton created.
14/01/2006 15:41:00 (InfL1) ---- Begining CEGUI System initialisation ----
14/01/2006 15:41:00 (InfL1) CEGUI::ImagesetManager singleton created
14/01/2006 15:41:00 (InfL1) CEGUI::FontManager singleton created.
14/01/2006 15:41:00 (InfL1) CEGUI::WindowFactoryManager singleton created
14/01/2006 15:41:00 (InfL1) CEGUI::WindowManager singleton created
14/01/2006 15:41:00 (InfL1) CEGUI::SchemeManager singleton created.
14/01/2006 15:41:00 (InfL1) CEGUI::MouseCursor singleton created.
14/01/2006 15:41:00 (InfL1) CEGUI::GlobalEventSet singleton created.
14/01/2006 15:41:00 (InfL1) CEGUI::WidgetLookManager singleton created.
14/01/2006 15:41:00 (InfL1) WindowFactory for 'DefaultWindow' windows added.
14/01/2006 15:41:00 (InfL1) WindowFactory for 'DragContainer' windows added.
14/01/2006 15:41:00 (InfL1) WindowFactory for 'ScrolledContainer' windows added.
14/01/2006 15:41:00 (InfL1) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
14/01/2006 15:41:00 (InfL1) CEGUI::System singleton created.
14/01/2006 15:41:00 (InfL1) ---- CEGUI System initialisation completed ----
14/01/2006 15:41:00 (InfL1) ---- Version 0.4.1 ----
14/01/2006 15:41:00 (InfL1) ---- Renderer module is: CEGUI::IrrlichtRenderer - Official Irrlicht based renderer module for CEGUI ----
14/01/2006 15:41:00 (InfL1) ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
14/01/2006 15:41:00 (InfL1) ---- Scripting module is: None ----
14/01/2006 15:41:00 (InfL1) Attempting to create an Imageset from the information specified in file 'datafiles/imagesets/TaharezLook.imageset'.
14/01/2006 15:41:00 (InfL1) Attempting to create Font from the information specified in file 'datafiles/fonts/Commonwealth-10.font'.
14/01/2006 15:41:00 (InfL1) Attempting to create Imageset 'Commonwealth-10_auto_glyph_images' with texture only.
14/01/2006 15:41:00 (InfL1) Attempting to load Scheme from file 'datafiles/schemes/TaharezLookSkin.scheme'.
14/01/2006 15:41:00 (InfL1) ===== Falagard 'root' element: look and feel parsing begins =====
14/01/2006 15:41:00 (InfL1) ===== Look and feel parsing completed =====
14/01/2006 15:41:00 (Error) Exception: FactoryModule::FactoryModule - Failed to load module 'CEGUIFalagardBase'.
Being an old java programmer, the error looks to me like the config file is telling the program to runtime instantiate a
class and it can't file the information to do that. But this is C++, so I haven't a clue.
I have searched these forums for Irrlicht, templates and heavens knows what else.
Any help would be greatly appreciated. This looks like a
great app!!