OGRE-Next  4.0.0unstable
Object-Oriented Graphics Rendering Engine
Linux

Requirements

  • CMake 3.x
  • Git
  • 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 libx11-xcb-dev libxcb-keysyms1-dev doxygen graphviz python-clang libsdl2-dev cmake ninja-build
  • 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

Ogre Next source is located at Github/OGRECave/ogre-next

Ogre Next dependencies are located at Github/OGRECave/ogre-next-deps

Download the source code or you can fork it to your own repository and clone it locally with Github Desktop or the command line.

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 master https://github.com/OGRECave/ogre-next

Building Dependencies

cd ogre-next-deps
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 ../
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-next
ln -s ../ogre-next-deps/build/ogredeps Dependencies
mkdir build
cd build
mkdir Debug
mkdir Release
# Build Debug
cd Debug
cmake -D OGRE_BUILD_SAMPLES2=1 -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_BUILD_SAMPLES2=1 -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