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-src
intocegui-deps-0.8.x-src\build
Copy
cegui-deps-0.8.x-src\dependencies
intocegui-0.8.5
CMake and VSBuild
cegui-0.8.5
intocegui-0.8.5\build
Copy all files in
cegui-deps-0.8.x-src\dependencies
intocegui-0.8.5\build\bin
Copy
cegui-0.8.5\build\datafiles\samples\samples.xml
intocegui-0.8.5\datafiles\samples\samples.xml
Copy
cegui-deps-0.8.x-src\dependencies\*
intocegui-0.8.5\build\bin
Run
cegui-0.8.5\build\bin\CEGUISampleFramework-0.8_d.exe