Difference between revisions of "Mosquitto from Source"
Jump to navigation
Jump to search
| Line 40: | Line 40: | ||
* <code>make test</code> | * <code>make test</code> | ||
or | |||
* <code>make check</code> | * <code>make check</code> | ||
'''Note:''' There are a fairly large number of tests that bring this to a grinding halt unless you comment them out. MUCH more research is needed... | '''Note:''' There are a fairly large number of tests that bring this to a grinding halt unless you comment them out. MUCH more research is needed... | ||
24/1474 tests fail... | |||
18 of those make the test procedure halt... | |||
== '''<span style="color: rgb(132, 63, 161);">Install it:</span>''' == | == '''<span style="color: rgb(132, 63, 161);">Install it:</span>''' == | ||
Revision as of 01:05, 2 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 testing
apt install python3-psutilgit clone https://gitlab.com/cunity/cunit.gitcd cunitmkdir local-buildcd local-buildcmake ..cmake --build .sudo make installcd ../..
Build it:
cd mosquittomake
Test it:
make test
or
make check
Note: There are a fairly large number of tests that bring this to a grinding halt unless you comment them out. MUCH more research is needed...
24/1474 tests fail...
18 of those make the test procedure halt...
Install it:
sudo make install