[zeromq-dev] Best practice for building for Windows from latest GitHub repo

Dave Meehan dave_meehan at replicated.co.uk
Fri Apr 10 10:01:13 CEST 2015


Looking for guidance on how to build the Windows libraries from the latest Git commits.  I need to use a version of ZMQ later than the currently available binaries.

I have a local repo of libzmq from github.

I also build for OS X, and in this case, I create a parallel folder and run configure on it. e.g.

git clone http://github.com/zeromq/libzmq.git
mkdir libzmq-osx-build
cd libzmq-osx-build
../libzmq/configure
make

This creates a the OS X libraries in a folder separate from the libzmq repo, and so does not dirty the repo.

For Windows, I don’t need to use Sodium, and so one of the tasks is to load up the SLN and toggle the use of Sodium, then build for the Platform/Configuration that I need.

I’m at a loss as to how to do the same trick as I do for OS X, so that those SLN changes do not dirty the libzmq repo.  Configure doesn’t seem to cope with recreating the MSVC build files in a separate folder, unless I’m just misunderstanding the command line options.

I have the libzmq repo as a submodule of my project repo, and so whilst updating libzmq can be dealt with by committing when its updated, dirtying the libzmq repo by changing the SLN is harder to deal with.

Would I be better off forking libzmq, creating a branch, and rebasing when I update libzmq for latest commits?

Can anyone provide guidance on how best to handle this situation?

Cheers
Dave


More information about the zeromq-dev mailing list