History: Detailed Fedora Walkthrough
Source of version: 3 (current)
Copy to clipboard
%prevogre%
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.
{maketoc}
!!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.
{CODE(wrap="1", colors="bash")} rpm -ivh http://rpm.livna.org/livna-release-5.rpm{CODE}
Installing the kernel-module.
{CODE(wrap="1", colors="bash")} yum -y install kmod-nvidia{CODE}
Or, for those who can afford a dual-processor (or dual-core) machine.
{CODE(wrap="1", colors="bash")} yum install kmod-nvidia-smp{CODE}
Set up SELinux so it won't conflict with our drivers.
{CODE(wrap="1", colors="bash")} setsebool -P allow_execmod=1{CODE}
Shut down X.
{CODE(wrap="1", colors="bash")} init 3{CODE}
Log back in as “root†and enable the driver.
{CODE(wrap="1", colors="bash")} nvidia-config-display enable{CODE}
Restart X.
{CODE(wrap="1", colors="bash")} init 5
{CODE}
!!!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.
{CODE(wrap="1", colors="bash")} rpm –q kernel-devel{CODE}
If it is not yet installed, install it.
{CODE(wrap="1", colors="bash")} yum -y install kernel-devel{CODE}
Set up SELinux so it won't conflict with our drivers.
{CODE(wrap="1", colors="bash")} setsebool -P allow_execmod=1{CODE}
Shut down X.
{CODE(wrap="1", colors="bash")} init 3{CODE}
Run the installer.
{CODE(wrap="1", colors="bash")} sh ./NVIDIA-Linux-<version>.run -a{CODE}
Say “No†to downloads.
Load the kernel module.
{CODE(wrap="1", colors="bash")} modprobe nvidia {CODE}
Restart X.
{CODE(wrap="1", colors="bash")} init 5
{CODE}
!!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.
{CODE(wrap="1", colors="bash")} rpm -ivh http://rpm.livna.org/livna-release-5.rpm{CODE}
Installing the kernel-module.
{CODE(wrap="1", colors="bash")} yum -y install kmod-fglrx{CODE}
Or, for those who can afford a dual-processor (or dual-core) machine.
{CODE(wrap="1", colors="bash")} yum install kmod-fglrx-smp{CODE}
Set up SELinux so it won't conflict with our drivers.
{CODE(wrap="1", colors="bash")} setsebool -P allow_execmod=1{CODE}
Shut down X.
{CODE(wrap="1", colors="bash")} init 3{CODE}
Log back in as “root†and enable the driver.
{CODE(wrap="1", colors="bash")} ati-fglrx-config-display enable{CODE}
Restart X.
{CODE(wrap="1", colors="bash")} init 5
{CODE}
!!!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.
{CODE(wrap="1", colors="bash")} rpm –q kernel-devel{CODE}
If it is not yet installed, install it.
{CODE(wrap="1", colors="bash")} yum -y install kernel-devel{CODE}
Set up SELinux so it won't conflict with our drivers.
{CODE(wrap="1", colors="bash")} setsebool -P allow_execmod=1{CODE}
Shut down X.
{CODE(wrap="1", colors="bash")} init 3{CODE}
Run the installer.
{CODE(wrap="1", colors="bash")} sh ./ati-driver-installer-<version>.run{CODE}
Load the kernel module.
{CODE(wrap="1", colors="bash")} modprobe fglrx{CODE}
Configure xorg.conf.
{CODE(wrap="1", colors="bash")} aticonfig --initial --input=/etc/X11/xorg.conf{CODE}
Restart X.
{CODE(wrap="1", colors="bash")} init 5
{CODE}
!!Downloading or compiling & installing dependencies
Check if all the required image libraries are present. “yum -y install <package(s)>†if not.
{CODE(wrap="1", colors="bash")} rpm -q libpng libmng libtiff libjpeg libpng-devel libmng-devel libtiff-devel libjpeg-devel
{CODE}
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:
{CODE(wrap="1", colors="bash")} export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
{CODE}
!!!zziplib
Install the zziplib library.
{CODE(wrap="1", colors="bash")} yum -y install zziplib zziplib-devel
{CODE}
!!!nVIDIA Cg Toolkit 1.5
[http://developer.nvidia.com/object/cg_toolkit.html]
{CODE(wrap="1", colors="bash")} rpm -ivh ./Cg-1.5.<cpu architecture>.rpm
{CODE}
!!!FreeType 2
[http://download.savannah.gnu.org/releases/freetype/]
{CODE(wrap="1", colors="bash")} tar xvfj ./freetype-2.<version>.tar.bz2
cd ./freetype-2.<version>
./configure
make
sudo make install
{CODE}
!!!FreeImage
As of Eihort 1.4.0, FreeImage is required for installation.
[http://freeimage.sourceforge.net/]
{CODE(wrap="1", colors="bash")} unzip ./FreeImage<version>.zip
cd ./FreeImage
make
sudo make install
{CODE}
!!!OIS
[http://sourceforge.net/projects/wgois]
{CODE(wrap="1", colors="bash")} tar xvfj ./ogis-<version>.tar.bz2
cd ./ois-<version>
./bootstrap
./configure
make
sudo make install
{CODE}
!!!DevIL (OpenIL)
[http://openil.sourceforge.net/download.php]
{CODE(wrap="1", colors="bash")} tar xvfz ./DevIL-<version>.tar.gz
cd DevIL-<version>/
./configure
make
sudo make install
{CODE}
!!!Crazy Eddy's GUI
[http://www.cegui.org.uk/wiki/index.php/Downloads]
{CODE(wrap="1", colors="bash")} tar xvfj ./cegui_mk2-<version>.tar.bz2
cd ./cegui_mk2
./configure
make
sudo make install
{CODE}
!!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]
{CODE(wrap="1", colors="bash")} tar xvfj ./ogre-linux_osx-<version>.tar.bz2
cd ./ogrenew
./bootstrap{CODE}
For nVIDIA cards:
{CODE(wrap="1", colors="bash")} ./configure --with-platform=GLX
make
sudo make install
sudo /sbin/ldconfig{CODE}
The others:
{CODE(wrap="1", colors="bash")} ./configure
make
sudo make install
sudo /sbin/ldconfig
{CODE}
If successfully compiled and installed OGRE you can try running the demo applications in:
{CODE(wrap="1", colors="bash")} ./Samples/Common/bin
{CODE}
This tutorial was originally written by RohitChauhan but currently maintained by [mailto:abuse@slowperson.com|Qrstuvw].