Very newb problem (Irrlicht and C::B)

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

Herpderp
Just popping in
Just popping in
Posts: 12
Joined: Wed Sep 07, 2011 22:43

Very newb problem (Irrlicht and C::B)

Postby Herpderp » Wed Sep 07, 2011 23:07

Hi there!
I'm trying to add CEGUI to my Irrlicht project but I use Code::Blocks. Using the experimental MinGW binaries.

Search directories are
Compiler:

Code: Select all

cegui\include
include\RendererModules\Irrlicht
dependencies\include

Linker:

Code: Select all

lib
dependencies\lib\static
dependencies\lib\dynamic

Code:

Code: Select all

#include <CEGUI.h>
#include <CEGUIIrrlichtRenderer.h>
...
CEGUI::IrrlichtRenderer& myRenderer = CEGUI::IrrlichtRenderer::create(*device);
CEGUI::System::create( myRenderer );
...
smgr->drawAll();
CEGUI::System::getSingleton().renderGUI();
video->endScene();

DLLs in project bin folder (both debug and release versions):

Code: Select all

CEGUIBase
CEGUIExpatParser
CEGUIIrrlichtRenderer
CEGUISILLYImageCodec
SILLY


The project was compiled fine but I'm getting the following link errors:

Code: Select all

undefined reference to _imp___ZN5CEGUI16IrrlichtRenderer6createERN3irr14IrrlichtDeviceE

(and more same errors)

Also forum search on "ZN5CEGUI" return zero results.

What am I doing wrong?

radical-dev
Not too shy to talk
Not too shy to talk
Posts: 24
Joined: Mon Jul 27, 2009 09:53
Location: Germany
Contact:

Re: Very newb problem (Irrlicht and C::B)

Postby radical-dev » Thu Sep 08, 2011 08:14

Hi Herpderp!

Which version of irrlicht & cegui you're using? Have u build the irrlichtrenderer against your version of irrlicht?

And: have you tried to bootstrap it: CEGUI::IrrlichtRenderer::bootstrapSystem(*IrrlichtDevice); ?

Greetings
radical-dev

Herpderp
Just popping in
Just popping in
Posts: 12
Joined: Wed Sep 07, 2011 22:43

Re: Very newb problem (Irrlicht and C::B)

Postby Herpderp » Thu Sep 08, 2011 08:41

Which version of irrlicht & cegui you're using? Have u build the irrlichtrenderer against your version of irrlicht?

Irrlicht 1.7.2 and CEGUI 0.7.5. I thought I don't need to build the irrlichtrenderer because I already have the CEGUIIrrlichtRenderer.dll file. Should I build "CEGUI 0.7.5 Library Source Downloads" first?

And: have you tried to bootstrap it: CEGUI::IrrlichtRenderer::bootstrapSystem(*IrrlichtDevice); ?

Code: Select all

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

this throws error:
obj\Debug\src\Derp.o ... undefined reference to `_imp___ZN5CEGUI16IrrlichtRenderer15bootstrapSystemERN3irr14IrrlichtDeviceE'

Herpderp
Just popping in
Just popping in
Posts: 12
Joined: Wed Sep 07, 2011 22:43

Re: Very newb problem (Irrlicht and C::B)

Postby Herpderp » Thu Sep 08, 2011 09:44

Oh. I've just read this page http://www.sfml-dev.org/forum/viewtopic ... 7dba3f4f07 and added the required .a libs to project properties. Now everything works. Thank you anyway!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 12 guests