Prerequisites        
Print

Image

What you need to build Ogre from source.

Introduction

This is a small check list of things you need to do before you're ready to build Ogre from source.

Image

Before you begin

Ogre does not play well with "Software Rasterizers", so if you run glxinfo | grep Software and it finds "OpenGL renderer string: Software Rasterizer", you may need to investigate upgrading your graphics card or its drivers. See jockey-gtk on Ubuntu for driver help.

The easiest way to get Ogre is to install via package manager, e.g.
sudo apt-get install libogre-1.9-dev

Close
noteCheck Ogre Versions
However, this may be out of date, e.g. for Ubuntu 10.04 only Ogre 1.6.4 is available, although the latest release is 1.7.1. Ogre 1.9 is available for Ubuntu 14.4.


If you want the latest version of Ogre, follow the directions below and then the CMake Quick Start Guide

Done Ubuntu

Image
For Ubuntu Karmic and above:

Compiler And Configuration Tools
sudo apt-get install build-essential automake libtool


Required Dependencies
sudo apt-get install libfreetype6-dev libfreeimage-dev libzzip-dev libxrandr-dev libxaw7-dev freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev

If during Ogre build any headers are still missing, try adding these one at a time, and update the list above please! :-)
  • libxt-dev
  • libpng3-dev
Could probably use libglew1.5-dev instead of freeglut3-dev. It is an open question whether or not libxt-dev and libpng3-dev is required.

Not Strictly Required Dependencies
sudo apt-get install nvidia-cg-toolkit libois-dev libboost-thread-dev

Info While nvidia-cg-toolkit, libois-dev and libboost-thread-dev are not strictly required, you'll want to install them:
  • nvidia-cg-toolkit is used by the Cg plugin for Cg shaders.
  • libois-dev is used as input library for the demos.
  • libboost-thread-dev is used by the paging component and other background threading.

Entirely Optional Dependencies
sudo apt-get install doxygen graphviz libcppunit-dev



Done Fedora

fedora.jpg
This is a list of packages to install for Fedora 13:

Required Dependencies
gcc-c++ libXaw-devel freetype-devel freeimage-devel zziplib-devel cmake


Not Strictly Required Dependencies
boost-devel ois-devel Cg

WARNING: To install the Cg package, you need to enable the nonfree RPMFusion repositories(external link)

Entirely Optional Dependencies
doxygen cppunit-devel



Done OpenSUSE

Image

This is a list of packages to install for OpenSUSE 12.2:

To install these optional dependencies (recommended) you will need to add the OpenSUSE games repo:
Add games repo
zypper ar http://download.opensuse.org/repositories/games/openSUSE_Factory/ games


Required Dependencies
zypper in gcc-c++ libXaw-devel freetype2-devel freeimage-devel libxrandr-devel zziplib-devel cmake


Not Strictly Required Dependencies
zypper in boost-devel libOIS-devel cg-devel


Entirely Optional Dependencies
zypper in doxygen cppunit-devel



Done Arch Linux


archlinux.png
Run this to install the Ogre dependencies for Arch Linux:

pacman -S boost-libs boost freeimage freetype2 libxaw libxrandr mesa nvidia-cg-toolkit ois zziplib cmake gcc



Contributors to this page: Sauermann41 points  , vapor46 points  , Transporter481 points  , TheSHEEEP801 points  , spacegaier6073 points  , sharms291 points  , raffamaiden101 points  , ogre_user43 points  , mikachu280 points  , masterfalcon435 points  , jakesee66 points  , jacmoe180265 points  , gtsiam1231 points  , excaliburHisSheath531 points  , ethankaminski288 points  , entith161 points  and ejtttje216 points  .
Page last modified on Thursday 15 of October, 2015 18:20:24 UTC by Sauermann41 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.