Page 1 of 1

Compiling with MinGW

Posted: Sun Dec 25, 2011 02:21
by Masadow
Hi,

I'm trying to compile using the precompiled sdk 0.7.5 for MinGW.

The compilation works fine but i'm having trouble on linking operation.

Here is the error :

undefined reference to `_imp___ZN5CEGUI14OpenGLRenderer6createENS0_17TextureTargetTypeE'


I'm having this error on the following line:

Code: Select all

CEGUI::OpenGLRenderer::create();


To install the GUI library, I added the include path of cegui include folder and its dependencies include folder.
I linked following static debug library files in this order :

  • CEGUIBase_Static_d
  • CEGUIExpatParser_Static_d
  • CEGUISILLYImageCodec_Static_d
  • CEGUIFalagardWRBase_Static_d
  • CEGUIOpenGLRenderer_Static_d
  • expat_d
  • freeglut_d
  • pcre_d
  • SILLY_d

Cheers,
Masadow

EDIT: It seems i forgot to add CEGUI_STATIC. But now, i have an undefined reference to gl functions. Do I have to download openGL library ? -lGL doesn't work at all :/

Re: Compiling with MinGW

Posted: Sun Dec 25, 2011 18:01
by Masadow
Okay, finally, i found how to link CEGUI correctly.

So for anyone who have the same problem, here is the needed links, in my case, in the right order, in debug mode :

  • CEGUIOpenGL_Static_d => CEGUI
  • CEGUIBase_Static_d => CEGUI
  • CEGUIFalagardWRBase_Static_d => CEGUI
  • CEGUIFreeImageImageCodec_Static_d => CEGUI
  • CEGUIExpatParser_Static_d => CEGUI
  • FreeImage_d => CEGUI
  • sfml-graphics-s-d => SFML
  • sfml-audio-s-d => SFML
  • sfml-window-s-d => SFML
  • freeglut_d => CEGUI
  • glu32 => CEGUI
  • opengl32 => CEGUI
  • ws2_32 => RakNet
  • pcre_d => CEGUI
  • SILLY_d => CEGUI
  • expat_d => CEGUI

Hope it'll be usefull

Best regards,
Masadow