← Back to team overview

mosquitto-dev team mailing list archive

Re: [Question #119919]: Readme to build mosquitto on Windows

 

Question #119919 on mosquitto changed:
https://answers.edge.launchpad.net/mosquitto/+question/119919

    Status: Open => Answered

Roger Light proposed the following answer:
Sorry, I forgot this still needed answering.

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
* libpcre0
* libsqlite3-devel
* libsqlite3_0
* libwrap-devel
* libwrap0
* make
* mercurial
* sqlite3 (optionally - can be used to check persistent database data)
* 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://mosquiitto.org/files/source/mosquitto-0.8.2.tar.gz
* tar zxf mosquitto-0.8.2.tar.gz
* cd mosquitto-0.8.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.

To now use the compiled mosquitto broker you need the sqlite pcre
extension dll. The easiest way to obtain this is to download one of the
mosquitto Windows binary releases.

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.

-- 
You received this question notification because you are a member of
Mosquitto Dev, which is an answer contact for mosquitto.