Build CEGUI with MinGW+MSYS?
Posted: Wed Sep 15, 2010 12:08
Hello,
Meanwhile I'm frustrated. Since three days I try to setup anything for the CEGUI & OGRE Tutorial, but fail with CEGUI on Windows in the MinGW environment. So far, I installed MinGW & OGRE (c:/mingw & c:/ogresdk), and both work nicely. Then the trouble began ...
As CEGUI-SDK for MinGW does not contain the CEGUIOgreRenderer.dll I came to the conclusion to build CEGUI myself. The given Building CEGUI Tutorial seem useless, as those steps are for VC. I modified the project/premake/config.lua anyway:
Appears like I have to install MSYS (MSYS, msysDTK) to c:/msys/1.0 (what I never have done before). Next, I downloaded the CEGUI sources, and installed them into the home folder.
1. Bootstrapping
The bootstrap script did not work properly, so I updated autoconf, automake, libtool, m4. After running again, I was recommended to add AC_CONFIG_MACRO_DIR([m4]) to configure.ac & ACLOCAL_AMFLAGS=-I m4 to Makefile.am, what I have done.
Unfortunately I don't get further, and get following output (note, though you can just run bootstrap, for clarity I break it's commands down here):
I ommit the other commands (autoheader, automake, autoconf), as bootstrap doesn't display their error messages I have.
2. Configure
Somewhere I read to directly start with configure is okay, so I skipped bootstrapping after I didn't come any further with the above errors. Indeed, after installing pkg-config, glib, freetype-dev, and pcre-bin configure works so far, but ...
... as you see the Ogre Renderer is NOT enabled, but that's what I need.
I'm not sure if Lua is needed (because of config.lua), but I downloaded, build, tested, and installed it anyway:
Still no luck. Lua is installed to local by the way .
3. Make
Though I am not satisfied with the above cofiguration I gave it a try, and started to make it (requires pcre-lib). Successfully, but as anticipated without the Ogre Renderer.
I stuck here, and appreciate any help - getting this done or binaries - to continue with the CEGUI+OGRE tutorial.
Thanks
Meanwhile I'm frustrated. Since three days I try to setup anything for the CEGUI & OGRE Tutorial, but fail with CEGUI on Windows in the MinGW environment. So far, I installed MinGW & OGRE (c:/mingw & c:/ogresdk), and both work nicely. Then the trouble began ...
As CEGUI-SDK for MinGW does not contain the CEGUIOgreRenderer.dll I came to the conclusion to build CEGUI myself. The given Building CEGUI Tutorial seem useless, as those steps are for VC. I modified the project/premake/config.lua anyway:
Code: Select all
OGRE_PATHS = { "C:/OgreSDK/OgreSDK_mingw_v1-7-1", "include", "lib/release" }
OIS_PATHS = { "C:/OgreSDK/OgreSDK_mingw_v1-7-1", "include/OIS", "lib/release" }
...
OGRE_RENDERER = true
Appears like I have to install MSYS (MSYS, msysDTK) to c:/msys/1.0 (what I never have done before). Next, I downloaded the CEGUI sources, and installed them into the home folder.
1. Bootstrapping
The bootstrap script did not work properly, so I updated autoconf, automake, libtool, m4. After running again, I was recommended to add AC_CONFIG_MACRO_DIR([m4]) to configure.ac & ACLOCAL_AMFLAGS=-I m4 to Makefile.am, what I have done.
Unfortunately I don't get further, and get following output (note, though you can just run bootstrap, for clarity I break it's commands down here):
Code: Select all
$ libtoolize --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'.
libtoolize: linking file `m4/ltoptions.m4'.
libtoolize: linking file `m4/ltsugar.m4'.
libtoolize: linking file `m4/ltversion.m4'.
libtoolize: linking file `m4/lt~obsolete.m4'.
$ aclocal $ACLOCAL_FLAGS
/usr/share/aclocal/autoopts.m4:22: warning: underquoted definition of AG_PATH_AUTOOPTS
/usr/share/aclocal/autoopts.m4:22: run info '(automake)Extending aclocal'
/usr/share/aclocal/autoopts.m4:22: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
String found where operator expected at /bin/autom4te line 280, near "error "need GNU m4 1.4 or later: $m4""
(Do you need to predeclare error?)
syntax error at /bin/autom4te line 280, near "error "need GNU m4 1.4 or later: $m4""
BEGIN not safe after errors--compilation aborted at /bin/autom4te line 453.
aclocal: autom4te failed with exit status: 255
2. Configure
Somewhere I read to directly start with configure is okay, so I skipped bootstrapping after I didn't come any further with the above errors. Indeed, after installing pkg-config, glib, freetype-dev, and pcre-bin configure works so far, but ...
Code: Select all
...
checking for Ogre... no
checking for OIS... no
configure: Ogre renderer disabled
...
checking for Lua... no
checking for Lua... no
configure: Building of Lua scripting module is disabled
...
********************************************************************************
* Crazy Eddie's GUI System - Configuration Results Summary
********************************************************************************
* Library Release Version: 0.7.2
*
* Code options:
* Building CEGUI in debug mode: no
*
* Bi-directional text support: no
*
* Building MinizipResourceProvider: no
*
* Renderer Modules:
* Building OpenGL Renderer: yes
* Using external GLEW library: no
* Building Ogre Renderer: no
* Building Irrlicht Renderer: no
* Building DirectFB Renderer: no
* Building Null Renderer: no
*
* Image Loading Codec Modules:
* Building Corona Image Codec: no
* Building DevIL Image Codec: no
* Building FreeImage Image Codec: no
* Building SILLY Image Codec: no
* Building TGA Image Codec: yes
*
* Default Image Codec will be: TGAImageCodec
*
* XML Parser Modules:
* Building TinyXMLParser: yes
* Using external TinyXML library: no
* Building ExpatParser: no
* Building LibXMLParser: no
* Building XercesParser: no
* Building RapidXMLParser: no
*
* Default XML Parser is: TinyXMLParser
*
* Scripting:
* Building Lua scripting module: no
* Building tolua++cegui generator: no
*
* Samples Framework:
* Building Samples: yes
* GTK2 based dialog for renderer selection: no
* OpenGL Renderer available in samples: no
* Irrlicht Renderer available in samples: no
* DirectFB Renderer available in samples: no
* Ogre3D Renderer available in samples: no
********************************************************************************
Now you can do make && make install. Good Luck!
I'm not sure if Lua is needed (because of config.lua), but I downloaded, build, tested, and installed it anyway:
Code: Select all
$ cd lua*
$ make mingw
$ make test
$ make install
Still no luck. Lua is installed to local by the way .
3. Make
Though I am not satisfied with the above cofiguration I gave it a try, and started to make it (requires pcre-lib). Successfully, but as anticipated without the Ogre Renderer.
I stuck here, and appreciate any help - getting this done or binaries - to continue with the CEGUI+OGRE tutorial.
Thanks