Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Building from source

Shaun LeBron edited this page Mar 7, 2015 · 1 revision

Windows

  1. Get MinGW installer, and install the following with the package manager:
  • gcc
  • lua
  • sdl2
  1. Install msys
  2. Add mingw/bin and msys/bin to system path
  3. Open msys/bin/msys to open command line
./build.sh
./play.sh

Mac OS X

  • Install Command Line Tools for XCode (you need an apple developer account, free)

  • Install Lua 5.2

    curl -R -O http://www.lua.org/ftp/lua-5.2.0.tar.gz
    tar zxf lua-5.2.0.tar.gz
    cd lua-5.2.0
    make macosx test
    sudo make install
  • Install SDL2

    • Download
    • Copy SDL2.Framework to /Library/Frameworks/
./build.sh
./play.sh

Linux

  • Install Lua 5.2

    curl -R -O http://www.lua.org/ftp/lua-5.2.0.tar.gz
    tar zxf lua-5.2.0.tar.gz
    cd lua-5.2.0
    make linux test
    sudo make install
  • Install SDL 2

    sudo apt-get install libsdl2-dev
  • Install Xxf86dga

    sudo apt-get install libxxf86dga-dev
./build.sh
./play.sh
Clone this wiki locally