History: Building Ogre
Source of version: 62
Copy to clipboard
{DIV(class="achtung")}__IMPORTANT:__ These instructions are meant to be used with old releases of Ogre.
For Ogre 1.10+, rather use [https://ogrecave.github.io/ogre/api/latest/building-ogre.html|BuildingOgre.md].{DIV}
{BOX(width="100%",class="Layout_box9",title="Building OGRE From Source")}{SPLIT(colsize=10%|70%)}{IMG(fileId="4",imalign="left")}{IMG}
---
For developers with more experience, building OGRE from source is usually the more attractive option. For some, it is the only option as prebuilt binaries are not available. Source provides the fastest access to bug fixes and allows the developer to debug any aspect of their code or OGRE. It is also necessary for contributing patches.
{DIV(class="Layout_box13")}%info% As of version 1.7 (Cthugha), the Ogre project uses CMake as its primary build system. See ((Building Ogre Shoggoth)) for previous versions.{DIV}
For the latest stable code (all platforms), you can [http://www.ogre3d.org/developers/mercurial|check out the source from Mercurial].
If using windows, you might also want to read ((Getting Sources With TortoiseHG|a quick guide about getting the sources with tortoisehg, a windows client)).
The actual stable revision is always in a specific branch, e.g. "v1-8" for Byatis, and not the default branch. The 'default' branch is the latest unstable version and is not fully API-compatible with the stable stream, and may have temporary issues. Recommended only for experienced developers.
!!!!-Quick Mercurial Guide {DIV(type="span", class="nxOgre_sup")}(Click the ''+'' sign to view){DIV}
To clone OGRE directly to the stable version (Byatis) do this:
{CODE(wrap="1")}hg clone https://bitbucket.org/sinbad/ogre/ -u v1-8{CODE}
For the unstable 'default' branch:
{CODE(wrap="1")}hg clone https://bitbucket.org/sinbad/ogre/{CODE}
%note% __Note:__ You can always switch branches at any time. For instance, this command switches to the current stable branch:
{CODE(wrap="1")}hg update v1-8{CODE}
!!!!
{SPLIT}{BOX}
{INCLUDE(page="Prerequisites",stop="!!Introduction")}{INCLUDE}
{INCLUDE(page="CMake Quick Start Guide",stop="!!Introduction")}{INCLUDE}
{INCLUDE(page="Building Ogre with CMake",stop="!!Getting the Ogre Sources")}{INCLUDE}
{INCLUDE(page="Getting started with CMake",stop="!!Quick Start For The Impatient")}{INCLUDE}
{INCLUDE(page="Building Your Projects With CMake",stop="!Introduction")}{INCLUDE}
---
Alias: (alias(Building With CMake))
Alias: (alias(Building_With_CMake))
Alias: (alias(Building From Source))
Alias: (alias(Building_From_Source))