[SOLVED] Building CEGUI 6.2 for 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

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

Postby CrazyEddie » Tue Feb 10, 2009 09:53

Under premake - used for MSVC++ - we have options to enable and to customise the suffix.

For the autotools based build, I don't think there is a automatically provided facility (at least I did not find it on a quick search :)). So this would have to be added. I'll add a mantis ticket, otherwise it will be forgotten ;)

[edit]
I checked ./configure --help and there is an option for prefix/suffix but from what I can tell it only applies to programs and not to libs (though I did not test this). I added mantis ticket, and will investigate it all a bit further a little later on.

CE.

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Tue Feb 10, 2009 12:55

CrazyEddie wrote:I checked ./configure --help and there is an option for prefix/suffix but from what I can tell it only applies to programs and not to libs (though I did not test this). I added mantis ticket, and will investigate it all a bit further a little later on.

I'm quite sure there was a possibility to do that, but I don't remember it right now.

Maniac
Just popping in
Just popping in
Posts: 1
Joined: Wed Feb 11, 2009 14:13

Postby Maniac » Wed Feb 11, 2009 18:57

May somebody explain to me why you would need autotools, etc. to build MinGW libraries? I have never used them, so I was expecting the last night to very, very long. But another solution came to my mind:

I managed to compile the libs within an hour by means of premake 3 (premake4 doesn't seem to work with CEGUI).

Basically I only had to do the following:
- Get latest premake 3
- edit config.lua to build only what you need (and what you got dependencies for)
- Get binaries (and include files if the version differs from msvc includes) from the web
- edit all the premake.lua files for the required libraries to use the right dependencies. For instance for me I had to change: libexpat, pcre3 and freetype6, all of which are dlls (I don't like static linking very much, just a taste..)
- premake --file cegui.lua --target gnu
- make CONFIG=Release (mind the case sensitivity!)

It then built CEGUIBase, CEGUILua, FalagardWR and the Expat XML parser.
And it seems to link and run too.

Caveat: No debug builds because then I would have had to build the dependencies myself. But since I'm building the MinGW libraries for other persons that haven't used debug libs ever since, I did not care. I myself by the way use Visual Studio to make life easier (at least most of the time..).

@Crazy Eddie: Maybe you can support MinGW builds quite easily if you simply adjust the lua files slightly and get precompiled dependencies from the web (got them by googling).

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

Postby CrazyEddie » Fri Feb 13, 2009 09:32

Maniac wrote:@Crazy Eddie: Maybe you can support MinGW builds quite easily if you simply adjust the lua files slightly and get precompiled dependencies from the web (got them by googling).


Hi, and welcome :)

What would these lua file changes look like?

The thing about having MinGW support via the autotools build is that it's something I can reasonably easily test and fix issues for on my main development system (which runs linux, though I test MinGW by way of a cross-compiler). If MinGW compilation was done any other way, then chances are it might never get tested at all. I'm all for options that 'just work' and need no further testing / intervention - so if the premake MinGW option enables that to happen, then sign me up! ;)

CE.

JFT
Just popping in
Just popping in
Posts: 1
Joined: Thu Jun 11, 2009 11:35

Re: [SOLVED] Building CEGUI 6.2 for MinGW

Postby JFT » Thu Jun 11, 2009 11:37

Hi,
Can someone upload the library files for mingw...I don't want to build them by myself.
Does anyone have the library for irrlichtrenderer too?

Thanks for the great work!

JFT


Return to “Help”

Who is online

Users browsing this forum: No registered users and 26 guests