```bash
cd $cegui_folder
# you can call the folder differently but "build" is customary
mkdir build/
cd build/
# run the configure step
cmake-gui ../
# fix any issues pointed out by cmake
# not all dependencies are required so if some are not found, don't panic and carry on!
# alternative (if you are a command line pro)
# cmake ../
```
At this point, Makefiles, project files or something else will be generated. Next step depends on which that is.
For Makefiles, just run
```bash
cd $cegui_folder
cd build/
make
```
This is the command line output:
build Matt$ make
[ 79%] Built target CEGUIBase-0
[ 80%] Built target CEGUIExpatParser
[ 81%] Built target CEGUILibXMLParser
[ 82%] Building CXX object cegui/src/ImageCodecModules/SDL2/CMakeFiles/CEGUISDL2ImageCodec.dir/ImageCodec.cpp.o
/Users/Matt/Downloads/cegui-0.8.7/cegui/src/ImageCodecModules/SDL2/ImageCodec.cpp:40:10: fatal error:
'SDL2/SDL_image.h' file not found
#include <SDL2/SDL_image.h>
^
1 error generated.
make[2]: *** [cegui/src/ImageCodecModules/SDL2/CMakeFiles/CEGUISDL2ImageCodec.dir/ImageCodec.cpp.o] Error 1
make[1]: *** [cegui/src/ImageCodecModules/SDL2/CMakeFiles/CEGUISDL2ImageCodec.dir/all] Error 2
make: *** [all] Error 2
I installed SDL from the website. And I installed SDL_image. Still doesn't build.