Changes between Version 80 and Version 81 of BuildInstructions


Ignore:
Timestamp:
Mar 27, 2010, 1:15:19 PM (14 years ago)
Author:
Philip Taylor
Comment:

experimental new system

Legend:

Unmodified
Added
Removed
Modified
  • BuildInstructions

    v80 v81  
    167167#endif
    168168}}}
     169
     170
     171
     172== Obtaining the latest release ==
     173
     174'''This is a new untested distribution method. It might be best to stick with SVN for now, while we sort this out over the next few days.'''
     175
     176=== Linux packages ===
     177
     178Unofficial packages may exist or be in development for several distros:
     179 * [http://bugs.gentoo.org/show_bug.cgi?id=278541 Gentoo]
     180 * [http://aur.archlinux.org/packages.php?ID=28560 Arch]
     181 * [https://bugs.launchpad.net/getdeb.net/+bug/543277 Ubuntu]
     182If you use a different distro, or if these packages are outdated, or if you want to edit or debug the code, see the next section.
     183
     184=== Compiling on Linux and OS X ===
     185
     186You need two files:
     187 * [http://releases.wildfiregames.com/0ad-r07405-pre-alpha-unix-build.tar.xz 0ad-unix-build.tar.xz] (6 MB) ''or'' [http://releases.wildfiregames.com/0ad-r07405-pre-alpha-unix-build.tar.bz2 0ad-unix-build.tar.bz2] (8 MB)
     188 * [http://releases.wildfiregames.com/0ad-r07405-pre-alpha-unix-data.tar.xz 0ad-unix-data.tar.xz] (92 MB) ''or'' [http://releases.wildfiregames.com/0ad-r07405-pre-alpha-unix-data.tar.bz2 0ad-unix-data.tar.bz2] (106 MB)
     189The `.xz` files are smaller but may require you to install [http://tukaani.org/xz/ XZ Utils].
     190
     191SHA1 digests:
     192{{{
     19357d61f2bee26666d8e89e9952a6c2b532dd6e030  0ad-r07405-pre-alpha-unix-build.tar.xz
     194eaaa0094a8baeaf3d3a11792b7272b397f2ca84c  0ad-r07405-pre-alpha-unix-build.tar.bz2
     1952a5837141579f77f3b3b5f3d2e83b490dbef9bc5  0ad-r07405-pre-alpha-unix-data.tar.xz
     196a30fc818807a40225bb792892ffd91a1c86fadfe  0ad-r07405-pre-alpha-unix-data.tar.bz2
     197}}}
     198
     199Extract both files to the same location:
     200{{{
     201# Extract .xz version into the current directory:
     202tar xvJf 0ad-r07405-pre-alpha-unix-build.tar.xz
     203tar xvJf 0ad-r07405-pre-alpha-unix-data.tar.xz
     204# Or, if your tar is older than 1.22:
     205xz -cd 0ad-r07405-pre-alpha-unix-build.tar.xz | tar xv
     206xz -cd 0ad-r07405-pre-alpha-unix-data.tar.xz | tar xv
     207# Or, if you have the .bz2 version:
     208tar xvjf 0ad-r07405-pre-alpha-unix-build.tar.bz2
     209tar xvjf 0ad-r07405-pre-alpha-unix-data.tar.bz2
     210}}}
     211
     212Then follow the SVN build instructions.
     213
     214=== Windows ===
     215
     216Download and run [http://releases.wildfiregames.com/0ad-r07405-pre-alpha-win32.exe 0ad-win32.exe] (114 MB) (self-extracting [http://www.7-zip.org/ 7-Zip]), then select a location to extract the files. This includes all the source code and data files, and precompiled binaries.
     217
     218SHA1 digest:
     219{{{
     22076f4ba98ef0f6e05eac9ff2a1b83ca767b181da3  0ad-r07405-pre-alpha-win32.exe
     221}}}
     222
     223Either follow the SVN build instructions, or run binaries\system\pyrogenesis.exe directly.
     224
     225== Creating Linux packages ==
     226
     227This section is for people creating installable packages for Linux distros.
     228
     229Download the `build` tarball listed above. Follow the SVN build instructions. The default is an unoptimised debug-mode build (this is helpful since the game is unstable and buggy); if you want an optimised harder-to-debug build instead, compile with `CONFIG=Release make`.
     230
     231Run the automated tests to make sure nothing is broken: extract the `data` tarball alongside the `build` one, then run `./test_dbg` (or `./test` for Release builds) from `binaries/system/`. There should be no error output.
     232
     233You need to distribute the following files from `binaries/system/`:
     234 * `pyrogenesis_dbg` (Debug build) or `pyrogenesis` (Release build)
     235 * `libCollada_dbg.so` or `libCollada.so`
     236 * `libAtlasUI_dbg.so` or `libAtlasUI.so`
     237 * `libmozjs-ps-debug.so` or `libmozjs-ps-release.so`
     238You also need to distribute the contents of the `data` tarball. You don't need to distribute anything from the `build` tarball. The executables should be located somewhere so that they can use `../data/` to access the `data` tarball's `binaries/data/` directory. (They don't need to be in a directory called `system/`, and that directory doesn't need to be in one called `binaries/`, if you prefer different names). The whole thing should probably go somewhere like `/opt/0ad/`, and you might want to set up a script with a nice name like `/usr/bin/0ad` to run it, depending on local conventions.
     239
     240These directories and files should be read-only; all per-user output goes in XDG basedir locations (unless we have bugs).