This is a tutorial to build the open source fantasy console TIC-80
You'll have to have these tools installed:
- MinGW32 (32 bits version is a must)
- EMScripten Compiler
Download the installer from its donwload page.
Once you have MinGW Installation Manager running (search for mingw-get.exe if you don't), select "All Packages > MinGW > MinGW Base System" on the left column. On the main panel, mark for installation ming32-base
and check "Installation > Apply Changes".
After you finished the setup, open a command prompt and type in
gcc --version
and make sure you have both gcc
and mingw32-make
on path. If you don't, you add them manually. These tools are usually located under C:/MinGW/bin
.
Just follow the instructions on this page.
Clone TIC from github. From TIC's official README:
mkdir tic
cd tic
git clone https://github.com/nesbox/3rd-party
git clone https://github.com/nesbox/TIC-80
The first time you build TIC, you'll need to run these commands:
cd TIC-80
cd tools/bin2txt
mingw32-make
cd ../..
mingw32-make emscripten
mingw32-make mingw
You should now be able to run the bin\tic.exe
executable.
Further TIC builds should be done with
mingw32-make mingw
inside the TIC-80
folder.
If you still get errors from building TIC, try opening the makefile
in the TIC-80
folder and change the first line from
CC=gcc
to
CC=mingw32-gcc -m32
Then proceed to delete all *.o
, *.dll
and *.exe
files inside the bin
folder
You may have to copy SDL2.dll into the bin
folder. You can find it by downloading a windows TIC build from its website.