Compiling with MinGW

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

Masadow
Just popping in
Just popping in
Posts: 5
Joined: Sun Dec 25, 2011 02:12

Compiling with MinGW

Postby Masadow » Sun Dec 25, 2011 02:21

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 :/

Masadow
Just popping in
Just popping in
Posts: 5
Joined: Sun Dec 25, 2011 02:12

Re: Compiling with MinGW

Postby Masadow » Sun Dec 25, 2011 18:01

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


Return to “Help”

Who is online

Users browsing this forum: No registered users and 16 guests