Skip to main content

History: Installing the Ogre SDK

Preview of version: 52

66px-Vista-synaptic.png
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.


{VERSIONS(nav="y",title="y",default="Microsoft Windows")}

Prerequisites:

  1. Go to http://www.ogre3d.org/download/sdk.
  2. Download the SDK matching your IDE version.
  3. Download and install DirectX: directx_Jun2010_redist.exe

Run the installer:

installSDK1.png

Unpack to a suitable location:

installSDK2.png

Go to the directory of the newly installed sdk and copy the full path:

installSDK3.png

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):

Copy to clipboard
setx OGRE_HOME "<path-to-OgreSDK-here>"

If you are using Windows XP, or any prior Windows version, you will need to use the 'set' command, like so:

Copy to clipboard
set OGRE_HOME="<path-to-OgreSDK-here>"

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
Ogre environmental varaiables

That's it. :)



Open the solution Ogre.sln with Visual Studio and build the project(could take a few minutes). Then LEFT 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.



-(Linux)-
Image
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()}Image

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

Ubuntu 10.04 LTS, 10.10 and 11.04:

  • add this PPA: ppa:ogre-team/ogre
  • update your packages list
  • install libogre-dev package


See this link if you don't know how use a PPA (Personal Package Archive).

If you want use commands:

  • add OGRE PPA with: sudo add-apt-repository ppa:ogre-team/ogre
  • update your package list with: sudo apt-get update
  • install libogre-dev package with: sudo apt-get install libogre-dev


-(Mac OS X)-

Image

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.


  1. Go to http://www.ogre3d.org and click on Download.
  2. Next click on Download a Prebuilt SDK.
  3. Download the latest OSX SDK.
  4. Double-click the .dmg to mount it
  5. Drag & drop the OgreSDK folder wherever you like to install the SDK
  6. Install CMake for building the samples. Version 2.8.0 is said to be the most stable version for this. Cmake v2.8 (if you have a MacPorts installation of cmake, read the section below.)
  7. You might need this as well 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 BugMeNot)
  8. 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.
  9. 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:

  • 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


{VERSIONS}

Next Step:

Now you are ready to go to Setting Up an Application, and/or visit the Tutorials.




Alias: Installing An SDK
Alias: Installing_An_SDK
Alias: Installing_the_Ogre_SDK_on_Mac_OS_X

History

Information Version
Thu 09 of Sep, 2021 11:26 GMT-0000 paroj 58
Sat 18 of Apr, 2020 19:30 GMT-0000 paroj 57
Thu 15 of Oct, 2015 21:28 GMT-0000 Sauermann Added link to forum SDK thread 56
Sat 12 of Jul, 2014 00:11 GMT-0000 gunnihelga 55
Fri 11 of Jul, 2014 20:53 GMT-0000 gunnihelga 54
Fri 11 of Jul, 2014 20:52 GMT-0000 gunnihelga 53
Fri 11 of Jul, 2014 20:49 GMT-0000 gunnihelga 52
Tue 08 of Jul, 2014 18:00 GMT-0000 gunnihelga 51
Mon 07 of Jul, 2014 16:29 GMT-0000 gunnihelga 50
Mon 07 of Jul, 2014 16:29 GMT-0000 gunnihelga 49
Mon 07 of Jul, 2014 15:30 GMT-0000 gunnihelga 48
Fri 04 of Jul, 2014 03:52 GMT-0000 excaliburHisSheath Updates Ubuntu instructions to reflect Ogre 1.9 47
Fri 04 of Jul, 2014 03:50 GMT-0000 excaliburHisSheath Updates the Ubuntu instructions to reflect Ogre 1.9 46
Sat 15 of Feb, 2014 19:58 GMT-0000 excaliburHisSheath 45
Tue 07 of Jan, 2014 07:09 GMT-0000 Kojack Updated directx version 44
Fri 28 of Sep, 2012 13:41 GMT-0000 Mayazcherquoi Fixed this section as it contained wrong information before and thus would lead to several errors for beginner users. Also changed the image example to English, for universal purposes. 43
Thu 30 of Aug, 2012 15:59 GMT-0000 sharms Update Nvidia CG toolkit link for OS X to http://developer.nvidia.com/cg-toolkit-download 42
Fri 04 of Nov, 2011 23:13 GMT-0000 Jamie Fristrom How to compile under windows added. 41
Sun 11 of Sep, 2011 11:37 GMT-0000 barkbeetle89 Hint for people using a MacPorts installation of Cmake + Link to BugMeNot since the Cg download link is only accessible for Nvidia Developer Zone members. 40
Wed 04 of May, 2011 22:08 GMT-0000 cosme Dropped support for 9.10 release 39
Thu 28 of Apr, 2011 12:56 GMT-0000 cosme 38
Wed 20 of Apr, 2011 14:59 GMT-0000 cosme 37
Fri 21 of Jan, 2011 01:43 GMT-0000 cosme 36
Wed 08 of Dec, 2010 22:20 GMT-0000 mannueru 35
Sat 28 of Aug, 2010 13:32 GMT-0000 cosme 34