Page 2 of 2

Re: undefined reference to glClear

Posted: Sun Aug 27, 2017 09:03
by lucebac
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.

Re: undefined reference to glClear

Posted: Sun Aug 27, 2017 09:25
by Ident
Are you using the 0.7.X dependencies or 0.8.X dependencies?

Re: undefined reference to glClear

Posted: Sun Aug 27, 2017 16:15
by TheOneMore
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

Re: undefined reference to glClear

Posted: Sun Aug 27, 2017 16:35
by TheOneMore
or maybe i can find i can find FreeImage in the dependecies configuration ...
working on that :hammer:

Re: undefined reference to glClear

Posted: Sun Aug 27, 2017 16:47
by lucebac
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)

Re: undefined reference to glClear

Posted: Sun Aug 27, 2017 19:56
by TheOneMore
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/