把包放入Work下
sudo apt-get update
sudo apt-get install build-essential gcc make cmake cmake-gui cmake-curses-gui
sudo apt-get install libssl-dev
sudo apt-get install doxygen graphviz
cd ~/Work
unzip paho.mqtt.c-master.zip
unzip paho.mqtt.cpp-master.zip
cd paho.mqtt.c-master
cmake -Bbuild -H. -DPAHO_ENABLE_TESTING=OFF -DPAHO_BUILD_STATIC=ON -DPAHO_WITH_SSL=ON -DPAHO_HIGH_PERFORMANCE=ON -DCMAKE_INSTALL_PREFIX=/home/nvidia/Work/local(安装位置)
sudo cmake --build build/ --target install
cd paho.mqtt.cpp-master
cmake -Bbuild -H. -DPAHO_BUILD_STATIC=ON -DPAHO_BUILD_DOCUMENTATION=TRUE -DPAHO_BUILD_SAMPLES=TRUE -DCMAKE_INSTALL_PREFIX=/home/nvidia/Work/local(安装位置)
sudo cmake --build build/ --target install
sudo ldconfig
jetson nano安装mqtt库
于 2023-03-18 15:27:57 首次发布