|
|
Line 72: |
Line 72: |
|
|
|
|
|
== Compile from Sources == |
|
== Compile from Sources == |
|
|
{{Warning|Compiling on Windows|The instructions below will not work for Windows. To compile on that OS, please see the [[Mingw compilation]] guide, which explains how to compile globulation2 on windows using mingw.}} |
|
|
|
|
|
For source and Mercurial installations, you'll also need to install these packages: |
|
For source and Mercurial installations, you'll also need to install these packages: |
Line 82: |
Line 83: |
|
* [http://www.xiph.org/ libogg and libvorbis] can be found in their download-section. libspeex, too. |
|
* [http://www.xiph.org/ libogg and libvorbis] can be found in their download-section. libspeex, too. |
|
* [http://zlib.net/ zlib] |
|
* [http://zlib.net/ zlib] |
|
* [http://boost.org/ Boost C++ Libraries] download boost and boost-devel |
|
* [http://boost.org/ Boost C++ Libraries] download boost and boost-devel (needs libthread library!!!) |
|
|
|
|
|
Optional: |
|
Optional: |
Line 88: |
Line 89: |
|
|
|
|
|
=== Source Distribution === |
|
=== Source Distribution === |
|
{{Warning|Warning|You must make sure that you have all of the libraries that glob2 requires installed first. Also, read the README and INSTALL files in the archive for more information}} |
|
|
|
|
|
* Get the [[#downloadlink_source|source distribution archive]] from the download section above. |
|
* Get the [[#downloadlink_source|source distribution archive]] from the download section above. |
|
* Extract the archive using a compression/extraction utility such as tar. |
|
* Extract the archive using a compression/extraction utility such as tar. |
|
* Go in the extracted archive. If you have a Unix system (Linux, Solaris, Mac OS X): |
|
* Go in the extracted archive. If you have a Unix system (Linux, Solaris, Mac OS X): |
|
** Run the ''./configure'' script. If you want to install the game in a special place, type ''./configure --prefix=/path/to/install'' instead. |
|
** Run the 'scons' script to compile the game (it will check dependencies, install any you have missing) |
|
|
*** If you want to install the game in a special place, instead of 'scons', type: |
|
** Compile Globulation 2 by running ''make''. |
|
|
|
****scons BINDIR="/path/to/install/bin" INSTALLDIR="/path/to/install/share". |
|
** Install with a simple ''make install'' command. |
|
|
|
** Install with a simple 'scons install' command (will install to the location you might have entered when compiling (BINDIR and INSTALLDIR)). |
|
** Run the game by typing ''glob2''. If it doesn't work, type ''/path/to/install/bin/glob2'' instead. |
|
** Run the game by typing 'glob2'. If it doesn't work, type '/path/to/install/bin/glob2' instead. |
|
|
|
|
|
=== Sources from [[Mercurial]] === |
|
=== Sources from [[Mercurial]] === |
|
{{Warning|Warning|Mercurial is often unstable and will break, it is meant for testing purposes.}} |
|
{{Warning|Warning|Mercurial is occasionally unstable and will break, it is meant for testing purposes.}} |
|
==== Compilation & cross compilation for Windows with mingw ==== |
|
|
:* [[Mingw compilation|Compile glob2 with mingw]] - explains how to compile globulation2 on windows using mingw. |
|
|
:* [[Mingw_cross_compilation| Cross compile glob2]] - explains how to compile globulation2 for windows on Debian |
|
|
|
|
|
==== Compilation on other systems ==== |
|
|
* Download the source code from the Mercurial by typing |
|
* Download the source code from the Mercurial by typing |
|
:hg clone http://hg.globulation2.org/glob2/ |
|
:hg clone http://hg.globulation2.org/glob2/ |
|
|
:hg clone -r master glob2 glob2-master |
|
:* You can update the source code you have any time with a simple |
|
:* You can update the source code you have any time with a simple |
|
|
::cd glob2 |
⚫ |
|
|
|
|
::hg pull |
|
|
::cd ../glob2-master |
|
⚫ |
::hg pull -r master ../glob2 |
|
|
::hg update tip |
|
* Read the README.hg and README files. |
|
* Read the README.hg and README files. |
|
* Get the graphics by running the ''./syncdata'' script in the Mercurial tree. |
|
* Get the graphics by running the './syncdata' script in glob2_source. |
|
* You can also get some maps by running the ''./syncmaps'' script. |
|
* You can also get some maps by running the './syncmaps' script in the same location. |
|
|
* Continue by following the [[#Source_Distribution|''source distribution'']] instructions from the 3rd step onwards. |
|
* Run the ''./bootstrap'' script from the Mercurial tree. If it doesn't work, check that SDL is installed in aclocal's path. If it is not the case (with Mac OS X, for example), run ''aclocal -I /usr/local/share/aclocal'', where /usr/local/share/aclocal is the location of SDL's aclocal macros. Then, run the remaining commands of the ''bootstrap'' script (''autoheader && automake --add-missing && autoconf''). |
|
|
* Continue by following the instructions in installing from a [[#Compile_from_Sources|''source distribution'']]. |
|
|
|
|
|
|
[[Category:User Manual]] |
|
[[Category:User Manual]] |