Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 1.29 KB

Linux.md

File metadata and controls

66 lines (43 loc) · 1.29 KB

Building & Running on Linux

These instructions cover building 32blit on Linux.

Prerequisites

First install the required tools:

sudo apt install git gcc g++ gcc-arm-none-eabi cmake make python3 python3-pip libsdl2-dev libsdl2-image-dev unzip

pip3 install 32blit

Optionally, for building the firmware as a .DFU file (usually not needed on Linux):

pip3 install construct bitstring

Building & Running on 32Blit

If you want to run code on 32Blit, you should now refer to Building & Running On 32Blit.

Building & Running Locally

Set up the 32Blit Makefile from the root of the repository with the following commands:

mkdir build
cd build
cmake ..

Now to make any example, type:

make example-name

For example:

make raycaster

This will produce examples/raycaster/raycaster which you should run with:

./examples/raycaster/raycaster

Build Everything

Alternatively you can build everything by just typing:

make

When the build completes you should be able to run any example.