- Raspbian / Debian
Jessie,Stretch, Buster, Bullseye and Bookworm - Ubuntu
Xenial, Bionic, Focal Fossa and Jammy - Windows 7, 10, 11
There are two ways to build the plugin:
CMake is the new build system to compile the REST-API plugin. The former deconz-dev
package isn't needed anymore since the headers and sources of the deCONZ library are pulled from https://github.com/dresden-elektronik/deconz-lib automatically.
On Debian Buster the following development packages need to be installed.
Note: On newer Ubuntu versions qt5-default
isn't available, replace it with qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
instead.
apt-get update && \
apt-get install --no-install-recommends -y \
qt5-default \
lsb-release ca-certificates build-essential pkg-config git \
libqt5serialport5-dev libqt5websockets5-dev qtdeclarative5-dev \
sqlite3 libsqlite3-dev libgpiod-dev libssl-dev curl cmake ninja-build
-
Checkout the repository
git clone https://github.com/dresden-elektronik/deconz-rest-plugin.git
-
Compile the plugin
cmake -DCMAKE_INSTALL_PREFIX=/usr -G Ninja -B build cmake --build build
-
Install in local temporary directory (This step changes the RPATH so the plugin can find the official
/usr/lib/libdeCONZ.so
library.)cmake --install build --prefix tmp
The compiled plugin is located at: tmp/share/deCONZ/plugins/libde_rest_plugin.so
MSYS2 MINGW32 needs to be installed, it can be downloaded from https://msys2.org
In MSYS2 MINGW32 shell the following packages need to be installed:
pacman -Sy mingw-w64-i686-qt5 mingw-w64-i686-openssl mingw-w64-i686-sqlite3
-
Checkout this repository
git clone https://github.com/dresden-elektronik/deconz-rest-plugin.git
-
Open MSYS2 MINGW32 shell via Windows Start Menu
-
Navigate to the source directory
cd /c/src/deconz-rest-plugin
-
Compile the plugin with CMake
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/mingw32/lib/cmake -B build cmake --build build
After compilation the plugin can be found in the build directory: de_rest_plugin.dll
Currently only supported on Intel Macs (x86_64).
Install dependencies via Homebrew.
brew install qt@5 ninja cmake
-
Checkout this repository
git clone https://github.com/dresden-elektronik/deconz-rest-plugin.git
-
Navigate to the source directory
cd deconz-rest-plugin
-
Compile the plugin with CMake
./build-macos.sh
After compilation the plugin can be found in the build directory: de_rest_plugin.dylib
-
Copy the plugin to the app bundle
cp build/de_rest_plugin.dylib /Applications/deCONZ.app/Contents/Plugins
Important: Building via QMake is deprecated and will be removed in future.
This method is only supported on Linux.
sudo apt install deconz-dev
-
Checkout the repository
git clone https://github.com/dresden-elektronik/deconz-rest-plugin.git
-
Checkout the latest version
cd deconz-rest-plugin git checkout -b mybranch HEAD
-
Compile the plugin
qmake && make -j2
Note On Raspberry Pi 1 use qmake && make
-
Replace original plugin
sudo cp ../libde_rest_plugin.so /usr/share/deCONZ/plugins