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

From VsWiki
Jump to: navigation, search
 
(Wikified, fixed links, added navbar)
Line 1: Line 1:
!![Vegastrike|VegastrikeWiki]: [Howto|VegastrikeHowtos]: Compile CVS under Linux
+
{{NAV_Manual |
See also VsHowtoCompileCvsCygwin, VsHowtoCompileCvsVcpp
+
| previous=[[HowTo:Cygwin Compiling|Compiling with Cygwin]]
----
+
| up=[[HowTo]]
!Getting the CVS-files:
+
| next=[[HowTo:Use GDB|Using GDB]]
 +
}}
 +
How to compile CVS under Linux
 +
See also [[HowTo:Cygwin Compiling]], [[HowTo:VCPP Compiling]]
 +
 
 +
==Getting the CVS-files==
  
 
* checkout these modules
 
* checkout these modules
 
** data package: data or data4.x
 
** data package: data or data4.x
 
** code package: vegastrike
 
** code package: vegastrike
* See VsHowtoCheckoutCvs
+
* See [[HowTo:Checkout CVS]]
  
 
----
 
----
Line 31: Line 36:
 
*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:
 
  ./configure --enable-nogtk ...........
 
  ./configure --enable-nogtk ...........
*This is nececcary for each compiler version. (See [this|http://vegastrike.sourceforge.net/forums/viewtopic.php?t=1147] thread in the forum)
+
*This is nececcary for each compiler version. (See [http://vegastrike.sourceforge.net/forums/viewtopic.php?t=1147 this] thread in the forum)
 
  ./configure --enable-boost-128 ...........
 
  ./configure --enable-boost-128 ...........
  
----
+
==Compiling==
!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.
 
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
 
  cd ./vegastrike
Line 50: Line 54:
  
 
----
 
----
Copied from VsHowtoCompileCvsCygwin and modified by Ace123 on 2003.07.21.
+
Copied from VsHowtoCompileCvsCygwin and modified by [[User:Ace123|Ace123]] on 2003.07.21.
 
----
 
----
Back to VegastrikeHowtos
+
{{NAV_Manual |
 +
| previous=[[HowTo:Cygwin Compiling|Compiling with Cygwin]]
 +
| up=[[HowTo]]
 +
| next=[[HowTo:Use GDB|Using GDB]]
 +
}}

Revision as of 02:34, 8 April 2005

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

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

Getting the CVS-files

  • checkout these modules
    • data package: data or data4.x
    • code package: vegastrike
  • See HowTo:Checkout CVS

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.


Copied from VsHowtoCompileCvsCygwin and modified by Ace123 on 2003.07.21.


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