Ok run this to install required software, and compile and install OgreOggSound:
- {l Code}: {l Select All Code}
#!/bin/sh
# Installing PPA by Andrew Fenn
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6F7E2F0B
sudo add-apt-repository ppa:andrewfenn/ogredev
sudo apt-get update
# Build stuff deps
# subversion git cmake build-essential
# Ogre and CEGUI deps
# libogremain-1.7.1-dbg libois-dev libogre-dev libcegui libcegui-dbg libcegui-dev libfreeimage3-dbg
# OgreOggSound deps
# libboost-thread-dev libopenal-dev libvorbisfile3 libvorbis-dev libogg-dev
sudo apt-get install subversion git cmake build-essential libogremain-1.7.1-dbg libois-dev libogre-dev libcegui libcegui-dbg libcegui-dev libfreeimage3-dbg libboost-thread-dev libopenal-dev libvorbisfile3 libvorbis-dev libogg-dev
cd ~/Desktop
svn co https://ogreoggsound.svn.sourceforge.net/svnroot/ogreoggsound/trunk@367 OgreOggSound
cd OgreOggSound
cmake -DUSE_POCO=FALSE -DCMAKE_INSTALL_PREFIX="/usr" .
make
sudo make install
sudo cp libOgreOggSound.so /usr/lib/OGRE/OgreOggSound.so
sudo cp libOgreOggSound.so /usr/lib
Now I have made the following script to generate a tarball of the latest release, run it:
- {l Code}: {l Select All Code}
#!/bin/sh
# Making a source tar file for OpenDungeons
cd ~/Desktop
echo "################################################" > ODTarballMaker.txt
echo "# Tarball packer for OpenDungeons #" >> ODTarballMaker.txt
echo "################################################" >> ODTarballMaker.txt
echo mkdir OpenDungeons >> ODTarballMaker.txt
mkdir OpenDungeons
echo cd OpenDungeons >> ODTarballMaker.txt
cd OpenDungeons
echo svn co https://opendungeons.svn.sourceforge.net/svnroot/opendungeons/Media Media >> ../ODTarballMaker.txt
svn co https://opendungeons.svn.sourceforge.net/svnroot/opendungeons/Media Media
echo cd ~/Desktop >> ../ODTarballMaker.txt
cd ~/Desktop
echo git clone git://opendungeons.git.sourceforge.net/gitroot/opendungeons/opendungeons OpenDungeonsCode >> ODTarballMaker.txt
git clone git://opendungeons.git.sourceforge.net/gitroot/opendungeons/opendungeons OpenDungeonsCode
echo cd OpenDungeonsCode >> ODTarballMaker.txt
cd OpenDungeonsCode
echo git checkout -b development remotes/origin/development >> ../ODTarballMaker.txt
git checkout -b development remotes/origin/development
echo cd ~/Desktop >> ../ODTarballMaker.txt
cd ~/Desktop
echo cp -R OpenDungeonsCode/* OpenDungeons >> ODTarballMaker.txt
cp -R OpenDungeonsCode/* OpenDungeons
echo rm -rf OpenDungeonsCode >> ODTarballMaker.txt
rm -rf OpenDungeonsCode
VERSION=`grep VERSION OpenDungeons/include/Defines.h | sed 's:#define.*VERSION. *"::' | sed 's:".*::'`
echo "Version is " $VERSION >> ODTarballMaker.txt
echo find OpenDungeons -name ".svn" -exec rm -rf {} \; >> ODTarballMaker.txt
find OpenDungeons -name ".svn" -exec rm -rf {} \;
echo find OpenDungeons -name ".git" -exec rm -rf {} \; >> ODTarballMaker.txt
find OpenDungeons -name ".git" -exec rm -rf {} \;
echo mv OpenDungeons opendungeons-$VERSION >> ODTarballMaker.txt
mv OpenDungeons opendungeons-$VERSION
echo tar czf opendungeons-$VERSION.tar.gz opendungeons-$VERSION >> ODTarballMaker.txt
tar czf opendungeons-$VERSION.tar.gz opendungeons-$VERSION
echo rm -rf OpenDungeons >> ODTarballMaker.txt
rm -rf opendungeons-$VERSION
Now you can finally compile an install the game from this script:
- {l Code}: {l Select All Code}
#!/bin/sh
# Building and installing OpenDungeons
echo "################################################" > ODBuildLog.txt
echo "# Building log for OpenDungeons #" >> ODBuildLog.txt
echo "################################################" >> ODBuildLog.txt
echo tar -xzvf opendungeons*.tar.gz >> ODBuildLog.txt
tar -xzvf opendungeons*.tar.gz
echo cd OpenDungeons >> ODBuildLog.txt
cd OpenDungeons
echo cmake . >> ../ODBuildLog.txt
cmake .
echo make -j`grep -m 1 "cpu cores" /proc/cpuinfo | sed 's:cpu cores.*\:.::'` >> ../ODBuildLog.txt
make -j`grep -m 1 "cpu cores" /proc/cpuinfo | sed 's:cpu cores.*\:.::'`
If there are any errors during the run of the last two scripts then you can look in the files ODTarballMaker.txt or ODBuildLog.txt, at which command it went wrong and report back here.
The only errors you should get when you run the game like this is missing mesh files, which you can fix by copying one of the existing mesh files and name it the name of the missing file in the error message you get, or you can bug Andrew and/or Skorpio about putting the latest mesh files utilized by the game into the SVN.
The reason it is split like this is because I am using these scripts to make tarballs for use in making the deb-packages. The deb-package is not ready yet, but I am working on it
it have turned out to be a pain to make deb-packages, at least when you know nothing about it, like I do :S