CMake Quick Start Guide         A guide to get you building OGRE from source with the default settings in the shortest possible time
Print

IMPORTANT: These instructions are meant to be used with old releases of Ogre. For Ogre 1.10, rather use BuildingOgre.md(external link).
Image

For the impatient: Learn how to build Ogre with CMake in two minutes. If you encounter any problems or need some more advanced procedures, do read the rest of the sections below!

Introduction

This guide is designed to get you building OGRE from source with the default settings in the shortest possible time, showing you the barest minimum of CMake to do that, and minus any real discussion. Remember that there is a lot more to the hows and whys of this process, so it's a good idea to go back to the Getting Started With CMake page and read the whole thing when you have time.

We assume here that you've already downloaded / extracted the OGRE source code(external link) into a folder on your local machine. From here, go to the section for your platform.

Done Make sure that you've sorted out the Prerequisites(external link) before attempting to build Ogre with CMake!

 

  1. Download Ogre Source(external link) (Instructions below assume current version of 1.8.0, update as needed)
  2. Decompress:
    tar xjf ogre_src_v1-8-0.tar.bz2
  3. Move to source directory:
    cd ogre_src_v1-8-0
  4. Create build directory:
    mkdir build
  5. Move into build directory:
    cd build
  6. Trigger cmake, passing path to Ogre source directory:
    cmake ..
    See the Extensive CMake page for a list of compilation options which can be passed to CMake at this stage, and Getting Started With CMake for even more background material. N.B. Please note that OGRE_CONFIG_THREADS = 1 is not supported on Linux.
  7. If the CMake results look good, build Ogre:
    make -j2
    The -j2 specifies how many parallel compilation jobs to run. Substitute the number of processor cores on your system, e.g. -j2 for a dual-core, -j4 for a quad core...
  8. Once compilation is successful, you can install into the system (by default, /usr/local):
    sudo make install

 


Contributors to this page: paroj1 points  , xavier69 points  , wolfmanfx398 points  , tp56 points  , Spacegaier6073 points  , sajty75 points  , masterfalcon435 points  , jacmoe180265 points  , holocronweaver3177 points  , Emerich41 points  , ejtttje216 points  , edoardo782 points  , dark_sylinc1400 points  , DanielSefton1 points  , Captain Oz46 points  and c6burns837 points  .
Page last modified on Sunday 03 of September, 2017 16:38:53 UTC by paroj1 points .


The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.