Difference between revisions of "Mosquitto from Source"
Jump to navigation
Jump to search
| Line 20: | Line 20: | ||
** <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> | ||
* # '''For testeng''' | |||
** <code>git clone https://gitlab.com/cunity/cunit.git</code> | |||
** <code>mkdir local-build</code> | |||
** <code>cd local-build</code> | |||
** <code>cmake ..</code> | |||
** <code>cmake --build .</code> | |||
** <code>sudo make install</code> | |||
** <code>cd ../..</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> | ||
Revision as of 18:26, 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/cJSONcd cJSONmkdir buildcd buildcmake ..makesudo make installcd ../..
- # uthash / utlist
git clone https://github.com/troydhanson/uthashcp uthash/src/* mosquitto/include
- # For testeng
git clone https://gitlab.com/cunity/cunit.gitmkdir local-buildcd local-buildcmake ..cmake --build .sudo make installcd ../..
Build it:
cd mosquittomake
Install it:
sudo make install
To be done:
Configure it:
Use it: