[Solved (kinda)]Problems with compiling using msys/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

Shades
Just popping in
Just popping in
Posts: 6
Joined: Thu Jun 14, 2007 18:18

[Solved (kinda)]Problems with compiling using msys/mingw

Postby Shades » Sun Jun 17, 2007 18:51

Hi, I know there are a couple of msys/mingw topics but some of them seem to say it works fine and others that it doesn't so I figured I'd just post a new request for help :)

I managed to get the configure script to work and give me opengl rendering (I plan to use it with sdl) however I seem to be unable to do the make step.

Code: Select all

make[1]: Entering directory `/home/Ben/CEGUI-0.5.0/src'
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I.. -Id:/dev/MinGW/include/freetype2   -Id:/dev/MinGW/include      -g -O2 -MT CEGUIExceptions.lo -MD -MP -MF ".deps/CEGUIExceptions.Tpo" \
  -c -o CEGUIExceptions.lo `test -f 'CEGUIExceptions.cpp' || echo './'`CEGUIExceptions.cpp; \
then mv -f ".deps/CEGUIExceptions.Tpo" ".deps/CEGUIExceptions.Plo"; \
else rm -f ".deps/CEGUIExceptions.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I.. -Id:/dev/MinGW/include/freetype2 -Id:/dev/MinGW/include -g -O2 -MT CEGUIExceptions.lo -MD -MP -MF .deps/CEGUIExceptions.Tpo -c CEGUIExceptions.cpp  -DDLL_EXPORT -DPIC -o .libs/CEGUIExceptions.o
CEGUIExceptions.cpp: In destructor `CEGUI::Exception::~Exception()':
CEGUIExceptions.cpp:54: internal compiler error: in rest_of_handle_final, at toplev.c:2064
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
make[1]: *** [CEGUIExceptions.lo] Error 1
make[1]: Leaving directory `/home/Ben/CEGUI-0.5.0/src'
make: *** [all-recursive] Error 1


All I'm really trying to do is get a working libary for use with eclipse, so if anyone has a better suggestion that trying to make with msys feel free to correct the errors of my ways.

As to the error I am utterly clueless as to where to go next, this is with the 5.0 version from the download page. If noone has any ideas I'm going to try again after getting the latest snapshot in the hopes things have changed.

Ben
Last edited by Shades on Tue Jun 19, 2007 14:22, edited 1 time in total.

Shades
Just popping in
Just popping in
Posts: 6
Joined: Thu Jun 14, 2007 18:18

Postby Shades » Mon Jun 18, 2007 16:37

Okay so I have decided to build things through eclipse directly, which just means working out what settings to use in each case. As I have the vstudio projects I can get most of the settings from there.

It still would be nice to be able to build under msys with minimal effort though.

Incedently I get the following warnings compiling the base code;

Code: Select all

warning: `CEGUI::Rect CEGUI::TreeItem::d_buttonLocation'            CEGUITreeItem.h line 563   
warning: `CEGUI::Scrollbar*CEGUI::Tree::d_horzScrollbar'            CEGUITree.h line 750   
warning: `CEGUI::Scrollbar*CEGUI::Tree::d_vertScrollbar'            CEGUITree.h line 749   
warning: `const CEGUI::Image*CEGUI::TreeItem::d_selectBrush'        CEGUITreeItem.h   line 566   
warning: when initialized here                                      CEGUITree.cpp line 83
warning: when initialized here                                      CEGUITreeItem.cpp line 67
warning: `CEGUI::Tree::d_horzScrollbar' will be initialized after   CEGUITree.h line 750   
warning: `CEGUI::Tree::d_lastSelected' will be initialized after    CEGUITree.h line 752   
warning: `CEGUI::TreeItem::d_iconImage' will be initialized after   CEGUITreeItem.h   line 569   
warning: `CEGUI::TreeItem::d_isOpen' will be initialized after      CEGUITreeItem.h line 571   
warning: no newline at end of file                                  CEGUIScriptWindowHelper.h line 89
warning: no newline at end of file                                  CEGUIScriptWindowHelper.cpp line 54
warning: unused variable 'doc_sz'                                   CEGUIScrolledItemListBase.cpp line 216
warning: unused variable 'doc_sz'                                   CEGUIScrolledItemListBase.cpp line 227
warning: unused variable 'listHeight'                               CEGUITree.cpp line 1277


Mostly it looks like I can just ignore them, but for my sanity can someone else check. I'm thinking they are to do with the way the dll export works on windows.

Shades
Just popping in
Just popping in
Posts: 6
Joined: Thu Jun 14, 2007 18:18

Postby Shades » Mon Jun 18, 2007 18:24

I had a little trouble with the FalagardWRBase project, for some reason the compile didn't like the way the reference was passed in the tree render function.

This is the change I had to make to get it to work.

Code: Select all

92c92,93
<               tree->setItemRenderArea(getTreeRenderArea());
---
>               Rect rect = getTreeRenderArea();
>               tree->setItemRenderArea(rect);

Shades
Just popping in
Just popping in
Posts: 6
Joined: Thu Jun 14, 2007 18:18

Postby Shades » Tue Jun 19, 2007 14:22

Okay so I have everything building (I think) under eclipse, so my probably is basically solved although without using msys.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 10 guests