Difference between revisions of "HowTo:Compile from SVN on Linux"

From VsWiki
Jump to: navigation, search
m (HowTo:Compile from CVS moved to HowTo:Compile from SVN)
(modernizing compiling page to mention SVN, and a few other new configure opts.)
Line 21: Line 21:
 
** <code>make</code>
 
** <code>make</code>
 
** <code>gcc</code>
 
** <code>gcc</code>
** <code>automake</code>
+
** <code>automake</code> at least version 1.5
** <code>autoconf</code>
+
** <code>autoconf</code> at least version 2.53
 
** <code>X11</code>...
 
** <code>X11</code>...
 
** <code>libpng</code> + <code>libpng-devel</code> <-- libpng 3 is recommended.
 
** <code>libpng</code> + <code>libpng-devel</code> <-- libpng 3 is recommended.
Line 37: Line 37:
 
./configure --with-data-dir=<DIR> ........
 
./configure --with-data-dir=<DIR> ........
 
</pre>
 
</pre>
* If you don't want to compile with '''GTK''' just turn it off:
+
* If you don't want to compile with '''GTK''' just turn it off, however you will not get a setup program if you do this:
 
<pre>
 
<pre>
./configure --enable-nogtk ...........
+
./configure --disable-gtk ...........
 
</pre>
 
</pre>
* This may be necessary depending on your compiler version: (See [http://vegastrike.sourceforge.net/forums/viewtopic.php?t=1147 this] thread in the forum)
+
* If you only want the server, and want to disable all GUI components--This removes the dependency on X11, OpenGL, SDL, GLUT, OpenAL.
 
<pre>
 
<pre>
./configure --enable-boost-128 ...........
+
./configure --disable-client ...........
 +
</pre>
 +
* See [http://vegastrike.sourceforge.net/forums/viewtopic.php?t=1147 this] thread about boost versions.  Set this option to 1.28, 1.29, or 1.33 if the default does not compile.
 +
<pre>
 +
./configure --with-boost=<VER> ...........
 
</pre>
 
</pre>
  
Line 51: Line 55:
 
cd ./vegastrike
 
cd ./vegastrike
 
./bootstrap-sh
 
./bootstrap-sh
./configure --enable-boost-128 --enable-debug --enable-ggdb3 --with-data-dir=<DIR>
+
./configure --enable-debug --with-data-dir=<DIR>
make vegastrike
+
make
make soundserver
+
make install # [AS ROOT]
make install
 
 
</pre>
 
</pre>
Note: <code>enable-ggdb3</code> is only needed if you have a weird incompatible version of gcc and gdb that causes gdb to hang in some cases, such as in my version of debian.
 
Note: ggdb3 and debug can both be taken out if you don't want debug symbols and want VS to be faster.
 
 
==Notes==
 
Copied from VsHowtoCompileCvsCygwin and modified by [[User:Ace123|Ace123]] on 2003.07.21.
 
  
 
=See also=
 
=See also=

Revision as of 05:12, 26 November 2006

arrow_left.png Compiling with Cygwin arrow_up.png HowTos Compiling from SVN on Mac OSX arrow_right.png

How to compile from SVN under Linux.

See also: HowTo:Cygwin Compiling, HowTo:VCPP Compiling

Getting the SVN-files

  • Checkout the following modules ...
    • data package: data4.x
    • code package: vegastrike
  • Visit HowTo:Checkout SVN to see how you check these modules out.

Requirements

In order to compile Vegastrike there are a few things to check:

  • Make sure you have these packages installed ...
    • make
    • gcc
    • automake at least version 1.5
    • autoconf at least version 2.53
    • X11...
    • libpng + libpng-devel <-- libpng 3 is recommended.
    • python and python-dev <-- 2.2.1
    • expat
    • (lib)jpeg + libjpeg-devel
    • opengl (see below) (you probably already have it)
    • glut + glut-devel
    • openal + openal-devel
    • inetutils
  • When using libpng 1.2, --with-png-inc=<DIR> is needed
  • To be sure set the data dir to you vs-data dir:
./configure --with-data-dir=<DIR> ........
  • If you don't want to compile with GTK just turn it off, however you will not get a setup program if you do this:
./configure --disable-gtk ...........
  • If you only want the server, and want to disable all GUI components--This removes the dependency on X11, OpenGL, SDL, GLUT, OpenAL.
./configure --disable-client ...........
  • See this thread about boost versions. Set this option to 1.28, 1.29, or 1.33 if the default does not compile.
./configure --with-boost=<VER> ...........

Compiling

The compile procedure should look like the following listing. Remember the configure part depends on above requirements. Though autoconf may not work, if so just skip it.

cd ./vegastrike
./bootstrap-sh
./configure --enable-debug --with-data-dir=<DIR>
make
make install # [AS ROOT]

See also


arrow_left.png Compiling with Cygwin arrow_up.png HowTos Compiling from SVN on Mac OSX arrow_right.png