Ubuntu-Linux Users

From SpaceElevatorWiki.com
(Difference between revisions)
Jump to: navigation, search
(4 intermediate revisions by 2 users not shown)

Latest revision as of 08:31, 26 May 2009


[edit] MonoDevelop

Ubuntu 9.04 has Mono 2.0 and MonoDevelop 2.0 beta. All the pieces are now in the repository!

sudo apt-get install monodevelop-debugger-mdb monodevelop-debugger-gdb

[edit] OIS

Get OIS 1.2 from sourceforge:

sh bootstrap
./configure --prefix=/usr
sudo make install

[edit] Ogre3D from source

OgreDotNet complains if you do not have the NVidia Cg Toolkit Ogre plugin installed. It's not compiled in within ubuntu's ogre distribution, that is why we need to install Ogre3D from sources.

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 libxxf86vm-dev libxrandr-dev xlibmesa-glu liblu1-mesa-dev


wget http://downloads.sourceforge.net/ogre/ogre-v1-4-9.tar.bz2


./configure --prefix=/usr --enable-openexr && make && sudo make install

[edit] OgreDotNet

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

[edit] Issue

Under some circumstances, prebuild complains because the root Xml node of the prebuild.xml file should be called "PreBuild" instead of "Prebuild" (notice the subtle uppercase B). Try both in case of doubt.

[edit] MyGUI

sudo aptitude install uuid-dev uuid libfreetype6-dev libfreetype6
bzr branch lp:~jeko-ios-software/openracing/mygui-or
cd mygui-or
./configure --with-ogredotnet=../ogredotnet-read-only/bin
sudo make install

Below is not used yet:

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

[edit] ODE

If your system is x86, just install the APT package: (This did not work for me. I recommend installing from src.)

sudo apt-get install libode0debian1

If not, download ODE 0.11 from here http://sourceforge.net/project/showfiles.php?group_id=24884

Compile and install with:

./configure --with-trimesh=opcode --prefix=/usr --enable-shared --disable-demos --enable-new-trimesh
sudo make install

[edit] OpenAL

Nothing complicated.

Under ubuntu 8.04:

 sudo apt-get install libopenal0a

Under Ubuntu 9.04:

 sudo apt-get install libopenal1 libalut0

[edit] TAO Framework

Download from here: http://sourceforge.net/project/showfiles.php?group_id=170616

If you installed ODE from the APT repository, you just have nothing to do.

If not, edit bin/Tao.Ode.dll.config, replace

<dllentry os="linux" dll="libode.so.0debian1" />


<dllentry os="linux" dll="libode.so" />

[edit] About not polluting the system

[edit] Forewords

I like to keep my system clean. Installing all the non-packaged software into an non-system directory makes the installation process a tiny little more work but allows not to create too much mess. It also allows to make different version of libraries lives together into your system happily.

[edit] How to

Choose your root directory for installing libs, here is mine:


Then, what you'll basically have to do is to specify --prefix=$ROOT to the ./configure commands above. But first we need to help autoconf cmake and others to find libraries in this directory.

I created the following $ROOT/setenv.bash file:

 export PKG_CONFIG_PATH=$ROOT/lib/pkgconfig:$PKG_CONFIG_PATH
 export PATH=$ROOT/bin:$PATH

Then into the console I use for working on OpenRacing, I execute this:

 . $ROOT/setenv.bash

This have to be done every time you start working on OpenRacing. But if your all life is dedicated to OpenRacing, you can add the above command to your .bashrc file ;-)

Now we're pretty done, just follow the installation process described above, just remember to replace --prefix=/usr by --prefix=$ROOT, and enjoy your clean OpenRacing configuration!

Personal tools