1

I'm using Ubuntu 16.04, I cloned the c library at ~/Paho_MQTT/paho_c and ran following commands in paho.mqtt.c folder,

sudo apt-get install build-essential gcc make cmake cmake-gui cmake-curses-gui
sudo apt-get install fakeroot fakeroot devscripts dh-make lsb-release
sudo apt-get install libssl-dev
sudo apt-get install doxygen graphviz
mkdir build
cd build
ccmake ..
make
sudo make install

All goes well.

Then I cloned c++ code at ~/Paho_MQTT/paho_cpp, and ran following commands in the paho.mqtt.cpp folder,

mkdir build
cd build
cmake -DPAHO_MQTT_C_PATH=~/Paho_MQTT/paho_c/paho.mqtt.c ..

Here I get error, "Could not find Paho MQTT C library", Can you please suggest any solution ?

Salman
  • 81
  • 9
  • Unsure whether CMake is able to resolve `~` path in variables. Instead, use literal `/home/`. – Tsyvarev May 08 '18 at 17:56
  • tried it, but still same error, – Salman May 09 '18 at 06:06
  • make sure you have updated cmake and git repo cloned in proper state – Mandar May 09 '18 at 06:13
  • I'm setting up the environment for development on a new machine so all the software is latest, also the repo is cloned properly, I tried to clone the repos in two different directories, but get same error – Salman May 09 '18 at 10:51

0 Answers0