Dependencies:
- SDL2 libraries. On macos,
brew install sdl2 sdl2_ttf sdl2_gfx
- Eclipse Paho C Library. See below how to build it.
- CMake
This directory contains Dockerfile
s that build deskmate-sdl2
:
Dockerfile
- Linux Alpine buildDockerfile.ubuntu
- Ubuntu build
$ 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/ ..
Copy src/credentials_example.h
into src/credentials.h
and edit it. It contains MQTT credentials and sensors/switches specifications.
$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./deskmate-sdl2
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.