Tao He

Tao He

  • Docs
  • API
  • Help
  • Blog

›Recent Posts

Recent Posts

  • Microsoft PowerPoint
  • Chrome
  • Alfred
  • Docusaurus
  • Git Commands

CEGUI

May 10, 2015

{% include JB/setup %}

BUILD

Building from source

macOS

  • Install OpenGL

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 into cegui-deps-0.8.x-src\build

  • Copy cegui-deps-0.8.x-src\dependencies into cegui-0.8.5

  • CMake and VSBuild cegui-0.8.5 into cegui-0.8.5\build

  • Copy all files in cegui-deps-0.8.x-src\dependencies into cegui-0.8.5\build\bin

  • Copy cegui-0.8.5\build\datafiles\samples\samples.xml into cegui-0.8.5\datafiles\samples\samples.xml

  • Copy cegui-deps-0.8.x-src\dependencies\* into cegui-0.8.5\build\bin

  • Run cegui-0.8.5\build\bin\CEGUISampleFramework-0.8_d.exe

Recent Posts
  • BUILD
    • macOS
    • Windows
Tao He
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHubStar
Facebook Open Source
Copyright © 2019 Your Name or Your Company Name