|
|
(9 intermediate revisions by 5 users not shown) |
Line 19: |
Line 19: |
|
* (optional) [http://fribidi.org/ Fribidi] download GNU FriBidi |
|
* (optional) [http://fribidi.org/ Fribidi] download GNU FriBidi |
|
|
|
|
|
|
===Debian/Ubuntu=== |
|
DEBIAN/UBUNTU: The following terminal command will get you all the dependencies:
|
|
The following terminal command will get you all the dependencies: |
|
* 'sudo apt-get install scons libsdl1.2-dev libsdl-net1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev zlib-bin libspeex-dev libogg-dev libvorbis-dev libboost-dev'
|
|
sudo apt-get install mercurial scons libsdl1.2-dev libsdl-net1.2-dev libsdl-image1.2-dev \ |
|
* Adding 'mercurial' to that line will get you all you need to get involved. |
|
|
|
libsdl-ttf2.0-dev zlibc libspeex-dev libogg-dev libvorbis-dev libboost-dev libboost-thread-dev \ |
|
|
libboost-date-time-dev |
|
|
|
|
|
== Compile from Sources == |
|
== Compile from Sources == |
Line 27: |
Line 29: |
|
* Get the [[Download and Install|source distribution archive]] from the download section. |
|
* Get the [[Download and Install|source distribution archive]] from the download section. |
|
* 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 (GNU/Linux, Solaris, Mac OS X): |
|
** Run the 'scons' script to compile the game (it will check dependencies, install any you have missing) |
|
** 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: |
|
*** If you want to install the game in a special place, instead of 'scons', type: |
Line 33: |
Line 35: |
|
** Install with a simple 'scons install' command (will install to the location you might have entered when compiling (BINDIR and INSTALLDIR)). |
|
** 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. |
|
** Note: in some Linux distributions (eg: Archlinux), scons complains about not finding -lboost_thread (with boost already installed). A solution is to modify the SConstruct file to look for boost_thread-mt instead of boost_thread, and the modify the LIBS variable with boost_thread-mt, to link against this library. If you have root access you can create a symlink libboost_thread.so instead. |
|
** Note: in some GNU/+Linux distributions (eg: Archlinux), scons complains about not finding -lboost_thread (with boost already installed). A solution is to modify the SConstruct file to look for boost_thread-mt instead of boost_thread, and the modify the LIBS variable with boost_thread-mt, to link against this library. If you have root access you can create a symlink libboost_thread.so instead. |
|
|
|
|
|
=== Sources from [[Mercurial]] === |
|
=== Sources from [[Mercurial]] === |
|
{{Message|Warning|The source from Mercurial is occasionally unstable and will break. It is not meant for playing games but.}} |
|
{{Message|Warning|The source from Mercurial is occasionally unstable and will break. It is not meant for playing games but only for development and testing.}} |
|
==== The quick way ==== |
|
==== The quick way ==== |
|
Use this if you want to get exactly one copy of glob2 repository to compile and run it. This is also the recommended way if you are sure you will not want to push only parts of your changes. |
|
Use this if you want to get exactly one copy of glob2 repository to compile and run it. This is also the recommended way if you are sure you will not want to push only parts of your changes. |
|
* Initial download |
|
* Initial download |
|
cd some_workspace_directory |
|
cd some_workspace_directory |
|
hg clone http://hg.globulation2.org/glob2-new/ |
|
hg clone https://bitbucket.org/giszmo/glob2 |
|
* Subsequent updates |
|
* Subsequent updates |
|
cd glob2-new |
|
cd glob2 |
|
hg pull |
|
hg pull |
|
hg update |
|
hg update |
Line 52: |
Line 54: |
|
* Initial download |
|
* Initial download |
|
cd some_workspace_directory |
|
cd some_workspace_directory |
|
hg clone http://hg.globulation2.org/glob2-new/ |
|
hg clone https://bitbucket.org/giszmo/glob2 |
|
* clone to a working directory |
|
* clone to a working directory |
|
cd some_workspace_directory |
|
cd some_workspace_directory |
|
hg clone glob2-new glob2-work |
|
hg clone glob2 glob2-work |
|
* Subsequent updates |
|
* Subsequent updates |
|
cd glob2-new |
|
cd glob2 |
|
hg pull |
|
hg pull |
|
cd ../glob2-work |
|
cd ../glob2-work |