Skip to main content
History: Installing the Ogre SDK
View published page
Source of version: 58
(current)
{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")}{SPLIT(colsize=10%|70%)}{IMG(fileId="5",imalign="left")}{IMG} --- This details the necessary steps you need to take to install the precompiled OGRE SDK. If you want to build Ogre from source instead, visit the ((Building Ogre)) page. {SPLIT}{BOX} {VERSIONS(nav="y",title="y",default="Microsoft Windows")} %clear% !! Prerequisites: # Go to [http://www.ogre3d.org/download/sdk]. (There are also more recent [http://www.ogre3d.org/forums/viewtopic.php?t=69274|SDK's made available by the forum user Transporter]) # Download the SDK matching your IDE version. # Download and install DirectX: [http://www.microsoft.com/en-au/download/details.aspx?id=8109|directx_Jun2010_redist.exe] !!Run the installer: {img fileId="1675" width=250 thumb="y" alt="" rel="box[g]"} !!Unpack to a suitable location: {img fileId="1674" width=250 thumb="y" alt="" rel="box[g]"} !!Go to the directory of the newly installed sdk and copy the full path: {img fileId="1677" width=250 thumb="y" alt="" rel="box[g]"} !!Setting the Environment Variable, OGRE_HOME. Now, you need to set the %OGRE_HOME% environment variable. This environment variable enables you, the developer, to easily switch between different OgreSDK versions and transfer/compile Ogre3D projects of other users (portability). To set this environment variable, enter the following in any Command Prompt window (Windows Vista/7/8/newer): {CODE(wrap="1", colors="winbash")}setx OGRE_HOME "<path-to-OgreSDK-here>"{CODE} If you are using Windows XP, or any prior Windows version, you will need to use the {MONO()}'set'{MONO} command, like so: {CODE(wrap="1", colors="winbash")}set OGRE_HOME="<path-to-OgreSDK-here>"{CODE} Take note of the use of quotation marks, as they are required, otherwise you will get several '''file not found''' errors when trying to compile any Ogre3D project. Example 1: Setting the environment variable ''OGRE_HOME'' on Windows 8: <img src="http://www.ogre3d.org/tikiwiki/tiki-download_wiki_attachment.php?attId=167&page=Installing%20the%20Ogre%20SDK" /> Example 2: Setting the environment variable ''OGRE_HOME'' on Windows 7: Go to Control Panel -> System and Security -> System. From the left navigation panel choose Advanced system settings. Click on Environmental varable button and enter in the fields Variable name: ''OGRE_HOME'' and in Variable value: your path to Ogre example: C:\OgreSDK\OgreSDK_vc10_v1-8-1 {img fileId="2195" thumb="y" rel="box[g]" width="600"} !!That's it. :) Open the solution Ogre.sln with Visual Studio and build the project(could take a few minutes). Then Right click on sampleBrowser and choose: ‘Set as startup Project’. RUN SampleBrowser and you can explore all the samples that are included with the Ogre Solution. {img fileId="2196" thumb="y" rel="box[g]" width="600"} ---(Linux)--- {IMG(src="img/wiki_up/Big_Logo_Linux.jpg",imalign="left")}{IMG} This section is for developers willing to install a precompiled Software Development Kit (SDK) under Linux platform. Unix users typically compile their own sources for almost all software, including Ogre. However pre-built binaries are available for a handful of distributions. See below for yours. !!!Ubuntu {DIV()}{IMG(src="img/wiki_up/Big_Logo_Ubuntu.jpg",imalign="left")}{IMG} !!!!Ubuntu 11.10 (Quantal) and Newer The Ogre3D libraries are part of the Universe repository, so to download simply install the __libogre-dev__ package via your favorite package manager. For Ubuntu 14.4 there is no __libogre-dev__, so to install Ogre 1.9 you need to install __libogre-1.9-dev__. For example, to install via the terminal enter: *__sudo apt-get install libogre-1.9-dev__ ---(Mac OS X)--- {DIV()}{IMG(src="img/wiki_up/Big_Logo_Macintosh.jpg",height="66",width="66",imalign="left")}{IMG} This section is for developers willing to install a precompiled Software Development Kit (SDK) under Mac OS X platform. Once you have OGRE downloaded and setup, learn how to setup your first application.{DIV} %clear% #Go to http://www.ogre3d.org and click on Download. #Next click on Download a Prebuilt SDK. #Download the latest OSX SDK. #Double-click the .dmg to mount it #Drag & drop the OgreSDK folder wherever you like to install the SDK #Install CMake for building the samples. Version 2.8.0 is said to be the most stable version for this. [http://www.cmake.org/files/v2.8/|Cmake v2.8] (if you have a MacPorts installation of cmake, read the section below.) #You might need this as well [http://developer.nvidia.com/cg-toolkit-download | CG Toolkit] (the download is only available for registered members of Nvidia Developer Zone. You may create your own account or use one of those [http://www.bugmenot.com/view/nvidia.com | BugMeNot]) #Start up Xcode and load the OgreSDK/OGRE.xcodeproj to build the samples. You probably want to build the debug versions of these. It will give you more insight when things go wrong. Make sure you select that from the build type dropdown. #After you have built the samples look for them in OgreSDK/bin/debug. You should see SampleBrowser.app in there. Fire it up! !!!Cmake over MacPorts If you have installed Cmake over MacPorts, you need to do some replacement inside CMakeScripts/ReRunCMake.make: {BOX(width="100%")} *replace __/Applications/CMake\ 2.8-5.app/Contents/share/cmake-2.8/Modules/__ by __/opt/local/share/cmake-2.8/Modules/__ *replace __/Applications/CMake\ 2.8-5.app/Contents/bin/cmake__ by __/opt/local/bin/cmake{BOX}__ {VERSIONS} !!Next Step: Now you are ready to go to ((Setting Up an Application)), and/or visit the ((Tutorials)). --- Alias: (alias(Installing An SDK)) Alias: (alias(Installing_An_SDK)) Alias: (alias(Installing_the_Ogre_SDK_on_Mac_OS_X))
Search by Tags
Search Wiki by Freetags
Latest Changes
Compiled API Reference
Overlay Editor
Introduction - JaJDoo Shader Guide - Basics
RT Shader System
RapidXML Dotscene Loader
One Function Ogre
One Function Ogre
...more
Search
Find
Online Users
48 online users
OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username
Password
CapsLock is on.
Remember me (for 1 year)
Log in