**** BEGIN LOGGING AT Thu Jan 09 02:59:58 2020 **** BEGIN LOGGING AT Thu Jan 09 05:31:58 2020 **** BEGIN LOGGING AT Thu Jan 09 06:03:43 2020 Jan 09 15:08:40 Greetings! Jan 09 15:09:46 is there any working mqtt library for C/C++ yhat could be used with BBB? Jan 09 15:09:54 paho Jan 09 15:10:15 mqtt is purely networking hence is not hardware-dependent Jan 09 15:10:26 hence any mqtt library for linux in any language will do Jan 09 15:14:22 @LetoThe2nd: i downloaded one already but when i try compiling i keep getting this fatal Error: no such file or directory. i guess am including it wrongly but i have tried several ways to include it like ; #include "../MQTTClient.h" ,#include "../../MQTTClient.h" etc. Jan 09 15:14:59 compile the lib, install the lib, then the usual linux library usage rules apply. Jan 09 15:15:11 am tryinh to point to the location where the "MQTTClient.h" file is found but keep failing Jan 09 15:15:30 e.g. probably something like #include , and -lpaho pr whatever Jan 09 15:16:01 hmm, it doesn't have a debian package? Jan 09 15:16:10 but thats not a paho problem, rather a "don't know how to use a library", and any other library will be just the same Jan 09 15:16:53 @LetoThe2nd: can you show me how to? i just only cloned it from git and then ran the make command that was all i did Jan 09 15:17:12 are you trying to use the C or the C++ library? Jan 09 15:17:22 like i said. complie, install, then use #include <> and the correct linker flag Jan 09 15:17:32 @zmattthe C. Jan 09 15:17:51 @zmatt: the C. Jan 09 15:17:58 saying once suffices Jan 09 15:20:27 this one also outlines the linker flags: https://cumulocity.com/guides/device-sdk/mqtt-examples/ Jan 09 15:20:36 for the header path, look it up yourself. Jan 09 15:22:21 oh this is confusing Jan 09 15:23:45 the download link for the "official release" includes a readme for building from source, but that download doesn't actually include any source or makefile, but just compiled libs, headers, and examples, and no obvious way to install them Jan 09 15:24:45 that's pretty useless Jan 09 15:25:14 (especially since the compiled libs are obviously not for ARM) Jan 09 15:27:35 trying to build from git now Jan 09 15:34:50 @zmatt: this the link to the one i cloned https://github.com/eclipse/paho.mqtt.c Jan 09 15:37:48 their option to build a debian package doesn't seem to work unfortunately, but a normal build does Jan 09 15:38:57 glad I did make install with a DESTDIR since it would have installed stuff into pretty rude places.... https://pastebin.com/sA48cUcv Jan 09 15:39:24 jeez does noone use or test this library or something Jan 09 15:39:30 not very confidence-inspiring Jan 09 15:46:17 m Jan 09 15:56:00 m-blasie: this seems to install it properly: https://pastebin.com/nFsgfSh4 Jan 09 15:57:42 maybe Jan 09 15:57:44 hm Jan 09 16:01:07 -D PAHO_WITH_SSL:BOOL=TRUE to also build the ssl versions Jan 09 16:01:10 *add Jan 09 16:02:03 and I had to do sudo ldconfig to make the installed MQTTVersion actually able to find the libraries Jan 09 16:03:20 and the examples now compile fine for me, e.g. Jan 09 16:03:22 gcc -Wall -o MQTTAsync_publish /usr/local/share/doc/paho.mqtt.c/MQTTAsync_publish.c -lpaho-mqtt3as Jan 09 16:13:01 @zmatt: from the link you sent, am i to run those commands inside the library folder i.e inside paho.mqtt.embedded-c/MQTTClient-C Jan 09 16:13:24 inside the paho.mqtt.c directory cloned from git Jan 09 16:13:47 okay let me try that out Jan 09 16:14:54 you probably don't want the embedded-c version Jan 09 16:15:12 that sounds more like it's for microcontrollers and such Jan 09 16:17:20 okay which should i use? Jan 09 16:19:53 16:34 < m-blasie> @zmatt: this the link to the one i cloned https://github.com/eclipse/paho.mqtt.c Jan 09 16:19:56 17:13 <@zmatt> inside the paho.mqtt.c directory cloned from git Jan 09 16:20:21 it's really not that hard to read stuff and use what you said you were using Jan 09 16:25:56 okay thanks Jan 09 17:25:17 @zmatt: i keep getting this when i run this command : /git/paho.mqtt.c/build$ cmake -D PAHO_ENABLE_CPACK:BOOL=OFF -D PATH=./paho.mqtt.c │ Jan 09 17:25:19 CMake Error: The source directory "/home/sco/git/paho.mqtt.c/build/PATH=./paho.mqtt.c" does not exist. │ Jan 09 17:26:42 m-blasie: that does not look even remotely like the command in my step by step instructions Jan 09 17:31:38 please just copy-paste the commands as-is Jan 09 17:31:54 I've updated the https://pastebin.com/nFsgfSh4 to include the variant for building with TLS support **** ENDING LOGGING AT Fri Jan 10 02:59:58 2020