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
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: Tutorial 1
View page
Source of version: 5
(current)
!!!How to setup and compile Ogre This tutorial will cover the basic setup and compilation of Ogre for the rest of the Tutorials. Directory Setup For these Tutorials we will be creating our own directory structure. Create the following directories using DOS or Windows explorer. * {MONO()}C:\OgreTutorials{MONO} * {MONO()}C:\OgreTutorials\Bin\Debug{MONO} * {MONO()}C:\OgreTutorials\Bin\Release{MONO} * {MONO()}C:\OgreTutorials\Bin\Media{MONO} * {MONO()}C:\OgreTutorials\Common{MONO} !!!!Getting Ogre There are three ways you can get Ogre. # Download a stable version of Ogre's source code from [http://www.ogre3d.org/index.php?option=com_content&task=view&id=412&Itemid=132|here]. # Download a stable version of Ogre as a prebuilt sdk from [http://www.ogre3d.org/index.php?option=com_content&task=view&id=411&Itemid=131|here]. # Download Ogre directly from CVS. The instructions for doing this are found at [http://www.ogre3d.org/index.php?option=com_content&task=view&id=415&Itemid=144|here]. After downloading Ogre, you will need to also download the a precompiled dependencies package. These are found [http://www.ogre3d.org/index.php?option=com_content&task=view&id=412&Itemid=132|here]. There are seperate downloads for Visual C++ 2003, 2005, 2008, Code::Blocks/MingW and OSX. You only need the one which matches the compiler you are using. !!!!Compiling Ogre If you downloaded a ZIP you can now unzip Ogre into our directory. If you used CVS and put it someplace else, move or copy the OgreNew directory to ours. In the end you should have {MONO()}C:\OgreTutorials\OgreNew{MONO}. Now unzip the dependencies into {MONO()}C:\OgreTutorials{MONO}. If it was done right, there now should be a directory at {MONO()}C:\OgreTutorials\OgreNew\Dependencies{MONO}. Using VC++, Open up the Ogre solution found in {MONO()}C:\OgreTutorials\OgreNew{MONO}. If everything was setup properly, at this time you should be able to compile the whole workspace in debug and release modes. Once compiled, you can go to {MONO()}C:\OgreTutorials\OgreNew\Samples\common\bin\debug{MONO} or {MONO()}C:\OgreTutorials\OgreNew\Samples\common\bin\release{MONO} and you will find a whole load of demo executables. Run them, look though them. The last part of this tutorial is copying the appropriate files for the rest of the tutorials. Using Windows explorer we need to copy the DLLs and Plugins.cfg from {MONO()}C:\OgreTutorials\OgreNew\Samples\common\bin\debug{MONO} to {MONO()}C:\OgreTutorials\bin\debug{MONO} And {MONO()}C:\OgreTutorials\OgreNew\Samples\common\bin\release{MONO} to {MONO()}C:\OgreTutorials\bin\release{MONO}. Using file explorer copy the following files to {MONO()}C:\OgreTutorials\Common{MONO} * {MONO()}C:\OgreTutorials\OgreNew\Samples\Common\Include\ExampleApplication.h{MONO} * {MONO()}C:\OgreTutorials\OgreNew\Samples\Common\Include\ExampleFrameListener.h{MONO} Using file explorer copy the DLLs from {MONO()}C:\OgreTutorials\Ogrenew\dependancies\Devil\libs{MONO} to {MONO()}C:\OgreTutorials\bin\debug{MONO}. Now open the file {MONO()}C:\OgreTutorials\bin\debug\ogre.cfg{MONO} in a text editor, and change the option "Full Screen" to have the value "No". This wil make it easier to debug programs. Now we can step ahead to ((Tutorial 2))
Search by Tags
Search Wiki by Freetags
Latest Changes
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
Critter AI
Mogre Add-ons
MOGRE
Mogre MyGUI wrapper
MOGRE Editable Terrain Manager
...more
Search
Find
Advanced
Search Help
Online Users
20 online users