Skip to content

Build or install from source

Setup

Before being able to compile the source code, you first have to download it from GitHub and install Golang (if you don't have it already). Furthermore you need a common C++ compiler and CMake to build the compiler executable.

Clone from GitHub

git clone https://github.com/chillibits/spice.git
cd spice

Install Go

For compiling Spice from source, you need to have Go 1.16 or higher installed on your system. Please refer to the official guide on how to install Go.

Build from source

If you want to build the executable, you can use the build.sh for Linux or the build.bat file for Windows:

./build.sh
build.bat

The executables will end up in the bin subfolder.

Install from source

If you don't care about the executable and you just want to use Spice, you can use the install.sh for Linux or the install.bat for Windows. This will install the executable to a path, located in the PATH, so your OS can find it and makes it available as a command:

./install.sh
install.bat

Use

spice [options] <input>