Build instructions

Filippo edited this page Apr 5, 2018 · 26 revisions

Windows

with Visual Studio 2015

  • install Visual Studio 2015
  • install GIT
  • run following commands in cmd
git clone --recursive https://github.com/nesbox/TIC-80
  • open TIC-80\build\windows\tic\tic.sln and build
  • enjoy :)

with MinGW32

follow the instructions in the tutorial https://matheuslessarodrigues.github.io/tic80-build-tutorial/ made by @matheuslessarodrigues

MacOSX

Run the following commands from terminal:

cd ~/Documents
git clone --recursive https://github.com/nesbox/TIC-80
cd TIC-80
make macosx
cd build/macosx
make

WASM

Download, install & configure emscripten as per your environment requires:

http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html

Run the following commands from terminal (tested on OSX, your mileage may vary):

git clone --recursive https://github.com/nesbox/TIC-80
cd TIC-80
make wasm
cd build/html

A nice small & fast WASM file awaits you :)

Linux

Debian

For Debian based systems (e.g. Ubuntu), run the following commands in your Terminal:

sudo apt-get install git 
git clone --recursive https://github.com/nesbox/TIC-80
cd TIC-80
./build.sh

Raspberry Pi (Retropie)

Exit to shell by press F4 and upgrade the system:

sudo apt-get update
sudo apt-get dist-upgrade

Add jessie-backports repo to /etc/apt/sources.list:
deb http://ftp.debian.org/debian jessie-backports main

Install required public keys:

gpg --keyserver pgpkeys.mit.edu --recv-key  8B48AD6246925553      
gpg -a --export 8B48AD6246925553 | sudo apt-key add -
gpg --keyserver pgpkeys.mit.edu --recv-key 7638D0442B90D010
gpg -a --export 7638D0442B90D010 | sudo apt-key add -

then run apt-get update

Install needed soft:
sudo apt-get install git build-essential libgtk-3-dev libsdl2-dev zlib1g-dev

Install liblua5.3-dev from jessie-backports:
sudo apt-get install -t jessie-backports liblua5.3-dev

Get fresh TIC-80 and compile

sudo apt-get install git 
git clone --recursive https://github.com/nesbox/TIC-80
cd TIC-80
./build.sh

If you are using a normal Raspberry Pi image (not Retropie) you may not have OpenGL drivers enabled. Run sudo raspi-config, then select 7 for "Advanced Options", followed by 6 for "GL Drivers", and enable "GL (Fake KMS) Desktop Driver". After changing this setting it needs to reboot.

run it: bin/tic
Enjoy!

Arch

Please see the AUR package, tic-80.

ALT Linux 64-bit

Install devel packages needed to compile:

apt-get install git automake libgtk+3-devel libreadline-devel

We need to compile TIC and 3rd-party libs, precompiled libs are not suitable

mkdir tic
cd tic

git clone --recursive https://github.com/nesbox/TIC-80

Lets build 3rd-party libs:

cd 3rd-party

cd SDL2-2.0.7
sh autogen.sh && sh configure
make

Our lib here: ./build/.libs/libSDL2.a

cd giflib-5.1.4
sh autogen.sh && sh configure
make

Our lib here: /lib/.libs/libgif.a

cd lua-5.3.1
make linux

Our lib here: ./src/liblua.a

cd zlib-1.2.8
sh configure
make

Our lib here: ./libz.a

Copy compiled libs into /TIC-80/lib/linux directory and build TIC:

make linux

iOS / tvOS

You can find iOS/tvOS version here https://github.com/CliffsDover/TIC-80

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.