Skip to main content
Detailed Fedora Walkthrough        
The purpose of this tutorial is helping you to set up a working OGRE development environnement under Fedora Core 5

Tip_icon.png This information is regarding previous versions of Ogre. (Before the switch to a CMake based build system)

Info See Building Ogre for current version.

The purpose of this tutorial is helping you to set up a working OGRE development environnement under Fedora Core 5. Although not extensively tested, OGRE v1.2 - "Dagon" works on both nVIDIA and ATI Radeon hardware running under X.Org 7.0.x with their 3rd party drivers installed.

Enabling 3D support for nVIDIA graphics cards

When enabling support for nVIDIA cards you can go two ways, one is using repositories, the other is compiling the module yourself.

Using repositories

First we set up the repository to provide us with the kernel modules we need. You are required to have root or equivalent privileges during the entire installation process.

Copy to clipboard
rpm -ivh http://rpm.livna.org/livna-release-5.rpm

Installing the kernel-module.

Copy to clipboard
yum -y install kmod-nvidia

Or, for those who can afford a dual-processor (or dual-core) machine.

Copy to clipboard
yum install kmod-nvidia-smp

Set up SELinux so it won't conflict with our drivers.

Copy to clipboard
setsebool -P allow_execmod=1

Shut down X.

Copy to clipboard
init 3

Log back in as “root” and enable the driver.

Copy to clipboard
nvidia-config-display enable

Restart X.

Copy to clipboard
init 5

Compiling the nVIDIA module yourself



You are required to have root or equivalent privileges during the entire installation process.
Download the latest driver from http://www.nvidia.com/object/unix.html
Make sure you installed the kernel-development package.

Copy to clipboard
rpm –q kernel-devel

If it is not yet installed, install it.

Copy to clipboard
yum -y install kernel-devel

Set up SELinux so it won't conflict with our drivers.

Copy to clipboard
setsebool -P allow_execmod=1

Shut down X.

Copy to clipboard
init 3

Run the installer.

Copy to clipboard
sh ./NVIDIA-Linux-<version>.run -a

Say “No” to downloads.
Load the kernel module.

Copy to clipboard
modprobe nvidia

Restart X.

Copy to clipboard
init 5

Enabling 3D support for ATI Radeon graphics cards



When enabling support for ATI Radeon cards you can go two ways, one is using repositories, the other is compiling the module yourself.

Using repositories

First we set up the repository to provide us with the kernel modules we need. You are required to have root or equivalent privileges during the entire installation process.

Copy to clipboard
rpm -ivh http://rpm.livna.org/livna-release-5.rpm

Installing the kernel-module.

Copy to clipboard
yum -y install kmod-fglrx

Or, for those who can afford a dual-processor (or dual-core) machine.

Copy to clipboard
yum install kmod-fglrx-smp

Set up SELinux so it won't conflict with our drivers.

Copy to clipboard
setsebool -P allow_execmod=1

Shut down X.

Copy to clipboard
init 3

Log back in as “root” and enable the driver.

Copy to clipboard
ati-fglrx-config-display enable

Restart X.

Copy to clipboard
init 5

Compiling the ATI Radeon module yourself



You are required to have root or equivalent privileges during the entire installation process.
Download the latest driver from http://www.ati.com/support/driver.html
Make sure you installed the kernel-development package.

Copy to clipboard
rpm –q kernel-devel

If it is not yet installed, install it.

Copy to clipboard
yum -y install kernel-devel

Set up SELinux so it won't conflict with our drivers.

Copy to clipboard
setsebool -P allow_execmod=1

Shut down X.

Copy to clipboard
init 3

Run the installer.

Copy to clipboard
sh ./ati-driver-installer-<version>.run

Load the kernel module.

Copy to clipboard
modprobe fglrx

Configure xorg.conf.

Copy to clipboard
aticonfig --initial --input=/etc/X11/xorg.conf

Restart X.

Copy to clipboard
init 5

Downloading or compiling & installing dependencies


Check if all the required image libraries are present. “yum -y install <package(s)>” if not.
Copy to clipboard
rpm -q libpng libmng libtiff libjpeg libpng-devel libmng-devel libtiff-devel libjpeg-devel

If you haven't done so already set your PKG_CONFIG_PATH to /usr/local/lib/pkgconfig or wherever pkgconfig is located. You can do this by entering the command:

Copy to clipboard
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

zziplib



Install the zziplib library.

Copy to clipboard
yum -y install zziplib zziplib-devel

nVIDIA Cg Toolkit 1.5



http://developer.nvidia.com/object/cg_toolkit.html

Copy to clipboard
rpm -ivh ./Cg-1.5.<cpu architecture>.rpm

FreeType 2



http://download.savannah.gnu.org/releases/freetype/

Copy to clipboard
tar xvfj ./freetype-2.<version>.tar.bz2 cd ./freetype-2.<version> ./configure make sudo make install

FreeImage



As of Eihort 1.4.0, FreeImage is required for installation.
http://freeimage.sourceforge.net/

Copy to clipboard
unzip ./FreeImage<version>.zip cd ./FreeImage make sudo make install

OIS



http://sourceforge.net/projects/wgois

Copy to clipboard
tar xvfj ./ogis-<version>.tar.bz2 cd ./ois-<version> ./bootstrap ./configure make sudo make install

DevIL (OpenIL)



http://openil.sourceforge.net/download.php

Copy to clipboard
tar xvfz ./DevIL-<version>.tar.gz cd DevIL-<version>/ ./configure make sudo make install

Crazy Eddy's GUI



http://www.cegui.org.uk/wiki/index.php/Downloads

Copy to clipboard
tar xvfj ./cegui_mk2-<version>.tar.bz2 cd ./cegui_mk2 ./configure make sudo make install

Compiling the OGRE



Get the latest-stable from the Source Releases for the Linux and Mac OSX platforms page.
http://www.ogre3d.org/index.php?option=com_remository&Itemid=57&func=selectcat&cat=3

Copy to clipboard
tar xvfj ./ogre-linux_osx-<version>.tar.bz2 cd ./ogrenew ./bootstrap

For nVIDIA cards:

Copy to clipboard
./configure --with-platform=GLX make sudo make install sudo /sbin/ldconfig

The others:

Copy to clipboard
./configure make sudo make install sudo /sbin/ldconfig

If successfully compiled and installed OGRE you can try running the demo applications in:

Copy to clipboard
./Samples/Common/bin

This tutorial was originally written by RohitChauhan but currently maintained by Qrstuvw.