Skip to content

Instantly share code, notes, and snippets.

@aschaeffer
Last active February 29, 2016 10:10
Show Gist options
  • Select an option

  • Save aschaeffer/f00113854c20a9e0ee57 to your computer and use it in GitHub Desktop.

Select an option

Save aschaeffer/f00113854c20a9e0ee57 to your computer and use it in GitHub Desktop.

Revisions

  1. aschaeffer revised this gist Feb 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion inexor-bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    # Created: 2016-02-29 ### By: Hanack ### v0.5 ### License: zlib #

    # Install development packages
    sudo apt-get install git cmake build-essential libsdl2{,-mixer,-image}-dev libgl1-mesa-dev libprotobuf-dev protobuf-compiler libenet-dev libudev-dev libboost-all-dev
    sudo apt-get install git cmake build-essential libsdl2{,-mixer,-image}-dev libgl1-mesa-dev libprotobuf-dev protobuf-compiler libenet-dev libudev-dev libboost-all-dev npm

    # Fetch source code and media
    mkdir ~/git
  2. aschaeffer created this gist Feb 29, 2016.
    36 changes: 36 additions & 0 deletions inexor-bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    #!/bin/sh

    # This script bootstraps a development environment for inexor on Debian / Ubuntu
    # Created: 2016-02-29 ### By: Hanack ### v0.5 ### License: zlib #

    # Install development packages
    sudo apt-get install git cmake build-essential libsdl2{,-mixer,-image}-dev libgl1-mesa-dev libprotobuf-dev protobuf-compiler libenet-dev libudev-dev libboost-all-dev

    # Fetch source code and media
    mkdir ~/git
    cd ~/git
    git clone --recursive https://github.com/inexor-game/code.git inexor-code
    git clone https://github.com/inexor-game/data.git inexor-data
    git clone https://github.com/inexor-game/data-additional.git inexor-data-additional
    # git clone https://github.com/inexor-game/data-playground.git inexor-data-playground

    # Wire data repositories and code repository
    mkdir ~/git/inexor-code/media
    ln -s ~/git/inexor-data ~/git/inexor-code/media/data
    ln -s ~/git/inexor-data-additional ~/git/inexor-code/media/data-additional
    # ln -s ~/git/inexor-data-playground ~/git/inexor-code/media/data-playground

    # Working around the libudev error
    # (see also: https://github.com/inexor-game/code/wiki/Build#working-around-the-libudev-error)
    sudo ln -sf /lib/$(arch)-linux-gnu/libudev.so.1 /lib/$(arch)-linux-gnu/libudev.so.0

    # Build
    mkdir ~/git/inexor-build
    cd ~/git/inexor-build
    cmake ../inexor-code
    make install

    # Run
    # cd ~/git/inexor-code
    # ./inexor_unix