Skip to content

Latest commit

 

History

History
 
 

rpi

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Raspberry Pi

Setup

This project uses CMake (minimum version 3.0), you can download it here or install it with apt-get.

sudo apt-get install cmake

Make sure to update git submodules before you build:

git submodule update --init

To build on Rasberry Pi you will need a C++ toolchain with support for C++14. GCC 4.9.2 (or higher) and Clang 3.4 (or higher) are known to work (refer here for instructions on getting GCC 4.9).

You will also need to install development packages for libcurl:

sudo apt-get install libcurl4-openssl-dev

The demo application uses the Mapzen vector tile service, so you will need a Mapzen API key to build and run the demo.

  1. Visit https://mapzen.com/documentation/overview/#get-started-developing-with-mapzen to get an API key.

  2. Setup an environment variable (MAPZEN_API_KEY) to point to your API key.

    export MAPZEN_API_KEY=YOUR_API_KEY

Build

Before compiling, choose which compiler to use:

export CXX=/usr/bin/g++-4.9

Then compile:

make rpi

You can optionally use make -j to parallelize the build and append DEBUG=1 or RELEASE=1 to choose the build type.

Run the demo program from the output folder:

cd build/rpi/bin
./tangram

Tangram will be rendered directly to the screen without a window manager. To show a mouse cursor, run with -m:

cd build/rpi/bin
./tangram -m

You can also move the map with w, a, s, and z, zoom in and out with - and =, and quit with q.