From 6d8d81f71417481e6d27d8c765d27a196165d72a Mon Sep 17 00:00:00 2001 From: SebastianEbert <sebastian.ebert@tu-dresden.de> Date: Thu, 2 Apr 2020 17:28:56 +0200 Subject: [PATCH] updated readme --- README.md | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 23cff5c..bfe917f 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,51 @@ Otherwise, the robot will appear in rviz in a collapsed state. You can see the full explanation in my [blog post](https://erdalpekel.de/?p=55). -## Changelog: +## Installing Eclipse Paho MQTT-Client for C++ + +The build process currently supports a number of Unix and Linux flavors. The build process requires the following tools: + + * CMake v3.5 or newer + * GCC v4.8 or newer or Clang v3.9 or newer + * GNU Make + +On Debian based systems this would mean that the following packages have to be installed: + +``` +$ sudo apt-get install build-essential gcc make cmake cmake-gui cmake-curses-gui +``` + +If you will be using secure sockets (and you probably should): + +``` +$ sudo apt-get install libssl-dev +``` + +Before building the C++ library, first, build and install the Paho C library: + +``` +$ git clone https://github.com/eclipse/paho.mqtt.c.git +$ cd paho.mqtt.c +$ git checkout v1.3.1 + +$ cmake -Bbuild -H. -DPAHO_WITH_SSL=ON -DPAHO_ENABLE_TESTING=OFF +$ sudo cmake --build build/ --target install +$ sudo ldconfig +``` + +Build and install the C++ library: + +``` +$ git clone https://github.com/eclipse/paho.mqtt.cpp +$ cd paho.mqtt.cpp +$ cmake -Bbuild -H. -DPAHO_BUILD_DOCUMENTATION=TRUE -DPAHO_BUILD_SAMPLES=TRUE +$ sudo cmake --build build/ --target install +$ sudo ldconfig +``` + +(source: https://github.com/eclipse/paho.mqtt.cpp/blob/master/README.md) + +## Changelog #### Safetyzones -- GitLab