Changes between Version 315 and Version 316 of BuildInstructions


Ignore:
Timestamp:
Apr 9, 2018, 10:44:30 AM (6 years ago)
Author:
Itms
Comment:

Add libsodium and remove old distros

Legend:

Unmodified
Added
Removed
Modified
  • BuildInstructions

    v315 v316  
    9696 * libogg
    9797 * libpng
     98 * libsodium (>= 1.0.14, follow the instructions at https://download.libsodium.org/doc/installation/ if your distro is behind)
    9899 * libvorbis
    99100 * libxcursor
     
    129130   * With these dependencies you have to run:
    130131     * `./update-workspaces.sh --with-system-nvtt`
     132 * On all versions **except Ubuntu 18.04**, you will need to [https://download.libsodium.org/doc/installation/ install libsodium manually].
     133   * On **Ubuntu 18.04**, `sudo apt-get install libsodium-dev`.
    131134 * If you want to use a packaged **mozjs38**, available for example in [https://launchpad.net/~wfg/+archive/ubuntu/0ad.dev/+packages 0ad.dev PPA]:
    132135   * you should replace `libnspr4-dev` with `libmozjs-38-dev` and run `update-workspace.sh` with `--with-system-mozjs38`.
    133  * On systems **earlier than Debian 8/jessie and Ubuntu 14.04/trusty**:
    134    * you should run `update-workspace.sh` with `--without-miniupnpc` if you don't have `libminiupnpc-dev` >= 1.6;
    135    * you should replace `libwxgtk3.0-dev` with `libwxgtk2.8-dev`;
    136136 * When not using system nvidia-texture-tools, `libnvtt-dev` can be omitted, but `cmake` is needed to build the bundled NVTT.
    137137 * You can also use `libcurl4-openssl-dev` instead of `libcurl4-gnutls-dev` (it's not possible to install both at once), but [http://lintian.debian.org/tags/possible-gpl-code-linked-with-openssl.html note that openssl is not GPL compatible and the resulting binaries could not be redistributed].
     
    143143#!sh
    144144urpmi gcc-c++ python subversion zip cmake boost-devel libcurl-devel         \
    145     libenet-devel libgloox-devel libpng-devel libvorbis-devel \
     145    libenet-devel libgloox-devel libpng-devel libsodium-devel libvorbis-devel \
    146146    libxml2-devel libwxgtku2.8-devel openal-soft-devel libicu-devel
    147147}}}
     
    152152#!sh
    153153sudo dnf install gcc-c++ python subversion zip cmake patch   \
    154     boost-devel libcurl-devel enet-devel libpng-devel libvorbis-devel \
     154    boost-devel libcurl-devel enet-devel libpng-devel libsodium-devel libvorbis-devel \
    155155    libxml2-devel openal-soft-devel pkgconfig SDL2-devel wxGTK-devel  \
    156156    gloox-devel libicu-devel miniupnpc-devel nspr-devel
    157157}}}
    158158
    159 * Fedora 21 or earlier has gloox-devel <= 1.0.9, so you need to build it from sources (https://camaya.net/gloox/) or install a newer (>=1.0.10) version by other way.
    160159* To submit a patch for review via arcanist ([wiki:Phabricator), php is needed:  `dnf install php-cli php-xml`.
    161160
     
    166165#!sh
    167166sudo zypper install gcc-c++ python subversion zip cmake boost-devel         \
    168     libcurl-devel libenet-devel libpng-devel libvorbis-devel  \
    169     libxml2-devel openal-soft-devel pkg-config wxGTK-devel libSDL2-devel     \
     167    libcurl-devel libenet-devel libpng-devel libsodium-devel libvorbis-devel  \
     168    libxml2-devel openal-soft-devel pkg-config wxWidgets-devel libSDL2-devel     \
    170169    gloox-devel libicu-devel miniupnpc-devel
    171170}}}
    172 Users of openSUSE 11.4 and later should install the wxWidgets-devel package instead of wxGTK-devel.
    173171
    174172==== !ArchLinux ====
    175173{{{
    176174#!sh
    177 pacman -S --needed boost cmake curl enet gcc gloox icu libgl libogg libpng libvorbis libxcursor libxml2 miniupnpc patch sdl2 subversion wxgtk zip zlib
     175pacman -S --needed boost cmake curl enet gcc gloox icu libgl libogg libpng libsodium libvorbis libxcursor libxml2 miniupnpc patch sdl2 subversion wxgtk zip zlib
    178176}}}
    179177
     
    181179{{{
    182180#!sh
    183 sudo xbps-install -Syv base-devel boost-devel cmake curl gcc icu-devel libcurl-devel libenet-devel libogg-devel libopenal-devel libpng-devel libvorbis-devel libXcursor libxml2 MesaLib-devel miniupnpc-devel nspr-devel patch pkg-config SDL2-devel wxWidgets-devel zip zlib
     181sudo xbps-install -Syv base-devel boost-devel cmake curl gcc icu-devel libcurl-devel libenet-devel libogg-devel libopenal-devel libpng-devel libsodium-devel libvorbis-devel libXcursor libxml2 MesaLib-devel miniupnpc-devel nspr-devel patch pkg-config SDL2-devel wxWidgets-devel zip zlib
    184182}}}
    185183If there are issues, install more header files depending on the compiler's error message.
     
    395393#!sh
    396394pkg install boost-libs cmake curl enet gloox gmake iconv libGL libogg          \
    397      libvorbis libxml2 miniupnpc nspr openal pkgconf png sdl2 subversion        \
     395     libsodium libvorbis libxml2 miniupnpc nspr openal pkgconf png sdl2 subversion        \
    398396     wx30-gtk2 zip
    399397}}}
     
    422420{{{
    423421#!sh
    424 pkg_add -i boost cmake curl enet g++ gcc gloox gmake icu4c libexecinfo libogg \
     422pkg_add -i boost cmake curl enet g++ gcc gloox gmake icu4c libexecinfo libogg libsodium \
    425423    libxml miniupnpc nspr openal png sdl2 subversion zip
    426424}}}