Ubuntu-Linux Users

From SpaceElevatorWiki.com
Jump to navigationJump to search

Page in progress


Ubuntu ships a version of Ogre compiled without Cg support. Thus requiring manual installation.

There are two options:

  • from Ubuntu's source package if Ogre version there is >= 1.4.9 (cleaner since you'll have a deb file installed, which will be easier to uninstall).
  • from Ogre3D source package.

From Ogre3D source package

Instructions here

From Ubuntu's source package (if running Ubuntu 9.04)

As usual, you must install dependencies:

sudo aptitude install libzzip-dev libzzip-0-13 libxaw-headers libxmu-dev \
      libxmu-headers libxpm-dev libfreeimage-dev libfreeimage3 libxrandr \
      nvidia-cg-toolkit libfreetype6-dev libxaw7-dev quilt libopenexr-dev \

Then get source package (note, it download and extract into current directory so take care to create a folder on work from it for the created "mess").

apt-get source libogre14
cd ogre-1.4.9

Edit debian/rules, replace --disable-cg by --enable-cg (line 39). Then:

dpkg-buildpackage -rfakeroot -uc -b

Then install generated packages:

cd ..
sudo dpkg -i *.deb


sudo aptitude install swig cmake nant libmono-winforms2.0-cil
svn checkout http://ogredotnet.googlecode.com/svn/trunk/ ogredotnet-read-only 
cd ogredotnet-read-only
bash ./build.sh


sudo aptitude install libois1 libois-dev 


sudo aptitude install uuid-dev uuid libfreetype6-dev libfreetype6
svn co https://my-gui.svn.sourceforge.net/svnroot/my-gui/trunk my-gui  
cd my-gui
sh bootstrap
./configure --prefix=/usr
sudo make install