Page 1 of 1

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

Posted: Sun Jun 17, 2007 18:51
by Shades
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

Posted: Mon Jun 18, 2007 16:37
by Shades
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.

Posted: Mon Jun 18, 2007 18:24
by Shades
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);

Posted: Tue Jun 19, 2007 14:22
by Shades
Okay so I have everything building (I think) under eclipse, so my probably is basically solved although without using msys.