Page 1 of 1

CMake build script for MinGW

Posted: Sun Aug 01, 2010 13:37
by kornerr
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

Re: CMake build script

Posted: Mon Aug 02, 2010 10:35
by emarcotte
Nice. I'll have to try this. I went through installing msys so I could run configure.