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).