Requirements:
- sdl2 (required);
- luajit (recommended).
Look into simple make-default.sh script and try it.
$ ./make-default.sh
CFLAGS="`sdl2-config --cflags` -Isrc/lua -Isrc/instead -Dunix"
LDFLAGS="`sdl2-config --libs` -lm"
gcc -Wall -O3 src/*.c src/instead/*.c src/lua/*.c $CFLAGS $LDFLAGS -o reinstead
Then run.
$ ./reinstead
Try simple make-luajit.sh script.
$ ./make-luajit.sh
CFLAGS="`pkg-config --cflags sdl2` `pkg-config --cflags luajit` -Isrc/instead -Dunix"
LDFLAGS="`pkg-config --libs sdl2` `pkg-config --libs luajit` -lm"
gcc -Wall -O3 src/*.c src/instead/*.c $CFLAGS $LDFLAGS -o reinstead
Also, you can check Makefile and try it.
$ make
Then run.
$ ./reinstead
You can build reinstead with freetype instead of stb_truetype.
$ make WITH_FREETYPE=1
You can build reinstead with libschrift (bundled) instead of stb_truetype.
$ make WITH_SCHRIFT=1
For simplicity RE:INSTESAD is designed to be run from it's own subdirectory. But you can define DATADIR to select data directory. Check Makefile PREFIX commented line.
$ make PREFIX=/usr/local
$ make PREFIX=/usr/local DESTDIR=/ install
$ mk
$ reinstead
Use binary releases or install mingw and try:
$ ./make-win.sh
Use binary releases or F-Droid or try build yourself:
$ cd contrib/android
$ ./gradlew downloadDependencies
$ ./gradlew installDebug