Ogre setup

From KruelWiki

Jump to: navigation, search

Contents

Gentoo

Our primary development environment at the moment is based on Gentoo. As such, the following instructions are targeted at setting up Ogre and our other dependencies (currently CEGUI) on Gentoo.

Gentoo now has ebuilds ('packages') for ogre and cegui. To install type:

echo "dev-games/ogre cegui cg devil" >> /etc/portage/package.use
echo "dev-games/cegui devil" >> /etc/portage/package.use
emerge cegui ogre

Advanced users may like to tweak their USE flags, but for the purposes of the praelium project, we recommend you use the following USE flags to emerge the packages:

cegui:  +devil +opengl
ogre: +cegui +cg +devil +gtk +opengl +sdl

Note: Next to theat Ogre (1.0 series) seem to have trouble when built with the flag "double-precision" when linking the example application.

You may need to unmask some of the dependencies.

Note for AMD64 users

Currently a bug exists in libpng which will cause devil to crash, you can apply a patch to libpng but then you must recompile everything which depends on it. Most distributions are ignoring the bug and hoping it will go away, I can't find a bug for it in the bugtracker for gentoo, so perhaps it is now fixed?

Ubuntu / Debian

Ubunutu is far more user friendly that gentoo and as such will be easier to support long term, having said that Ubuntu doesnt currently have Ogre/CEGUI packages.

Debian has failed to apply a patch from june '05 to address this issue [1] and Ubuntu currently has no bug listing.

Slackware

OGRE can be a headache to compile correctly on Slackware systems.
For this package to work you will have to install all the dependencies yourself.
Such as CEGUI, OpenGL, Devil, GTK, SDL, etc.
The package can be found at: http://www.kruel.org/dump/OGRE-1.0.5-i386-1.tgz.

Personal tools