Skip to content

Commit fcc074a

Browse files
authored
mqtt.cpp librarie (#85)
1 parent aff619c commit fcc074a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

others/scripts/mqtt/requirements.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ git clone https://github.com/eclipse/paho.mqtt.c.git
5353
cd paho.mqtt.c
5454
mkdir build
5555
cd build
56-
cmake -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_WITH_SSL=FALSE ..
56+
cmake -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_WITH_SSL=TRUE ..
5757
make
5858
sudo make install
59+
60+
cd ..
61+
cd ..
62+
63+
rm -rf paho.mqtt.cpp
64+
git clone https://github.com/eclipse/paho.mqtt.cpp
65+
cd paho.mqtt.cpp
66+
cmake -Bbuild -H. -DPAHO_BUILD_STATIC=ON -DPAHO_WITH_SSL=ON -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=FALSE
67+
sudo cmake --build build/ --target install
68+
sudo ldconfig
69+
cd ..
70+

0 commit comments

Comments
 (0)