undefined reference to glClear

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

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: undefined reference to glClear

Postby lucebac » Sun Aug 27, 2017 09:03

From the list of linked libraries in your first post I call tell that you are missig any libCEGUI*ImageCodec.dll. Therefore it crashes. Please add the default image codec DLL to your application directory. You can see which one to use in CMake.

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

Re: undefined reference to glClear

Postby Ident » Sun Aug 27, 2017 09:25

Are you using the 0.7.X dependencies or 0.8.X dependencies?
CrazyEddie: "I don't like GUIs"

TheOneMore
Just popping in
Just popping in
Posts: 11
Joined: Thu Aug 24, 2017 22:51

Re: undefined reference to glClear

Postby TheOneMore » Sun Aug 27, 2017 16:15

Ident wrote:Are you using the 0.7.X dependencies or 0.8.X dependencies?


0.8. i used the link that is on CEGUI home.

lucebac wrote:From the list of linked libraries in your first post I call tell that you are missig any libCEGUI*ImageCodec.dll. Therefore it crashes. Please add the default image codec DLL to your application directory. You can see which one to use in CMake.


I selected Freeimage in CMake configuration.
Downloaded the FreeImage dependencies from their site.
Put the "FreeImage.h" in "cegui\include" folder

And now i´m getting undefinded reference to FreeImage* stuff, probably because i´m not linking freeimage in cegui.
May you guys provide me with some instruction on how to do that ?
Because, since the CEGUI targets are not the standard 'Release' and 'Debug' CodeBlocks doesnt allow me to append de linkable library.

Should i edit the make file ?

regards

TheOneMore
Just popping in
Just popping in
Posts: 11
Joined: Thu Aug 24, 2017 22:51

Re: undefined reference to glClear

Postby TheOneMore » Sun Aug 27, 2017 16:35

or maybe i can find i can find FreeImage in the dependecies configuration ...
working on that :hammer:

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: undefined reference to glClear

Postby lucebac » Sun Aug 27, 2017 16:47

If you selected FreeImageImageCodec as the default ImageCodec during CMake configuration, then you have everything you need. Hit "Build", goto Code::Blocks, hit "build all" (or whatever the name is) and there you go. You will presumably have something like this then:
  • libCEGUIBase-0.dll(.a)
  • libCEGUICommonDialogs-0.dll(.a)
  • libCEGUICoreWindowRendereSet.dll(.a)
  • libCEGUIFreeImageImageCodec.dll(.a)
  • libCEGUIOpenGLRenderer-0.dll(.a)
  • libCEGUIExpatParser.dll(.a)

TheOneMore
Just popping in
Just popping in
Posts: 11
Joined: Thu Aug 24, 2017 22:51

Re: undefined reference to glClear

Postby TheOneMore » Sun Aug 27, 2017 19:56

I´m trying to compile the dependencies with freeimage. And getting this erros:

Capturar2.PNG


If i compile it without freeimage CEGUI compilation complains about the absence of freeimage header and lib.

Edit:
Looks like a bug in freeimage:
https://sourceforge.net/p/freeimage/bugs/267/


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests