Difference between revisions of "HowTo:Checkout SVN (Ubuntu Linux)"
(→Installing SVN) |
|||
Line 6: | Line 6: | ||
== Downloading Vega Strike == | == Downloading Vega Strike == | ||
=== Installing SVN === | === Installing SVN === | ||
− | The first step is to install Subversion. In Ubuntu (and Debian, I guess) it is easy to install Subversion just by using the Synaptic Package Manager. Goto System>Administration>Synaptic Package Manager. In the quick search box, type "subversion" without quotation marks. Select the first option and mark for installation. After that, click on "Apply". Every step involving the command "svn", will be using subversion. | + | The first step is to install Subversion. In Ubuntu (and Debian, I guess) it is easy to install Subversion just by using the Synaptic Package Manager. Goto System>Administration>Synaptic Package Manager. In the quick search box, type "subversion" without quotation marks. Select the first option and mark for installation. A window will appear that will show "Mark additional required changes?". Click on "Mark". After that, click on "Apply". Every step involving the command "svn", will be using subversion. |
=== Preparing Vega Strike === | === Preparing Vega Strike === |
Revision as of 19:06, 31 January 2009
This is a newb friendly guide to help people who do not want to learn deep specifics and terms. Most of this guide will show you copy-paste lines to paste in Terminal, omitting most technical issues. However, you might want to take a look at what SVN is to have a general understanding of this version. If you follow steps correctly, VS should be able to run. If you have problems compiling in Ubuntu, post a new thread in the VS Forums (click here [1]). Someone will be able to help you. Note: This process was done in Ubuntu 8.10 (Intrepid). Notice: This process was
Contents
Tutorial to Download, Compile, Setup and Run Vega Strike
Downloading Vega Strike
Installing SVN
The first step is to install Subversion. In Ubuntu (and Debian, I guess) it is easy to install Subversion just by using the Synaptic Package Manager. Goto System>Administration>Synaptic Package Manager. In the quick search box, type "subversion" without quotation marks. Select the first option and mark for installation. A window will appear that will show "Mark additional required changes?". Click on "Mark". After that, click on "Apply". Every step involving the command "svn", will be using subversion.
Preparing Vega Strike
First of all, you must understand some basic knowledge. The first thing to do is to download the most important modules, which are the basic structure of VS. Basically, this is the game. You must download these in order to play VS. The modules are the data and vegastrike modules.
- First create a directory where you would like your copy of the Vega Strike development version to live in. For tutorial purposes, we will create a directory called VegaStrike in our user's home-directory.
User@UserMachine:~$ mkdir VegaStrike
- Change into this newly created directory. In our case:
User@UserMachine:~$ cd VegaStrike
Note for newbs: The directory is case sensitive. If you type: cd vegastrike or Vegastrike, it won't find the directory. Also, do not copy and paste "User@UserMachine:~$".
Downloading Vega Strike
Now we can start downloading the packages from the SVN repository. If you download them directly into your Vega Strike directory they will be just in the right place.
- Download (check-out) the source code package vegastrike, and the content package data package.
User@UserMachine:~/VegaStrike$ svn co https://vegastrike.svn.sourceforge.net/svnroot/vegastrike/trunk/vegastrike
- After the first one finishes downloading (User@UserMachine:~/VegaStrike$ will reappear), insert the next. Be warned, you need a descent download speed to download the next package with this method.
User@UserMachine:~/VegaStrike$ svn co https://vegastrike.svn.sourceforge.net/svnroot/vegastrike/trunk/data
This leaves you with two new directories inside your Vega Strike directory called as the packages are.
Boost Revisions
I must confess not even I understand this, but it must be done.
- Just paste this code to update to revision 1.35.
svn update vegastrike/boost/1_35
Configuring this boost revision is easy, but it will be explained in the configure section, so don't worry for now.
Building/Compiling
You might not understand what compiling is, but it is not that important. What is important is that you do it. Its really not that complicated, so here it goes.
- First of all, we have to make sure we have certain minimun requirements. I could list you a dozen l33t terms, but you don't certainly need to know them. We'll just make sure to have them all by inserting this into Terminal (copy and paste entire code into Terminal).
sudo apt-get install libpng12-0 libpng12-dev python2.5-dev libexpat1-dev \ libjpeg62-dev glutg3-dev libopenal-dev libgtk2.0-dev libogg-dev libvorbis-dev \ build-essential libgl1-mesa-dev automake autoconf
Compiling
The compile procedure should look like the following listing. Remember, the configure part depends on above requirements. However, autoconf may not work. If so, just skip it.
- Change directory.
cd ./vegastrike
- Pre-Compile.
./bootstrap-sh
- Some configuration to be made.
./configure --enable-flags='-O3 -g' # or --enable-debug to disable optimization. -ffast-math will cause problems in code that checks for infinities.
- Compile.
make
- Install. Note if you paste the first code directly onto terminal, you might (most likely) get an error. You may have to use sudo to do this. Just paste the second code. Terminal will then ask for your password. Then, you are set.
make install # [AS ROOT]
sudo make install # [AS ROOT]
Configuring Installation
We need to make sure the data directory is *recognized*. For tutorial purposes, we will use the directory where we downloaded first in this tutorial.
- Open text editor (Applications>Accesories>Text Editor), copy and paste the following code in text editor, change the USER in caps to the name of your user, and then paste in Terminal.
./configure --with-data-dir=/home/USER/VegaStrike
- We need to configure Boost revision. Simply copy and paste code. This time, we will configure version 1.35.
./configure --with-boost=1.35