Success. I still haven't figured out how to build the Debug version and I'm having some other unrelated issues, but I figured that I would post the steps that I took to get from zero to hero for any other poor shlubs who might be trying to wade through this. The process wasn't exactly as linear as I present it, and I may have missed a step or two (although I tried to be thorough), but it may be helpful.
I'm mark the thread as SOLVED as soon as I figure out the Debug build...
=====================================
Building CEGUI for MinGW
=====================================
Starting configuration
----------------------
(as per
http://zd.0x209.org/docs/ogre3d/c/o/d/C ... _3144.html)
- MinGW 5.1.2
- Ogre 1.4.9 (Eihort)
- CEGUI 0.6.0 (from OgreDependencies_CBMinGW_Eihort_20080115.zip)
- Code::Blocks 8.02
Steps to build/install CEGUI 0.6.2
----------------------------------
- Download, install to D:\msys\1.0
http://downloads.sourceforge.net/mingw/MSYS-1.0.10.exe
http://downloads.sourceforge.net/mingw/ ... -1.0.1.exe
http://downloads.sourceforge.net/mingw/ ... -1.tar.bz2
- download, unzip and install m4.exe into D:\msys\1.0\bin
http://downloads.sourceforge.net/mingw/ ... YS.tar.bz2
- Download, save to D:\OpenSource\Packages (or where you like)
http://ftp.gnu.org/gnu/autoconf/
http://ftp.gnu.org/gnu/automake/
http://ftp.gnu.org/gnu/libtool/
- From MSYS shell:
$ d:/opensource/packages/autoconf-2.63/configure --prefix=/mingw && make && make install
$ d:/opensource/packages/automake-1.10.1/configure --prefix=/mingw && make && make install
$ d:/opensource/packages/libtool-2.2/configure --prefix=/mingw && make && make install
I made autoconf first and it built ok, but automake and libtool failed with,
make: *** No rule to make target `d:/opensource/packages/automake-1.10.1/maint.mk'. Stop.
make: *** No rule to make target `d:/opensource/packages/libtool-2.2/maint.mk'. Stop.
so I copied D:\OpenSource\Packages\autoconf-2.63\maint.mk to ...\packages\automake-1.10.1
and ...\packages\libtool-2.2. I was then able to build all three packages.
- From
http://www.gtk.org/download-windows.html, download and unzip into D:/mingw
Pkg-config 'Tools Binaries' (pkg-config-0.23-2.zip)
GLib 2.18.4 Binaries (glib_2.18.4-1_win32.zip)
Freetype 2.3.6 Dev (freetype-dev-2.3.6.zip)
- from
http://gnuwin32.sourceforge.net/packages/pcre.htm (Developer Files),
download and unzip into D:/mingw...
pcre-7.0-lib.zip
pcre-7.0-bin.zip
- Based on info in
http://www.mingw.org/wiki/msys and trail & error, add the following to D:\msys\1.0\etc\profile...
PKG_CONFIG_PATH="/mingw/lib/pkgconfig"
CVS_RSH=ssh
CFLAGS="-pipe -O2 -mms-bitfields -march=i686"
export HOME LOGNAME MSYSTEM HISTFILE CFLAGS PKG_CONFIG_PATH CVS_RSH
export ACLOCAL_FLAGS="-I /mingw/share/aclocal -I /mingw/share/aclocal-1.10"
- As per "http://www.cegui.org.uk/wiki/index.php/HOWTO:_Obtain_ the_library_source_
from_subversion" download and unzip CEGUI-0.6.2b.zip into a location of you choice
- Follow the "Compiling on Linux" directions
From the MSys command line...
--------------------------------------
$ cd (the dir that you unzipped cegui-0.6.2 into)
$ ./bootstrap
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: You should add the contents of the following files to 'aclocal.m4':
libtoolize: `/mingw/share/aclocal/libtool.m4'
libtoolize: `/mingw/share/aclocal/ltoptions.m4'
libtoolize: `/mingw/share/aclocal/ltversion.m4'
libtoolize: `/mingw/share/aclocal/ltsugar.m4'
libtoolize: `/mingw/share/aclocal/lt~obsolete.m4'
- Add the contents of the above files to cegui-0.6.2/aclocal.m4
From the MSys command line...
--------------------------------------
$ ./configure --prefix=/mingw
$ make
$ make install
- If the build and install completes successfully, then drink a beer or three
Stuff installed
---------------
mingw/include/CEGUI - 172 files .h files / 8 folders
mingw/bin -
libCEGUISampleHelper-1.dll
libCEGUIFalagardWRBase.dll
libCEGUIOpenGLRenderer-0.dll
libCEGUITGAImageCodec.dll
libCEGUITinyXMLParser.dll
libCEGUIBase-1.dll
mingw/lib
libCEGUIBase.dll.a
libCEGUIBase.la
libCEGUIFalagardWRBase.dll.a
libCEGUIFalagardWRBase.la
libCEGUIOpenGLRenderer.dll.a
libCEGUIOpenGLRenderer.la
libCEGUISampleHelper.dll.a
libCEGUISampleHelper.la
libCEGUITGAImageCodec.dll.a
libCEGUITGAImageCodec.la
libCEGUITinyXMLParser.dll.a
libCEGUITinyXMLParser.la
mingw/share/CEGUI/
configs/
fonts/
imagesets/
layouts/
looknfeel/
lua_scripts/
schemes/
XMLRefSchema/
=====================================
Updating Ogre3d (w/Code::Blocks) with CEGUI 0.6.2
=====================================
CEGUIRenderer
------------------
- Load the
..\Ogre3d\Samples\Common\CEGUIRenderer\scripts\OgreCEGUIRenderer.cbp codeblocks project and rebuild DEBUG and RELEASE.
Here's what my 'Global Compiler Settings' look like...
Linker Settings: NONE
Search Directories: Compiler
D:\Mingw\include
D:\Mingw\include\CEGUI
D:\Mingw\include\CEGUI\elements
D:\mingw\include\CEGUI\falagard
$(OGRE_HOME)\OgreMain\include
$(OGRE_HOME)\Dependencies\include
$(OGRE_HOME)\Dependencies\include\OIS
$(OGRE_HOME)\Dependencies\include\ode
$(OGRE_HOME)\Dependencies\include\CEGUI
$(OGRE_HOME)\Samples\Common\CEGUIRenderer\include
D:\Microsoft DirectX SDK (June 2008)\Include
Search Directories: Linker
D:\mingw\lib
$(OGRE_HOME)\lib
$(OGRE_HOME)\Dependencies\lib\$(TARGET_NAME)
$(OGRE_HOME)\Samples\Common\bin\$(TARGET_NAME)
D:\Microsoft DirectX SDK (June 2008)\Lib\x86
and the OgreGUIRenderer project build options are...
Linker Settings / Linker options (DEBUG+RELEASE)
-Wl, --enable-auto-image-base
-Wl, --add-stdcall-alias
Release link Libraries:
OgreMain
libCEGUIBase.dll
Debug link Libraries:
OgreGUIRenderer_d
libCEGUIBase.dll (haven't build a debug version yet)
Your project
--------------
- Rebuild your Ogre/CEGUI program in Code::Blocks.
My project specific build options are:
Linker Settings / Linker options (DEBUG+RELEASE)
-Wl, --enable-auto-image-base
-Wl, --add-stdcall-alias
Release link Libraries:
OgreGUIRenderer
OgreMain
ois
ode
libCEGUIBase.dll
Debug link Libraries:
OgreGUIRenderer_d
OgreMain_d
ois_d
ode_d
libCEGUIBase.dll (haven't build a debug version yet)