Windows
Download and run the cygwin installer from http://www.cygwin.com/
You’ll need to select the following packages to be installed from the list:
- binutils
- gcc4-core
- gcc4-gcc
- libwrap-devel
- libwrap0
- make
- mercurial
- wget
Once everything has installed, start cygwin. You now need to obtain the source for mosquitto. If you wish to compile a released version, do the following (updating the version number appropriately):
- wget http://mosquitto.org/files/source/mosquitto-0.10.2.tar.gz
- tar zxf mosquitto-0.10.2.tar.gz
- cd mosquitto-0.10.2
If you want to use the unreleased code from the repository, do the following:
- hg clone http://bitbucket.org/oojah/mosquitto
- cd mosquitto
If you already have a copy of the repository code and want to update, do the following to get the latest version:
- cd mosquitto
- hg pull -u
Compiling should now be as simple as typing “make”. Note that there will be an error when trying to create the man page documentation – this is non-critical.
You can now run mosquitto through cygwin, or if you want to run it by double clicking then you will need to place the appropriate dlls in its directory – again, see the Windows binary releases.

