[zeromq-dev] Building on Windows (32 and 64 bit)

Richard_Newton at waters.com Richard_Newton at waters.com
Wed Jan 8 17:35:49 CET 2014

Hi Robin,

If you can't get the existing vs solutions to do what you want, you can always use the cmake build (CMakeLists.txt in root of sources), it should be
able to do both 32 bit and 64 bits for whatever version of visual studio you have.

You'll need to install cmake first: http://www.cmake.org/



From:	"Robin Newton" <robin.newton at linguamatics.com>
To:	zeromq-dev at lists.zeromq.org,
Date:	08/01/2014 03:44 PM
Subject:	[zeromq-dev] Building on Windows (32 and 64 bit)
Sent by:	zeromq-dev-bounces at lists.zeromq.org


I'm trying to find out about building 0MQ on Windows.

Having recently done some interesting prototyping with 0MQ on Linux
(thanks, btw) I now need to make sure that 0MQ is available for general
use in the same manner as other third party libraries used where I work.
This includes having 32-bit and 64-bit Windows builds. (I should
probably mention at this stage that I'm not really a Windows person, so
my questions will be a bit on the stupid side.)

The easy thing to do is to use the Windows installers
(http://zeromq.org/distro:microsoft-windows) to get the various files I
need onto a machine, and then copy them. However:-

(a) The latest installers are for release 4.0.1, rather than for 4.0.3.
I don't think I'd want to mix-and-match library versions even if the
headers hadn't changed.

(b) The pre-built binaries look to have been done with a different
version of Visual Studio to the one we are using for Boost. (I don't
know if this is a problem, but it's one more thing to think about.)

(c) I'd like to know in principle how to build from scratch, even if I
don't strictly need to at the moment. There's always the possibility,
after all, that we might want to tinker with the source.

The instructions at http://zeromq.org/docs:windows-installations are
perhaps less helpful than they might be. Oh, hang on: I've just spotted
the line the middle the section entitled "Git + Python + libzmq + pyzmq"
that says "Open libzmq\builds\msvc\msvc.sln in Visual C++ and build the
solution." Perhaps if I just ignore all the git/Python stuff, and just
go with that. Back in a two ticks...

... if I open msvc.sln I can only do 32-bit builds, but if use
msvc10.sln then I get the choice of Win32 and x64 as targets in the
Configuration Manager ... and I can do Release builds for both.
(Incidentally, this is using Visual Studio Professional 2012, and
allowing it to upgrade the project files.)

Yes, that all looks quite plausible. Thanks for listening; you've been
very helpful. There's nothing I've missed, is there?

zeromq-dev mailing list
zeromq-dev at lists.zeromq.org

The information in this email is confidential, and is intended solely for the addressee(s). 
Access to this email by anyone else is unauthorized and therefore prohibited.  If you are 
not the intended recipient you are notified that disclosing, copying, distributing or taking 
any action in reliance on the contents of this information is strictly prohibited and may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140108/40db6828/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140108/40db6828/attachment.gif>

More information about the zeromq-dev mailing list