Difference between revisions of "Mosquitto from Source"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
'''<span style="color: rgb(132, 63, 161);" >The required tools:</span>''' | '''<span style="color: rgb(132, 63, 161);" >The required tools:</span>''' | ||
* <code>apt install git build-essential autoconf</code> | * <code>apt install git build-essential autoconf cmake</code> | ||
'''<span style="color: rgb(132, 63, 161);" >The prerequisites:</span>''' | '''<span style="color: rgb(132, 63, 161);" >The prerequisites:</span>''' | ||
Line 7: | Line 7: | ||
* <code>apt install libc-ares-dev libwebsockets-dev libssl-dev xsltproc docbook-xsl</code> | * <code>apt install libc-ares-dev libwebsockets-dev libssl-dev xsltproc docbook-xsl</code> | ||
* # '''cJSON''' | * # '''cJSON''' | ||
* <code>git clone https://github.com/DaveGamble/cJSON</code> | ** <code>git clone https://github.com/DaveGamble/cJSON</code> | ||
* <code> | ** <code>cd cJSON</code> | ||
* <code> | ** <code>mkdir build</code> | ||
** <code>cd build</code> | |||
** <code>cmake ..</code> | |||
** <code>make</code> | |||
** <code>sudo make install</code> | |||
* # '''uthash / utlist''' | * # '''uthash / utlist''' | ||
* <code>git clone https://github.com/troydhanson/uthash | ** <code>git clone https://github.com/troydhanson/uthash</code> | ||
* # '''pthreads''' | * # '''pthreads''' | ||
* # built in? | * # built in? | ||
Line 22: | Line 25: | ||
'''<span style="color: rgb(132, 63, 161);" >Build it:</span>''' | '''<span style="color: rgb(132, 63, 161);" >Build it:</span>''' | ||
** <code>cp uthash/src/* mosquitto/include</code> | |||
* <code>cd mosquitto</code> | * <code>cd mosquitto</code> | ||
* <code>make</code> | * <code>make</code> | ||
'''<span style="color: rgb(132, 63, 161);" >Install it:</span>''' | '''<span style="color: rgb(132, 63, 161);" >Install it:</span>''' | ||
* <code>sudo make install</code> | * <code>sudo make install</code> | ||
'''<span style="color: rgb(132, 63, 161);" >Use it:</span>''' | '''<span style="color: rgb(132, 63, 161);" >Use it:</span>''' | ||
Revision as of 16:09, 1 March 2024
The required tools:
apt install git build-essential autoconf cmake
The prerequisites:
apt install libc-ares-dev libwebsockets-dev libssl-dev xsltproc docbook-xsl
- # cJSON
git clone https://github.com/DaveGamble/cJSON
cd cJSON
mkdir build
cd build
cmake ..
make
sudo make install
- # uthash / utlist
git clone https://github.com/troydhanson/uthash
- # pthreads
- # built in?
Get the source:
git clone https://github.com/eclipse/mosquitto.git
Build it:
cp uthash/src/* mosquitto/include
cd mosquitto
make
Install it:
sudo make install
Use it: