I tried building the REST plugin on Windows, before making any code changes. I set up MSYS2 MINGW32, used instructions in BUILDING.md:
pacman -Sy mingw-w64-i686-toolchain mingw-w64-i686-cmake mingw-w64-i686-qt5 mingw-w64-i686-openssl mingw-w64-i686-sqlite3
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/mingw32/lib/cmake -B build
cmake --build build
This works nicely and produces de_rest_plugin.dll
in build directory.
However, copying this to plugins folder, deCONZ fails to load the library without any message. Replacing the original .dll with the newly built one makes the REST plugin disappear from plugins menu, and the API certainly doesn’t work.
Clicking Help|About in deCONZ shows it’s built on GCC 11.3.0. I started from scratch again, reinstalling MSYS, installing old packages for GCC 11.3, and then building again. Same result: library isn’t loaded.
Does anyone have success developing on Windows?