Thursday, 7 July 2011

Install latest Ogre version (from the Ubuntu PPA repository)

Install prerequisites (http://www.ogre3d.org/tikiwiki/Prerequisites?tikiversion=Linux#Ubuntu):
$ sudo apt-get install build-essential automake libtool
$ sudo apt-get install libfreetype6-dev libfreeimage-dev libzzip-dev libxrandr-dev libxaw7-dev freeglut3-dev
$ sudo apt-get install nvidia-cg-toolkit libois-dev libboost-thread-dev
$ sudo apt-get install doxygen graphviz libcppunit-dev

Install the Ubuntu PPA repository:
$ sudo add-apt-repository ppa:ogre-team/ogre
$ sudo apt-get update

Install Ogre and samples:
$ sudo apt-get install libogre-dev
$ sudo apt-get install ogre-samples-media


resources.cfg:
# Resources required by the sample browser and most samples.
[Essential]
Zip=/usr/share/OGRE/media/packs/SdkTrays.zip
FileSystem=/usr/share/OGRE/media/thumbnails

# Common sample resources needed by many of the samples.
# Rarely used resources should be separately loaded by the
# samples which require them.
[Popular]
FileSystem=/usr/share/OGRE/media/fonts
FileSystem=/usr/share/OGRE/media/materials/programs
FileSystem=/usr/share/OGRE/media/materials/scripts
FileSystem=/usr/share/OGRE/media/materials/textures
FileSystem=/usr/share/OGRE/media/materials/textures/nvidia
FileSystem=/usr/share/OGRE/media/models
FileSystem=/usr/share/OGRE/media/particle
FileSystem=/usr/share/OGRE/media/DeferredShadingMedia
FileSystem=/usr/share/OGRE/media/PCZAppMedia
FileSystem=/usr/share/OGRE/media/RTShaderLib
Zip=/usr/share/OGRE/media/packs/cubemap.zip
Zip=/usr/share/OGRE/media/packs/cubemapsJS.zip
Zip=/usr/share/OGRE/media/packs/dragon.zip
Zip=/usr/share/OGRE/media/packs/fresneldemo.zip
Zip=/usr/share/OGRE/media/packs/ogretestmap.zip
Zip=/usr/share/OGRE/media/packs/ogredance.zip
Zip=/usr/share/OGRE/media/packs/Sinbad.zip
Zip=/usr/share/OGRE/media/packs/skybox.zip

[General]
FileSystem=/usr/share/OGRE/media

plugins.cfg:
## necessary file - used by the reseale version

# Defines plugins to load

# Define plugin folder
PluginFolder=/usr/lib/OGRE/


###############################################
## Define D3D rendering implementation plugin #
###############################################

# Use OpenGL Rendering Subsystem (other option: Direct3D) [necessary]
# This is the interface to communicate with OpenGL to render our scene.
Plugin=RenderSystem_GL.so
Plugin=Plugin_ParticleFX.so
Plugin=Plugin_BSPSceneManager.so
Plugin=Plugin_OctreeSceneManager.so
#Plugin=Plugin_CgProgramManager.so

References:
http://ilektron-x.blogspot.com/2011/06/installing-and-compiling-ogre3d-code.html
http://www.ogre3d.org/tikiwiki/Installing+the+Ogre+SDK?tikiversion=Linux

No comments:

Post a Comment