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

From VsWiki
Jump to: navigation, search
(Compiling: +Compiling tools)
m (cosmetic)
Line 12: Line 12:
  
 
* Checkout the following modules ...
 
* Checkout the following modules ...
** data package: <code>data4.x</code>
+
** data package: '''data4.x'''
** code package: <code>vegastrike</code>
+
** code package: '''vegastrike'''
 
* Visit [[HowTo:Checkout SVN]] to see how you check these modules out.
 
* Visit [[HowTo:Checkout SVN]] to see how you check these modules out.
  
Line 19: Line 19:
 
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 ...
** <code>make</code>
+
** '''make'''
** <code>gcc</code>
+
** '''gcc'''
** <code>automake</code> at least version 1.5
+
** '''automake''' at least version 1.5
** <code>autoconf</code> at least version 2.53
+
** '''autoconf''' at least version 2.53
** <code>X11</code>...
+
** '''X11'''...
** <code>libpng</code> + <code>libpng-devel</code> <-- libpng 3 is recommended.
+
** '''libpng''' + '''libpng-devel''' <-- libpng 3 is recommended.
** <code>python</code> and <code>python-dev</code> <-- 2.2.1
+
** '''python''' and '''python-dev''' <-- 2.2.1
** <code>expat</code>
+
** '''expat'''
** <code>(lib)jpeg</code> + <code>libjpeg-devel</code>
+
** '''(lib)jpeg''' + '''libjpeg-devel'''
** <code>opengl</code> (see below) (you probably already have it)
+
** '''opengl''' (see below) (you probably already have it)
** <code>glut</code> + <code>glut-devel</code>
+
** '''glut''' + '''glut-devel'''
** <code>openal</code> + <code>openal-devel</code>
+
** '''openal''' + '''openal-devel'''
** '''<code>inetutils</code>'''
+
** '''inetutils'''
* When using '''<code>libpng 1.2</code>''', <code>--with-png-inc=<DIR></code> is needed
+
* When using '''libpng 1.2''', <pre>--with-png-inc=<DIR></pre> 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:
 
<pre>
 
<pre>

Revision as of 06:44, 7 July 2007

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]

Note: The bootstrap-sh script currently has a bug that can cause it to incorrectly report on the absence of GLUT. If you are sure you have installed glut-devel and are still seeing this error, check near the end of config.log to see if another library (such as libxmu or libxi) is the true culprit. [1]

Compiling utilities

The Makefile should be able to compile most of the included utilities.

To compile mesher, for example, type:

make mesher

See also


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