The easiest way to build this API library for RaspberryPi is to cross-compile sr25519-crust on Linux and build the rest of API on Raspberry Pi.
- Clone this fork of sr25519-crust: https://github.com/Warchant/sr25519-crust and follow build instructions in it. Copy built files to RPI
If you are using RaspberryPi 3, you can use pre-built binaries: https://github.com/usetech-llc/sr25519-crust/releases/tag/RaspberryPi
- Install latest cmake on RPI:
git clone https://github.com/Kitware/cmake && cd cmake
./bootstrap && make -j4
sudo make install
cd
- Install dependencies
sudo apt-get install libssl-dev libboost1.62-* libcurl4-openssl-dev
- Clone and build
git clone https://github.com/usetech-llc/polkadot_api_cpp && cd polkadot_api_cpp
cmake .
make
make test