Crazy Eddie's GUI System
0.8.6
|
CEGUI uses CMake build generation system (http://www.cmake.org/) to configure the build and generate makefiles or project files of whatever kind you choose – basically this means that if cmake can spit out build files for it, then you should be able to successfully use it to build CEGUI.
The CEGUI developers have personally tested the build of CEGUI on a variety systems, and can say the CEGUI is known to build using the following in both 32bit and 64bit configurations:
You may have already noticed that CEGUI has a lot of dependencies. Don't be scared! These are mostly – if not all – optional. CEGUI uses these third-party libraries to provide various functionality ranging from the obvious rendering and image loading to more obscure things such as providing regular expression based validation of edit box content and bi-directional text.
For a list of the various libraries that CEGUI can use and what they are used for, please see Dependency Libraries for Crazy Eddie's GUI System.
For Windows and Apple OS X users, a source based dependency package is provided. This contains the source for the dependencies that you may wish to use. Please note that this dependency package is the only supported approach to getting the dependencies on these systems. See Obtaining and Building the Dependencies (Windows and OS X) for instructions related to building the dependency pack.
For GNU/Linux systems, it is expected that you will install the development packages for the libraries that you intend to use – either via your distribution's package management system or by manually building and installing if that is more appropriate for you.
The procedure for building CEGUI is about as simple as things can get and is effectively the same as building any other library you might have built. Things to note are that, as already mentioned, CEGUI uses the cmake build generator and provides a source based dependency pack for Microsoft Windows and Apple OS X users.
I will now overview the basic steps, since these are mostly trivial long descriptions are not given for most steps.
Refer to the Dependency Libraries for Crazy Eddie's GUI System and decide which features you wish you use with CEGUI.
dependencies
directory from the location where you built the dependencies to the root CEGUI source directory. This means that if your CEGUI directory is called C:\cegui-0.8.0
, your dependencies should be at C:\cegui-0.8.0\dependencies
. Now you must use CMake to configure the build and generate the appropriate build files so that you can actually compile the source files. I recommend the CMake GUI utility – at least initially until you are familiar with the available build options. The steps below reflect this choice, if you choose not to use the GUI utility for this, then it is assumed you are sufficiently familiar with both CMake and CEGUI and therefore do not require additional guidance.
Once you have the CMake GUI utility running:
You should now take the generated build files and build them! This may involve loading solution or project files into your IDE and pressing build buttons or entering commands – such as make
– into the terminal. Once the build is complete, you should find libraries and perhaps executable binaries in subdirectories beneath your chosen build location.
Building the 'install' target will copy the files required to use CEGUI to some appropriate location on your system:
make install
– or some equivalent operation to trigger the install target – you will cause the libraries, headers and other items to be installed to the system. It is likely that you will need appropriate privileges to achieve this unless you set the install prefix to some other location that you already have access to. install_manifest.txt
that contains a list of all files copied during install. This allows you to uninstall by doing something similar to: xargs rm <install_manifest.txt
This has been an overview of the build for CEGUI. You should now have your libraries built and be ready and able to make use of the system.