compile errror

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

compile errror

Postby CrazyEddie » Tue May 25, 2004 17:50

Hi,

Although not related to your immediate problem, you'll also need to build boost first (some parts are implemented via templates only, though a couple of bits do require compilation (they produce some libs that need to be linked with).

Presently I have all the dependencies in a 'Dependencies' directory within the main cegui_mk2 directory. This Dependencies directory then has a libs directory with all the libs, and an include directory with sub-dirs for boost, freetype, xercesc, and Lua (not used yet). Technically though, what you have done should have at least got you to the link stage (assuming you got the other dependencies too), I tested this and it compiled okay. Just to clarify, you're pointing at the outer 'boost_1_31_0' directory and not the inner 'boost_1_31_0/boost' directory, correct?

Which version of VC++ are you running? This may be relevant as there can be issues with older compiler versions, especially since the code has yet to be tweaked for compatibility (this is on the list of things to be done once all the widgets are completed). I do have access to the older compilers, so if need be I can make some preliminary changes over the next couple of days and, hopefully, get this compiling.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

compile errror

Postby CrazyEddie » Wed May 26, 2004 04:55

Yeah, this is almost certainly a boost issue and not a cegui issue. I'll sort out a work-around today. If in the mean time either of you manage to get it sorted let me know ;)

@Kristian:
Thanks, for the comments.

Do you think that you can get the OgreRender to render the gfx in Ogre with the same results as the dx8 demo of mk1?


Are you referring to raw performance, or the overall abilities of the system? I have a thread on the ogre forums which has links to a couple of early mk2 demos. See HERE

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

compile errror

Postby CrazyEddie » Wed May 26, 2004 09:26

I have confirmed this as a compatibility issue with boost.signals and the older compilers. The required patch is as follows:

Code: Select all

Index: include/CEGUIEvent.h
===================================================================
RCS file: /cvsroot/crayzedsgui/cegui_mk2/include/CEGUIEvent.h,v
retrieving revision 1.2
diff -u -r1.2 CEGUIEvent.h
--- include/CEGUIEvent.h   29 Mar 2004 16:03:35 -0000   1.2
+++ include/CEGUIEvent.h   26 May 2004 09:16:00 -0000
@@ -64,7 +64,7 @@
 class CEGUIBASE_API Event
 {
 public:
-   typedef   boost::signal<void (const EventArgs&)>   Signal;         //!< Represents the internal signal object
+   typedef   boost::signal1<void, const EventArgs&>   Signal;         //!< Represents the internal signal object
    typedef const Signal::slot_type               Subscriber;      //!< Function / object that can subscribe to an Event
    typedef Signal::group_type                  Group;         //!< Group for subscription (groups are called in ascending sequence)
    typedef boost::signals::connection            Connection;      //!< An object that is returned from subscribe function that can be used to control the connection / subscription.


I'll get this change into CVS either later today or tomorrow.

You still need to build the boost libraries themselves, I have not tested this yet - but will later.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

compile errror

Postby CrazyEddie » Wed May 26, 2004 11:53

I built and linked boost okay with VC++ 7. Then successfully built CEGUIBase - 0 warnings, 0 errors. But...

I then got another load of errors concerning boost when compiling the Taharez Look widget set - this is very strange as none of those classes use boost anywhere.

Let me know if you get this too and I'll investigate further.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

compile errror

Postby CrazyEddie » Wed May 26, 2004 18:24

Xerces-C (note to self: add a link to the links page!):
http://xml.apache.org/xerces-c/

The boost errors in the Taharez project must be a strange include order issue (which I have actually seen previously but related to other files (not boost)). I'll hunt this down problem tommow and sort it out once and for all.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

compile errror

Postby CrazyEddie » Thu May 27, 2004 11:41

:lol:

It's always the really stupid mistakes that take the longest to find.

The huge load of errors that you get when building the Taharez project can be eliminated by changing the project settings to allow language extensions (that's on the C++ -> Language property sheet). You then get no errors or warnings at all compiling with MSVC 7. I'll make sure that this setting is updated in CVS on the next commit.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 9 guests