|
|
Line 5: |
Line 5: |
|
{{Message|Compiling on Windows|The instructions below will not work for Windows. To compile on that OS, please see the <u>[[Mingw compilation]]</u> guide, which explains how to compile globulation2 on windows using mingw.}} |
|
{{Message|Compiling on Windows|The instructions below will not work for Windows. To compile on that OS, please see the <u>[[Mingw compilation]]</u> guide, which explains how to compile globulation2 on windows using mingw.}} |
|
|
|
|
|
>==Compilation requirements==
|
|
==Compilation requirements== |
|
{{Message|Compiling on Mac OSX|There is an easier way to get all the dependancies than to compile them all. See the [[MAC OS X Development]] page for more information.}} |
|
{{Message|Compiling on Mac OSX|There is an easier way to get all the dependancies than to compile them all. See the [[MAC OS X Development]] page for more information.}} |
|
For source tarbal, Mercurial source, and package installations, you'll also need to install these packages: |
|
For source tarbal, Mercurial source, and package installations, you'll also need to install these packages: |
Line 25: |
Line 25: |
|
libboost-thread1.40-dev libboost-date-time1.40-dev |
|
libboost-thread1.40-dev libboost-date-time1.40-dev |
|
* Adding 'mercurial' to that line will get you all you need to get involved. |
|
* Adding 'mercurial' to that line will get you all you need to get involved. |
|
|
|
|
---- |
|
|
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> |
|
|
---- |
|
|
=[http://ahixazu.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]= |
|
|
---- |
|
|
=[http://ahixazu.co.cc CLICK HERE]= |
|
|
---- |
|
|
</div> |
|
|
|
|
|
|
== Compile from Sources == |
|
== Compile from Sources == |
Revision as of 17:55, 15 November 2010
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.
|
Compilation requirements
Compiling on Mac OSX: There is an easier way to get all the dependancies than to compile them all. See the MAC OS X Development page for more information.
|
For source tarbal, Mercurial source, and package installations, you'll also need to install these packages:
Debian/Ubuntu
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 \
libboost-thread1.40-dev libboost-date-time1.40-dev
- Adding 'mercurial' to that line will get you all you need to get involved.
Compile from Sources
Source Distribution
- Get the source distribution archive from the download section.
- Extract the archive using a compression/extraction utility such as tar.
- 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)
- If you want to install the game in a special place, instead of 'scons', type:
scons BINDIR="/path/to/install/bin" INSTALLDIR="/path/to/install/share"
- 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.
- 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.
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
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.
cd some_workspace_directory
hg clone http://hg.globulation2.org/glob2-new/
cd glob2-new
hg pull
hg update
- pull will get all changes from the original repository into your repository
- update will get your local files to the latest revision. Use -C to loose all local changes.
The more complicated way
Use this if you want to commit several changes that you are not sure of being finished some day while at the same time you want to have access to a clean checkout, too.
cd some_workspace_directory
hg clone http://hg.globulation2.org/glob2-new/
- clone to a working directory
cd some_workspace_directory
hg clone glob2-new glob2-work
cd glob2-new
hg pull
cd ../glob2-work
hg pull
hg update
- pull will get all changes from the original repository into your target repository
- update will get your files to the latest revision. Use -C to loose all local changes.
- Read the README.hg and README files.
- Continue by following the source distribution instructions from the 3rd step onwards.