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 cmake</code> | * <code>apt install git build-essential autoconf cmake</code> | ||
'''<span style="color: rgb(132, 63, 161);">Get the source:</span>''' | |||
'''<span style="color: rgb(132, 63, 161);" >Get the source:</span>''' | |||
* <code>git clone <nowiki>https://github.com/eclipse/mosquitto.git</nowiki></code> | * <code>git clone <nowiki>https://github.com/eclipse/mosquitto.git</nowiki></code> | ||
'''<span style="color: rgb(132, 63, 161);">The prerequisites:</span>''' | |||
'''<span style="color: rgb(132, 63, 161);" >The prerequisites:</span>''' | |||
* <code>apt install libc-ares-dev libwebsockets-dev libssl-dev xsltproc docbook-xsl libsystemd-dev libwrap0-dev openssl</code> | * <code>apt install libc-ares-dev libwebsockets-dev libssl-dev xsltproc docbook-xsl libsystemd-dev libwrap0-dev openssl</code> | ||
* # | * # '''cJSON''' | ||
** <code>git clone <nowiki>https://github.com/DaveGamble/cJSON</nowiki></code> | ** <code>git clone <nowiki>https://github.com/DaveGamble/cJSON</nowiki></code> | ||
** <code>cd cJSON</code> | ** <code>cd cJSON</code> | ||
Line 19: | Line 17: | ||
** <code>sudo make install</code> | ** <code>sudo make install</code> | ||
** <code>cd ../..</code> | ** <code>cd ../..</code> | ||
* # | * # '''uthash / utlist''' | ||
** <code>git clone <nowiki>https://github.com/troydhanson/uthash</nowiki></code> | ** <code>git clone <nowiki>https://github.com/troydhanson/uthash</nowiki></code> | ||
** <code>cp uthash/src/* mosquitto/include</code> | ** <code>cp uthash/src/* mosquitto/include</code> | ||
'''<span style="color: rgb(132, 63, 161);">Build it:</span>''' | |||
'''<span style="color: rgb(132, 63, 161);" >Build it:</span>''' | |||
* <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="text-decoration: underline;" >'''<span style="color: rgb(186, 55, 42); text-decoration: underline;" >To be done:</span>'''</span> | |||
'''<span style="color: rgb(132, 63, 161);">Configure it:</span>''' | |||
'''<span style="color: rgb(132, 63, 161);" >Configure it:</span>''' | |||
'''<span style="color: rgb(132, 63, 161);" >Use it:</span>''' | '''<span style="color: rgb(132, 63, 161);">Use it:</span>''' |
Revision as of 16:56, 1 March 2024
The required tools:
apt install git build-essential autoconf cmake
Get the source:
git clone https://github.com/eclipse/mosquitto.git
The prerequisites:
apt install libc-ares-dev libwebsockets-dev libssl-dev xsltproc docbook-xsl libsystemd-dev libwrap0-dev openssl
- # cJSON
git clone https://github.com/DaveGamble/cJSON
cd cJSON
mkdir build
cd build
cmake ..
make
sudo make install
cd ../..
- # uthash / utlist
git clone https://github.com/troydhanson/uthash
cp uthash/src/* mosquitto/include
Build it:
cd mosquitto
make
Install it:
sudo make install
To be done:
Configure it:
Use it: