CompilingFrom Globulation2
Building current versionsThe maintained build and run guide provides current Linux, macOS and Windows prerequisites, dependency setup and commands. Start there before compiling; the SDL 1.2 and Mercurial instructions below apply to historical versions. Clone the current repository with Git. After installing your platform's prerequisites and configuring the pinned SDL3 dependency prefix as documented, run from the repository root: python3 tools/dev_build.py The helper reports the build output directory. See the build options for configuration and the test guide for verification. Development builds are for local editing and smoke checks; use the release guides for shipping packages. If you only want to play, see Download and Install or play in your browser. Historical informationThese archived instructions and notes describe older releases. Use the current links above for modern versions. Contents
Compilation requirements
For source tarbal, Mercurial source, and package installations, you'll also need to install these packages:
Debian/UbuntuThe following terminal command will get you all the dependencies: sudo apt-get install mercurial scons libsdl1.2-dev libsdl-net1.2-dev libsdl-image1.2-dev \ libsdl-ttf2.0-dev zlibc libspeex-dev libogg-dev libvorbis-dev libboost-dev libboost-thread-dev \ libboost-date-time-dev Compile from SourcesSource Distribution
scons BINDIR="/path/to/install/bin" INSTALLDIR="/path/to/install/share"
Sources from Mercurial
The quick wayUse 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 https://bitbucket.org/giszmo/glob2
cd glob2 hg pull hg update
The more complicated wayUse 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 https://bitbucket.org/giszmo/glob2
cd some_workspace_directory hg clone glob2 glob2-work
cd glob2 hg pull cd ../glob2-work hg pull hg update
| |||||||||||