CEGUI
{% include JB/setup %}
BUILD
macOS
- Install OpenGL
- Download CEGUI source and dependencies from CEGUI release
cd ~/local/src/cegui-deps-0.8.x-src/
mkdir build/
cd build/
cmake -G Xcode ..
xcodebuild -configuration Debug
xcodebuild -configuration Release
ls dependencies/lib
cd ~/local/src/cegui-0.8.5/
ln -s ../cegui-deps-0.8.x-src/build/dependencies .
mkdir build/
cd build/
cmake -G Xcode ..
xcodebuild -configuration Debug -jobs 4
xcodebuild -configuration Release -jobs 4
``
Copy `~/local/src/cegui-0.8.5/build/bin/CEGUISampleFramework-0.8_d.app/Contents/Frameworks/` to `~/local/src/cegui-0.8.5/build/` with mouse.
Because binary runtime read `../Frameworks/`.
* Run
```sh
# will load `datafiles/` from this directory
cd ~/local/src/cegui-0.8.5/
# ok
./build/bin/CEGUITemplate_GLFW3
# crash, don't know why
./build/bin/CEGUISampleFramework-0.8_d.app/Contents/MacOS/CEGUISampleFramework-0.8_d
- Tools
find dylib location
otool -l ~/local/src/cegui-0.8.5/build/bin/CEGUITemplate_GLFW3
otool -l ~/local/src/cegui-0.8.5/build/bin/CEGUISampleFramework-0.8_d.app/Contents/MacOS/CEGUISampleFramework-0.8_d
change dylib location
install_name_tool -change
runtime dylib location
lsof -p PID
Windows
Download CEGUI source and dependencies from CEGUI release
Download CMake GUI
CMake and VSBuild
cegui-deps-0.8.x-srcintocegui-deps-0.8.x-src\buildCopy
cegui-deps-0.8.x-src\dependenciesintocegui-0.8.5CMake and VSBuild
cegui-0.8.5intocegui-0.8.5\buildCopy all files in
cegui-deps-0.8.x-src\dependenciesintocegui-0.8.5\build\binCopy
cegui-0.8.5\build\datafiles\samples\samples.xmlintocegui-0.8.5\datafiles\samples\samples.xmlCopy
cegui-deps-0.8.x-src\dependencies\*intocegui-0.8.5\build\binRun
cegui-0.8.5\build\bin\CEGUISampleFramework-0.8_d.exe