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

From VsWiki
Jump to: navigation, search
(Requirements)
(Requirements)
Line 16: Line 16:
  
 
==Requirements==
 
==Requirements==
In order to compile Vegastrike there are a few things to check :
+
In order to compile Vegastrike there are a few things to check:
*make sure you have these packages installed:
+
* Make sure you have these packages installed ...
**make
+
** <code>make</code>
**gcc
+
** <code>gcc</code>
**automake
+
** <code>automake</code>
**autoconf
+
** <code>autoconf</code>
**X11...
+
** <code>X11</code>...
**libpng + libpng-devel <-- libpng 3 is recommended.
+
** <code>libpng</code> + <code>libpng-devel</code> <-- libpng 3 is recommended.
**python and python-dev <-- 2.2.1
+
** <code>python</code> and <code>python-dev</code> <-- 2.2.1
**expat
+
** <code>expat</code>
**(lib)jpeg + libjpeg-devel
+
** <code>(lib)jpeg</code> + <code>libjpeg-devel</code>
**opengl (see below) (you probably already have it)
+
** <code>opengl</code> (see below) (you probably already have it)
**glut + glut-devel
+
** <code>glut</code> + <code>glut-devel</code>
**openal + openal-devel
+
** <code>openal</code> + <code>openal-devel</code>
**__inetutils__
+
** '''<code>inetutils</code>'''
*when using __libpng 1.2__, --with-png-inc=<DIR> is needed
+
* When using '''<code>libpng 1.2</code>''', <code>--with-png-inc=<DIR></code> is needed
* to be sure set the data dir to you vs-data dir:
+
* To be sure '''set the data dir''' to you vs-data dir:
./configure --with-data-dir=<DIR> ........
+
<pre>
*if you don't want to compile with gtk just turn it off:
+
./configure --with-data-dir=<DIR> ........
./configure --enable-nogtk ...........
+
</pre>
*This is nececcary for each compiler version. (See [http://vegastrike.sourceforge.net/forums/viewtopic.php?t=1147 this] thread in the forum)
+
* If you don't want to compile with '''GTK''' just turn it off:
./configure --enable-boost-128 ...........
+
<pre>
 +
./configure --enable-nogtk ...........
 +
</pre>
 +
* This is nececcary for each compiler version: (See [http://vegastrike.sourceforge.net/forums/viewtopic.php?t=1147 this] thread in the forum)
 +
<pre>
 +
./configure --enable-boost-128 ...........
 +
</pre>
  
 
==Compiling==
 
==Compiling==

Revision as of 18:36, 7 June 2005

arrow_left.png Compiling with Cygwin arrow_up.png HowTos Using GDB arrow_right.png

How to compile CVS under Linux See also HowTo:Cygwin Compiling, HowTo:VCPP Compiling

Getting the CVS-files

  • Checkout the following modules ...
    • data package: data or data4.x
    • code package: vegastrike
  • Visit HowTo:Checkout CVS 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
    • autoconf
    • 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:
./configure --enable-nogtk ...........
  • This is nececcary for each compiler version: (See this thread in the forum)
./configure --enable-boost-128 ...........

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
aclocal
autoconf
autoheader
automake -a --add-missing
./configure --enable-boost-128 --enable-debug --enable-ggdb3 --with-data-dir=<DIR>
make
make install

Note: enable-ggdb3 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 Ace123 on 2003.07.21.

See also


arrow_left.png Compiling with Cygwin arrow_up.png HowTos Using GDB arrow_right.png