[zeromq-dev] How to build CZMQ in Windows?

Osiris Pedroso opedroso at gmail.com
Wed Mar 9 11:16:37 CET 2016


I need instructions on how to build CZMQ in Windows.

I have DevStudio 2013.
I have successfully built libzmq on a parallel dir (g:\libzmq) using CMAKE
steps:
mkdir cmake-make
cd cmake-make
cmake ..

This gives me the following library built:
 g:\> dir/s/b *.lib
g:\libzmq\cmake-make\lib\Debug\libzmq-v120-mt-gd-4_2_0.lib
g:\libzmq\cmake-make\lib\Debug\libzmq-static-v120-mt-sgd-4_2_0.lib

To build CZMQ then I did these steps
 g:\czmq> g:\czmq\builds\msvc\configure.bat
Configuring CZMQ...
Building with libzmq
Building without uuid
Building without systemd
Building without draft API (stable + legacy API)

Attempting to build #1:
==================
 g:\czmq> g:\czmq\builds\msvc\vs2013\build.bat
Building without uuid
Building without systemd
Building CZMQ... ()
Platform=x86
Configuration=DynDebug
*** ERROR, build terminated early: see build.log
Build.log indicates that this script cannot be run from main dir.

Attempting to build #2:
==================
 g:\czmq\builds\msvc\vs2013> build.bat
Building without uuid
Building without systemd
Building CZMQ... ()
Platform=x86
Configuration=DynDebug
*** ERROR, build terminated early: see build.log (attached)

Attempting to build #3:
=================
I also opened the solution file like this:
g:\czmq\builds\msvc\vs2013> czmq.sln

When attempting to build, it compiles but fails with this error:
1>LINK : fatal error LNK1104: cannot open file 'libzmq.lib'

The full output is in the attached Output-Build.txt file (attached).

Appreciate any tips,
Osiris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160309/6d664939/attachment.htm>
-------------- next part --------------
���1>------ Build started: Project: libczmq, Configuration: DebugDLL Win32 ------
1>  ConfigurationType : DynamicLibrary
1>  Configuration     : DebugDLL
1>  PlatformToolset   : v120
1>  TargetPath        : g:\czmq\builds\msvc\vs2013\libczmq\..\..\..\..\bin\Win32\Debug\v120\dynamic\libczmq.dll
1>  Will copy g:\czmq\builds\msvc\vs2013\libczmq\..\..\platform.h -> g:\czmq\builds\msvc\vs2013\libczmq\..\..\..\..\include\platform.h
1>  Linkage-libzmq: dynamic
1>          1 file(s) copied.
1>  zactor.c
1>  zarmour.c
1>  zcert.c
1>  zcertstore.c
1>  zchunk.c
1>  zclock.c
1>  zconfig.c
1>  zdigest.c
1>  zdir.c
1>  zdir_patch.c
1>  zfile.c
1>  zframe.c
1>  zhash.c
1>  zhashx.c
1>  ziflist.c
1>  zlist.c
1>  zlistx.c
1>  zloop.c
1>  zmsg.c
1>  zpoller.c
1>  zproc.c
1>  zsock.c
1>  zstr.c
1>  ztrie.c
1>  zuuid.c
1>  zauth.c
1>  zbeacon.c
1>  zgossip.c
1>  zmonitor.c
1>  zproxy.c
1>  zrex.c
1>  zsys.c
1>  zgossip_msg.c
1>  zauth_v2.c
1>  zbeacon_v2.c
1>  zctx.c
1>  zmonitor_v2.c
1>  zmutex.c
1>  zproxy_v2.c
1>  zsocket.c
1>  zsockopt.c
1>  zthread.c
1>LINK : fatal error LNK1104: cannot open file 'libzmq.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 236 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160309/6d664939/attachment.obj>


More information about the zeromq-dev mailing list