[SOLVED] Irrlicht 1.8 + CEGUI Mercurial Version

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Vader
Just popping in
Just popping in
Posts: 2
Joined: Mon Jan 07, 2013 16:32

[SOLVED] Irrlicht 1.8 + CEGUI Mercurial Version

Postby Vader » Mon Jan 07, 2013 16:51

Hi,

I want to use CEGUI with Irrlicht 1.8.
Unfortunately i get an error and the program crashes when I set up the renderer with

Code: Select all

CEGUIRenderer = &CEGUI::IrrlichtRenderer::bootstrapSystem(*device);


My whole test code is:

Code: Select all

#include <irrlicht.h>
#include <iostream>

#include <CEGUI/CEGUI.h>
#include <CEGUI/RendererModules/Irrlicht/Renderer.h>

using namespace CEGUI;

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

int main()
{

   IrrlichtDevice *device = createDevice(video::EDT_SOFTWARE, core::dimension2d<u32>(600, 400), 32, false, false, false, 0);

   IVideoDriver* driver = device->getVideoDriver();
   ISceneManager* smgr = device->getSceneManager();
   IGUIEnvironment* guienv = device->getGUIEnvironment();

   CEGUI::IrrlichtRenderer*  CEGUIRenderer;
   std::cout << device->getVersion() << std::endl;
   CEGUIRenderer = &CEGUI::IrrlichtRenderer::bootstrapSystem(*device);

   while(device->run())
   {

      driver->beginScene(true, true, SColor(255,42,42,42));
      smgr->drawAll();
      guienv->drawAll();
      driver->endScene();

   }

   device->drop();
   return 0;

}


The error meassage when the program crashes is:
CEGUI::GenericException in function 'CEGUI::DynamicModule::DynamicModule(const CEGUI::String&)' (C:\CPPLibs\CEGUI-Merc\cegui\src\DynamicModule.cpp:126) : Failed to load module 'libCEGUI.dll': Unknown Error

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'CEGUI::GenericException'
what(): CEGUI::GenericException in function 'CEGUI::DynamicModule::DynamicModule(const CEGUI::String&)' (C:\CPPLibs\CEGUI-Merc\cegui\src\DynamicModule.cpp:126) : Failed to load module 'libCEGUI.dll': Unknown Error


I link to the libraries Irrlicht, CEGUIIrrlichtRenderer and CEGUIBase, but I don't see a library called libCEGUI (like in the error message) :? Do I need more libraries? Can anybody help me please?
My compiler is MinGW on Windows 7 64 bit and I use the CEGUI code I downloaded with Mercurial. I also tried the CEGUI 0.7.5 MinGW binaries and it also crashes.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Irrlicht 1.8 + CEGUI Mercurial Version

Postby CrazyEddie » Tue Jan 08, 2013 09:20

The specific issue is likely that the default XML parser is set to the empty string - perhps because none of the parsers were going to be built? The same can happen with ImageCodec modules, so it could be that, but I thnk that would happen a bit later on. You need to check your build configuration, check your cmake options, check you have the dependencies for the modules you intend to use and check that cmake is picking these up (or set their locations explicitly) and check that the CEGUI_DEFAULT_* cmake vars for the default XMLParser and default ImageCodec are set to something sane.

But more importantly than any of the above, you should be aware there is currently an issue with Irrlicht that results in no rendering showing up (http://www.cegui.org.uk/mantis/view.php?id=845). I'm also not sure if CEGUI works with the software driver for irrlicht :?

CE.

Vader
Just popping in
Just popping in
Posts: 2
Joined: Mon Jan 07, 2013 16:32

Re: Irrlicht 1.8 + CEGUI Mercurial Version

Postby Vader » Tue Jan 08, 2013 19:35

OK, thank you. Sounds like I should not waste my time with Irrlicht + CEGUI. I am going to take a look at OGRE. :)

franzbischoff
Just popping in
Just popping in
Posts: 3
Joined: Fri Feb 28, 2014 00:43

Re: Irrlicht 1.8 + CEGUI Mercurial Version

Postby franzbischoff » Fri Feb 28, 2014 01:07

Hi!

I've got the same error "Failed to load module 'libCEGUI.dll': Unknown Error" and I found out that I missed to set Expat as the default XML parser.

After re-run cmake to fix it, it worked.

But my question is, how can I fix this without cmake? I have a project manually set and I'm missing some #define or something to set Expat as default XML parser? Do I need to link it to another lib?

Thank you.

franzbischoff
Just popping in
Just popping in
Posts: 3
Joined: Fri Feb 28, 2014 00:43

Re: Irrlicht 1.8 + CEGUI Mercurial Version

Postby franzbischoff » Fri Feb 28, 2014 11:59

Ok, just found out that cmake generates 3 files: Config.h, Version.h and ModuleConfig.h.

Just copied that and it works :) :hammer:

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: [SOLVED] Irrlicht 1.8 + CEGUI Mercurial Version

Postby Ident » Sat Mar 01, 2014 02:10

Good that you solved it, thanks for posting the solution for others.
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: No registered users and 39 guests