I've been able to get CEGUI to work on Mac OS X 10.4 with the help of ldb_ on IRC. In addition, I was able to combine it with lua 5.1 with the help of Taharez. For the benefit of others, I'll detail how to get it to work:
First, there are some perquisites in addition to the libraries you'd need on Linux. First, you need automake 1.9, since the version shipped with Mac OS X is too old. Then, you'll need lua 5.1.x obviously.
For building the samples, you'll need Apple's X11, gtk2 and freeglut (yes, that's a bunch unfortunately). Note that in order to compile freeglut, I had to configure it using CFLAGS="-I/usr/X11R6/include" ./configure for some reason.
First, download CEGUI-0.5.0b from sourceforge (the tar.gz). Extract it somewhere. Then download CEGUI-0.5.0-mac.diff, and run patch -p1 < path-to-diff-file-you-just-downloaded. For some reason the command seems to be unable to locate the files to patch here, but it's easy to supply the filenames manually.
Next, copy/paste this into a file called "bootstrap" in the CEGUI directory:
Code: Select all
libtoolize --force && aclocal-1.9 $ACLOCAL_FLAGS && autoheader && automake-1.9 --include-deps --add-missing --foreign && autoconf
Run it by using sh bootstrap. It'll take a while.
Next, configure CEGUI using ./configure --with-gtk2 --enable-toluacegui. Then (if the summary at the end was ok), all that's left is the usual make (supplying the -j-switch according to your CPU count) and sudo make install.
Note that there's a small change in Demo8 that's not cross platform-compatible. When using lua in Mac OS X binary, you have to supply -flat_namespace when linking the binary.