- kdb+ ≥ 3.5 64-bit(Linux/MacOS/Windows) and 32-bit ARM
paho.mqtt.c
>= 1.3.11- CMake ≥ 3.1 1
-
Ensure MQTT C API (
paho.mqtt.c
) is installed. -
Make the MQTT library available from kdb+:
-
Linux: Add the
lib
directory, which includesinclude
andlib
to theLD_LIBRARY_PATH
environment variable e.g. if unzipped to/usr/local/Eclipse-Paho-MQTT-C/
, run:export LD_LIBRARY_PATH=/usr/local/Eclipse-Paho-MQTT-C/lib/:$LD_LIBRARY_PATH
-
macOS: Add the
lib
directory, which includesinclude
andlib
to theDYLD_LIBRARY_PATH
environment variable e.g. if unzipped to/Users/jim/eclipse-paho-mqtt-c/
, run:export DYLD_LIBRARY_PATH=/Users/jim/Eclipse-Paho-MQTT-C/lib/:$DYLD_LIBRARY_PATH
-
Windows: Add
paho-mqtt3c.dll
andpaho-mqtt3cs.dll
to the kdb+ directory e.g.C:\q\w64
for 64-bit.
-
-
Download the latest release of the MQTT interface from our releases page. To install shared library and q files, use:
# Linux/MacOS ./install.sh # Windows install.bat
or copy
mqtt.q
toQHOME
, then copymqttkdb.so
ormqttkdb.dll
intoQHOME/[l|m|w]64
Footnotes
-
Required when building from source ↩