-
Notifications
You must be signed in to change notification settings - Fork 178
SparCraft Linux Standalone Compilation
David Churchill edited this page Feb 29, 2016
·
5 revisions
SparCraft works in Linux via the bwapidata library! Linux is actually the easiest way to get SparCraft up and running.
-
Install the [Environment required libraries]
-
Change directory to the SparCraft root directory
-
Run the following command to compile (someone please give me a Makefile!):
g++ -O3 source/.cpp bwapidata/include/.cpp source/glfont/*.cc -Ibwapidata/include -Isource/glfont -o SparCraft
sdl-config --cflags --libs
-lGL -lGLU -lSDL_image -
Run the following command for a sample experiment:
./SparCraft sample_experiment/sample_exp_linux.txt
To use SparCraft, you must include its headers. Make sure your project includes the SparCraft/source
directory, and from within your program use the following:
#include "SparCraft.h"