Skip to content

C CPP Build Instructions

Can Selcik edited this page Mar 24, 2018 · 2 revisions

The makefiles assume the following are available in your $PATH, you may need to override or change them if they are installed elsewhere on your system:

CC = arm-linux-gnueabihf-gcc
CXX = arm-linux-gnueabihf-g++
AR = arm-linux-gnueabihf-ar

The toolchain that would be acquired from either of these sources would be able to cross-compile for the Remarkable Tablet:

AUR:
  https://aur.archlinux.org/packages/arm-linux-gnueabihf-gcc/
Remarkable:
  https://remarkable.engineering/deploy/sdk/poky-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-neon-toolchain-2.1.3.sh

Once that's set up, initialize the libfreetype (only needed for the C implementation) submodule with git submodule init && git submodule update.

Then, run make freetype to generate the libfreetype static build with the expected flags.

Execute make all to generate the poc executable along with spy.so, libremarkable.so, libremarkable.a and evtest.