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: IDE Eclipse
View page
Source of version: 6
(current)
%prevogre% {maketoc} To build ogre you need a couple of dev packages or sources to be added to your system see ((Building From Source - Shoggoth)) page for more info. !!Install Eclipse # Download eclipse from [http://www.eclipse.org|www.eclipse.org]. # Unpack it and start it. # If you didn't select the "Eclipse IDE for C/C++ Developers" version select install it __Help__ -> __Software Updates__ select your eclipse version (Genymede for 3.4) select all the nice stuff in __C and C++ Development__ then select install. # Install subclipse (subversion support) following the instruction on [http://http://subclipse.tigris.org/|subclipse.tigris.org]. !!Ogre Sourcecode !!!Download Ogre source via SVN # In __File__ -> __New__ -> __Other__ Select __SVN__ -> __Checkout Project from SVN__ # Select __Create a new repository location__ and add this url __[https://svn.ogre3d.org/svnroot/ogre]__ # Select Trunk or the branch you want to use and select the __Next >__ button. See the [http://www.ogre3d.org/index.php?option=com_content&task=view&id=415&Itemid=144|Getting OGRE From Subversion] page for more info. # Select __Check out as a project configured using the New Project Wizard__ then __Finish__ # In the "New Project" wizard select __C++__ -> __C++ Project__ then __Next >__ # Add a nice project name like "ogre" and select __Makefile project__ -> __Empty Project__ # Select the __Linux GCC__ in Toolchains and then __Finish__ # If you get a resource conflict question select "yes" (use the stuff from the reposetory. (Wait for the checkout to finish... (a few minutes)) !!!Configure Ogre Open a shell cd the the dir and execute bootstrap (if someone knows how to do this from inside eclipse please update this wiki) {CODE(wrap="1", colors="bash")} $> cd ~/<your eclipse workspace dir>/<name of the project e.g. ogre> $> ./bootstrap $> ./configure {CODE} !!!Build Ogre and Install Build it from inside eclipse __Project__ -> __Build Project__ (or CRTL + b) You can install by doing a make install from a shell but I don't think it is needed as the project can find the headerfiles from the "ogre" project directly. But if you wan to install it try this: {CODE(wrap="1", colors="bash")} $> cd ~/<your eclipse workspace dir>/<name of the project e.g. ogre> $> sudo make install {CODE} !!Create your own project (((Basic Tutorial 1))) Here is an setup that will get you started with ((Basic Tutorial 1)) !!!Build and Link # Select __File__ -> __New__ -> __C++ Project__ # In the C++ Project window enter a Project name and select project type __Executable__ -> __Hello World C++ Project__ # Select Toolchain __Linux GCC__ then __Finish__ # Replace the content of the created .ccp (hello world example) with the content of Initial Code in ((Basic Tutorial 1)). When you build you will notice that it misses a few depandancies. # Rightclick on the project and select __Properties__ # Select __C/C++ General__ -> __Path and Symbols__ # In the __Include__ tab select __Add...__ # In the "Add directory path" window select __Add to all configurations__ and __Add to all languages__ # Then select __Workspace...__ and browse to your ogre project and select __<ogre project>/OgreMain/Include__ # Do the same with __<ogre project>/Samples/Common/Include__ if you are following the tutorials. # In the __Library Paths__ tab select __Add...__ # In the "Add..." window select __Add to all configurations__ and __Add to all languages__ # Then select __Workspace...__ and browse to your ogre project and select __<ogre project>/OgreMain/src/.libs__ # To add the main lib then in the "Properties for <project name>" window select __C/C++ Build__ -> __Settings__ # In the "Tool Setting" tab select __GCC C++ Linker__ -> __Libraries__ and add __OgreMain__ and __OIS__ Now you can build and link. !!!Run To run it you need to copy and edit the paths of plugins.cfg and resources.cfg from the ogre examples and place them from where you bin end up. # Rightclick and select copy on the file __<ogre project>/Samples/Common/bin/resources.cfg__ and past it in your project. Change the paths so it finds the stuff in the <ogre project>. # Rightclick and select copy on the file __<ogre project>/Samples/Common/bin/plugins.cfg__ and past it in your project. Change the paths so it finds the stuff in the <ogre project>. Please continue by reading and having fun with all the ((Ogre Tutorials)). Good Luck!
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
16 online users