Use CMake to build the plugin on modern Linux distributions like Debian Trixie that use Qt6. This method automatically pulls headers and sources from deconz-lib, so the deconz-dev package is not required.
Prerequisites
Install the following dependencies via apt-get:
apt-get update && \
apt-get install --no-install-recommends -y \
lsb-release \
ca-certificates \
build-essential \
cmake \
pkg-config \
git \
sqlite3 \
libsqlite3-dev \
libgpiod-dev \
libssl-dev \
qt6-base-dev \
qt6-base-dev-tools \
qt6-serialport-dev \
qt6-websockets-dev \
qt6-declarative-dev \
qt6-5compat-dev \
dpkg-dev \
fakeroot \
curl \
wget
Build Steps
- Clone the repository:
git clone https://github.com/dresden-elektronik/deconz-rest-plugin.git
- Compile using Ninja and specify Qt6:
cmake -DCMAKE_INSTALL_PREFIX=/usr -DQT_VERSION_MAJOR=6 -G Ninja -B build
cmake --build build
- Install to a local temporary directory to adjust RPATH:
cmake --install build --prefix tmp
The resulting plugin is located at: tmp/share/deCONZ/plugins/libde_rest_plugin.so
git clone https://github.com/dresden-elektronik/deconz-rest-plugin.git
cmake -DCMAKE_INSTALL_PREFIX=/usr -DQT_VERSION_MAJOR=6 -G Ninja -B build
cmake --build build
cmake --install build --prefix tmp