minoca / os

Minoca operating system
Other
2.71k stars 231 forks source link

Add mosquitto broker to repo #131

Open Nic2012 opened 6 years ago

Nic2012 commented 6 years ago

Hi, great work with this new distro, works fine. But could y add the MQTT broker Mosquitto to the repo. I could compile it, but there are several dependencies (e.g. http://goochgooch.co.uk/2014/08/01/building-mosquitto-1-4/) needed for libwebsocket and Mosquitto that are not existing in repo.

Best reagards, Nic

ccstevens commented 6 years ago

Hi, Thanks! MQTT has been on my mind to support.

Which exact dependencies are missing? libwebsocket itself is not there, but it's dependencies are: zlib, cmake, and libopenssl (our default package has the libssl-dev files in /usr/include and /usr/lib). Are there C Library pieces missing as well for libwebsocket?

And for Mosquitto, it looks like we don't have uuid-dev, xsltproc, and docbook-xsl.

Is that your understanding as well? -Chris

Nic2012 commented 6 years ago

Hi Chris, yes according to mentioned URL, I have also read there are some dep, maybe these dep have also some dep that isnt yet in your repo. I am not a C expert, sorry and I havent compiled it on a Linux distro, but in OpenWrt, Asus-Merlin and Raspbian Jessie all have it in their repo, but always without websocket support.

But in the latest Raspbian/Linux Stretch when y install e.g. the Mosq-Broker the libwebsocket is installing automatically, which is a big progress. With incl. websocket support the Mosq. broker is able to send to Webbrowser client as well!

This http://www.steves-internet-guide.com/mqtt-websockets/ mentioned some problems with ares.h file, but he commits that http://goochgooch.co.uk/2014/08/01/building-mosquitto-1-4/ seems to work.

Best regards, Nic