SparCraft Linux Standalone Compilation - smithe0/ualbertabot GitHub Wiki
SparCraft works in Linux via the bwapidata library! Linux is actually the easiest way to get SparCraft up and running.
Instructions
-
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
Headers
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"