CMake build script for MinGW

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
kornerr
Not too shy to talk
Not too shy to talk
Posts: 41
Joined: Tue Apr 11, 2006 10:07
Location: Russia, Siberia, Kemerovo
Contact:

CMake build script for MinGW

Postby kornerr » Sun Aug 01, 2010 13:37

This is the CMake build script I use to build CEGUI with MinGW
It works fine for Linux too, but the default CEGUI autotools scripts are more powerful.
It builds only the following shared libs I need:
* libCEGUIBase,
* libCEGUIExpatParser,
* libCEGUIFalagardWRBase,
* libCEGUIOgreRenderer (optional),
* libCEGUIOpenGLRenderer (optional),
* libCEGUISILLYImageCodec (optional).

Instructions.

Set DEFAULT_XMLPARSER to Expat.
Install pcre, freetype, zlib from GnuWin32 project into C:/MinGW
Install Expat to default Program Files, then create MinGW lib files:

Code: Select all

pexports libexpat.dll > expat.def
pexports libexpatw.dll > expatw.def
dlltool -d expat.def -l libexpat.a
dlltool -d expatw.def -l libexpatw.a

Copy expat/Source/lib/*.h to C:/MinGW/include, and libexpat.a to C:/MinGW/lib
Set FREETYPE_INC_DIR to C:/MinGW/include/freetype2
Open Source all the way, baby ;)
Opensource Game Studio

User avatar
emarcotte
Quite a regular
Quite a regular
Posts: 55
Joined: Fri Dec 26, 2008 14:30
Contact:

Re: CMake build script

Postby emarcotte » Mon Aug 02, 2010 10:35

Nice. I'll have to try this. I went through installing msys so I could run configure.


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 10 guests