Compiling example binaries

  1. Navigate to the root of the repository and execute the following:

First create the build directory

mkdir build && cd build
Next invoke the cmake command. The cmake command expects a -DPLATFORM_OPTION=<x86_64/aarch64> tag , if nothing is given x86_64 is assumed.

To cross compile for aarch64 from a x86_64, an additional -DCMAKE_TOOLCHAIN_FILE="../toolchains/aarch64_gcc_linux.cmake" must be provided.

To have a local install path -DCMAKE_INSTALL_PREFIX="../install" can be given

Normal build:

cmake .. -DPLATFORM_OPTION=<x86_64/aarch64> -DCMAKE_INSTALL_PREFIX="../install"


cmake .. -DPLATFORM_OPTION=<x86_64/aarch64> -DCMAKE_INSTALL_PREFIX="../install" -DCMAKE_TOOLCHAIN_FILE="../toolchains/aarch64_gcc_linux.cmake"

Last updated