OGRE-Next  2.3
Object-Oriented Graphics Rendering Engine
Linux

Requirements

  • CMake 3.x
  • Git
  • What you do NOT need: Boost. Don't waste your time.
  • Clang >3.5 or GCC >4.0
  • QtCreator recommended (Optional).
  • Debian-based: sudo apt-get install libfreetype6-dev libfreeimage-dev libzzip-dev libxrandr-dev libxaw7-dev freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev doxygen graphviz python-clang-4.0
  • Arch: pacman -S freeimage freetype2 libxaw libxrandr mesa zziplib cmake gcc
  • For HW & SW requirements, please visit http://www.ogre3d.org/developers/requirements
  • NVIDIA users: Proprietary drivers are recommended.

Automatic download & build scripts

We provide easy-to-use scripts that will download and setup all dependencies for you in a self-contained folder Download build_ogre_scripts for the branch you need from:

https://www.ogre3d.org/download/sdk/sdk-ogre-next

Downloading Ogre

Most dependencies are conveniently stored in its own repository called "ogredeps" for you to download.

IMPORTANT: Do NOT use the the "Download" feature from Github. It will not follow subrepositories.

Command line:

git clone --recurse-submodules --shallow-submodules https://github.com/OGRECave/ogre-next-deps
git clone --branch v2-2 https://github.com/OGRECave/ogre-next

Building Dependencies

cd Ogre/Dependencies
mkdir build
cd build
cmake ../
# Optionally configure build to use distro packages freeimage, freetype, and zlib if installed
# cmake -D OGREDEPS_BUILD_FREEIMAGE=0 -D OGREDEPS_BUILD_FREETYPE=0 -D OGREDEPS_BUILD_ZLIB=0 ../
cd build
make
make install

Building Ogre

We'll create both a Release & Debug configuration that match the ones used in Windows. This eases portability and cross platform development.

cd Ogre
mkdir build
cd build
mkdir Debug
mkdir Release
# Build Debug
cd Debug
cmake -D OGRE_DEPENDENCIES_DIR=Dependencies/build/ogredeps -D OGRE_BUILD_SAMPLES2=1 -D OGRE_USE_BOOST=0 -D OGRE_CONFIG_THREAD_PROVIDER=0 -D OGRE_CONFIG_THREADS=0 -D CMAKE_BUILD_TYPE=Debug ../../
make
make install
# Build Release
cd ../Release
cmake -D OGRE_DEPENDENCIES_DIR=Dependencies/build/ogredeps -D OGRE_BUILD_SAMPLES2=1 -D OGRE_USE_BOOST=0 -D OGRE_CONFIG_THREAD_PROVIDER=0 -D OGRE_CONFIG_THREADS=0 -D CMAKE_BUILD_TYPE=Release ../../
make
make install

Setting Up Ogre with QtCreator

TBD