Help compiling simple CEGUI program - Newbie alert

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
dhenton9000
Just popping in
Just popping in
Posts: 2
Joined: Fri Dec 30, 2005 18:53
Contact:

Help compiling simple CEGUI program - Newbie alert

Postby dhenton9000 » 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

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!!

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Help compiling simple CEGUI program - Newbie alert

Postby lindquist » Sat Jan 14, 2006 22:39

It's saying it can't find the CEGUIFalagardBase.dll module. Usually you should have this file in the same directory as your application program file.

User avatar
dhenton9000
Just popping in
Just popping in
Posts: 2
Joined: Fri Dec 30, 2005 18:53
Contact:

Re: Help compiling simple CEGUI program - Newbie alert

Postby dhenton9000 » Sat Jan 14, 2006 23:24

thanks this looks great!!


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 11 guests