Building on Linux

Introduction

This page describes how to get started with KNX IoT Point API development on Linux.

The build system is CMake.

Note: this description also applies to development on a Raspberry Pi.

Prerequisites

  • Linux machine (or Pi)
  • installed:

    • git
    • gcc
    • cmake environment

Build steps GitHub

# Clone the Stack
git clone --recurse-submodules https://github.com/KNX-IOT/KNX-IOT-STACK.git
# go into the cloned repo
cd KNX-IOT-STACK
- # Make a working directory (named anything)
mkdir build
cd build 
# do the configuration step, e.g. build the native make files
cmake ..
# build the sdk, the -j is the amount of processor the build will be using
make -j12
# go back to the source directory
cd ..

Note: one can copy paste the contents above in a Linux terminal.

Build steps GitLab

# Clone the Stack
git clone --recurse-submodules https://gitlab.knx.org/shared-projects/knx-iot-point-api-public-stack.git
# go into the cloned repo
cd knx-iot-point-api-public-stack
- # Make a working directory (named anything)
mkdir build
cd build 
# do the configuration step, e.g. build the native make files
cmake ..
# build the sdk, the -j is the amount of processor the build will be using
make -j12
# go back to the source directory
cd ..

Note: one can copy paste the contents above in a Linux terminal.