Requirements
- CMake 3.x
- Mercurial. We recommend TortoiseHg
- 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.
- AMD users: latest Mesa from git is recommended, though its Compute Shader support is a bit flaky at the time being (doesn't produce correct output)
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 Bitbucket. It will not follow subrepositories.
Command line:
mkdir Ogre
hg clone https://bitbucket.org/sinbad/ogre -r v2-1
cd Ogre
hg clone https://bitbucket.org/cabalistic/ogredeps Dependencies
Graphical
Clone Ogre:
Now clone the ogredeps repository:
Make sure Ogre is in the 2.1 branch:
Note: If the branch filter doesn't appear, hit Ctrl+S
Building Dependencies
cd Ogre/Dependencies
mkdir build
cd build
cmake ../
cd build
make
make instal
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