Difference between revisions of "Mosquitto from Source"
Jump to navigation
Jump to search
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 <nowiki>https://github.com/DaveGamble/cJSON</nowiki></code> | ||
** <code>cd cJSON</code> | ** <code>cd cJSON</code> | ||
** <code>mkdir build</code> | ** <code>mkdir build</code> | ||
Line 15: | Line 15: | ||
** <code>sudo make install</code> | ** <code>sudo make install</code> | ||
* # '''uthash / utlist''' | * # '''uthash / utlist''' | ||
** <code>git clone https://github.com/troydhanson/uthash</code> | ** <code>git clone <nowiki>https://github.com/troydhanson/uthash</nowiki></code> | ||
* # '''pthreads''' | * # '''pthreads''' | ||
* # built in? | * # built in? |
Revision as of 16:13, 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: