Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Latest commit

 

History

History

sdl2

Building

Dependencies:

Example - Linux build

This directory contains Dockerfiles that build deskmate-sdl2:

  • Dockerfile - Linux Alpine build
  • Dockerfile.ubuntu - Ubuntu build

Step 1. Build paho.mqtt.c

$ git submodule update --init --recursive
$ cd third-party/paho.mqtt.c
$ mkdir build
$ cd build
$ cmake -GNinja -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_SAMPLES=TRUE ..
$ ninja

For macos, you might need to point cmake to the correct OpenSSL instalation:

$ cmake -GNinja -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_SAMPLES=TRUE -DOPENSSL_ROOT_DIR=$HOME/homebrew/opt/openssl@1.1/ ..

Step 2. Configure it

Copy src/credentials_example.h into src/credentials.h and edit it. It contains MQTT credentials and sensors/switches specifications.

Step 3. Build deskmate-sdl2

$ mkdir build
$ cd build
$ cmake ..
$ make

Step 4. Run it!

$ ./deskmate-sdl2

License

The deskmate-sdl2 is distributed under the MIT license (see LICENSE in the root directory of this repo).

Files in the cmake/ directory are distrubited under the BSD 3-Clause License and were obtained from github.com/aminosbh/sdl2-cmake-modules.