Discussion:
[zeromq-dev] How to build CZMQ in Windows?
Osiris Pedroso
2016-03-09 10:16:37 UTC
Permalink
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
Pieter Hintjens
2016-03-09 10:52:49 UTC
Permalink
It's in builds/msvc, and looks a lot like the libzmq build scripts. We
generate this from zproject.
Post by Osiris Pedroso
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
mkdir cmake-make
cd cmake-make
cmake ..
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)
==================
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.
==================
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)
=================
g:\czmq\builds\msvc\vs2013> czmq.sln
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
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Johan Philips
2016-03-09 11:03:33 UTC
Permalink
Post by Pieter Hintjens
It's in builds/msvc, and looks a lot like the libzmq build scripts. We
generate this from project.
Indeed. We usually give our Windows users following “HOWTO” to compile zeromq projects (such as czmq and zyre) in visual studio 2013.

Libsodium:
- download libsodium: https://github.com/jedisct1/libsodium/archive/master.zip
- unpack and rename “master” folder to “libsodium” (important to ensure referenced paths in other builds are set correctly)
- navigate to libsodium/builds/msvc/vs2013 and open libsodium.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.

ZeroMQ:
- download libzmq 4.1.2 (latest stable release, which will be used in our project): http://download.zeromq.org/zeromq-4.1.2.zip
- unpack and rename zeromq-4.1.2 folder to “libzmq” (important to ensure referenced paths in other builds are set correctly)
- navigate to libzmq/builds/msvc/vs2013 and open libzmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.

CZMQ:
- download czmq 3.0.2 (latest stable release, which will be used in our project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure referenced paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.

Zyre:
- download zyre: https://github.com/zeromq/zyre/archive/master.zip
- unpack and rename “master” folder to “zyre” (important to ensure referenced paths in other builds are set correctly)
- navigate to zyre/builds/msvc/vs2013 and open zyre.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Post by Pieter Hintjens
Post by Osiris Pedroso
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
mkdir cmake-make
cd cmake-make
cmake ..
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)
==================
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.
==================
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)
=================
g:\czmq\builds\msvc\vs2013> czmq.sln
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
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Pieter Hintjens
2016-03-09 11:08:32 UTC
Permalink
This is great.

It's gotten simpler in libzmq master as libsodium is an optional dependency.
Post by Johan Philips
Post by Pieter Hintjens
It's in builds/msvc, and looks a lot like the libzmq build scripts. We
generate this from project.
Indeed. We usually give our Windows users following “HOWTO” to compile zeromq projects (such as czmq and zyre) in visual studio 2013.
- download libsodium: https://github.com/jedisct1/libsodium/archive/master.zip
- unpack and rename “master” folder to “libsodium” (important to ensure referenced paths in other builds are set correctly)
- navigate to libsodium/builds/msvc/vs2013 and open libsodium.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download libzmq 4.1.2 (latest stable release, which will be used in our project): http://download.zeromq.org/zeromq-4.1.2.zip
- unpack and rename zeromq-4.1.2 folder to “libzmq” (important to ensure referenced paths in other builds are set correctly)
- navigate to libzmq/builds/msvc/vs2013 and open libzmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download czmq 3.0.2 (latest stable release, which will be used in our project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure referenced paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download zyre: https://github.com/zeromq/zyre/archive/master.zip
- unpack and rename “master” folder to “zyre” (important to ensure referenced paths in other builds are set correctly)
- navigate to zyre/builds/msvc/vs2013 and open zyre.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Post by Pieter Hintjens
Post by Osiris Pedroso
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
mkdir cmake-make
cd cmake-make
cmake ..
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)
==================
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.
==================
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)
=================
g:\czmq\builds\msvc\vs2013> czmq.sln
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
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Osiris Pedroso
2016-03-09 13:50:21 UTC
Permalink
Thanks Johan. That helped me to get CZMQ built.
I am interested in building Zyre as well, so thanks for the steps.

But building Zyre from master.zip currently fails with these errors using
the steps above:
..\..\..\..\src\zyre_node.c(166): error C3861: 'zsys_ipv6': identifier not
found
..\..\..\..\src\zyre_node.c(167): error C3861: 'zsys_ipv6_address':
identifier not found

CZMQ defines it, but seems like Zyre does not see it.

Are there any other configuration steps needed maybe?
Post by Pieter Hintjens
This is great.
It's gotten simpler in libzmq master as libsodium is an optional dependency.
Post by Pieter Hintjens
It's in builds/msvc, and looks a lot like the libzmq build scripts. We
generate this from project.
Indeed. We usually give our Windows users following “HOWTO” to compile
zeromq projects (such as czmq and zyre) in visual studio 2013.
https://github.com/jedisct1/libsodium/archive/master.zip
- unpack and rename “master” folder to “libsodium” (important to ensure
referenced paths in other builds are set correctly)
- navigate to libsodium/builds/msvc/vs2013 and open libsodium.sln in
VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download libzmq 4.1.2 (latest stable release, which will be used in
our project): http://download.zeromq.org/zeromq-4.1.2.zip
- unpack and rename zeromq-4.1.2 folder to “libzmq” (important to ensure
referenced paths in other builds are set correctly)
- navigate to libzmq/builds/msvc/vs2013 and open libzmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download czmq 3.0.2 (latest stable release, which will be used in our
project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure
referenced paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download zyre: https://github.com/zeromq/zyre/archive/master.zip
- unpack and rename “master” folder to “zyre” (important to ensure
referenced paths in other builds are set correctly)
- navigate to zyre/builds/msvc/vs2013 and open zyre.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Post by Pieter Hintjens
Post by Osiris Pedroso
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
Post by Pieter Hintjens
Post by Osiris Pedroso
mkdir cmake-make
cd cmake-make
cmake ..
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)
==================
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.
==================
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)
=================
g:\czmq\builds\msvc\vs2013> czmq.sln
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
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Pieter Hintjens
2016-03-09 20:18:31 UTC
Permalink
Make sure you're using CZMQ from github master; these functions were
added recently.
Post by Osiris Pedroso
Thanks Johan. That helped me to get CZMQ built.
I am interested in building Zyre as well, so thanks for the steps.
But building Zyre from master.zip currently fails with these errors using
..\..\..\..\src\zyre_node.c(166): error C3861: 'zsys_ipv6': identifier not
found
identifier not found
CZMQ defines it, but seems like Zyre does not see it.
Are there any other configuration steps needed maybe?
Post by Pieter Hintjens
This is great.
It's gotten simpler in libzmq master as libsodium is an optional dependency.
Post by Johan Philips
Post by Pieter Hintjens
It's in builds/msvc, and looks a lot like the libzmq build scripts. We
generate this from project.
Indeed. We usually give our Windows users following “HOWTO” to compile
zeromq projects (such as czmq and zyre) in visual studio 2013.
https://github.com/jedisct1/libsodium/archive/master.zip
- unpack and rename “master” folder to “libsodium” (important to ensure
referenced paths in other builds are set correctly)
- navigate to libsodium/builds/msvc/vs2013 and open libsodium.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download libzmq 4.1.2 (latest stable release, which will be used in
our project): http://download.zeromq.org/zeromq-4.1.2.zip
- unpack and rename zeromq-4.1.2 folder to “libzmq” (important to ensure
referenced paths in other builds are set correctly)
- navigate to libzmq/builds/msvc/vs2013 and open libzmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download czmq 3.0.2 (latest stable release, which will be used in our
project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure
referenced paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download zyre: https://github.com/zeromq/zyre/archive/master.zip
- unpack and rename “master” folder to “zyre” (important to ensure
referenced paths in other builds are set correctly)
- navigate to zyre/builds/msvc/vs2013 and open zyre.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Post by Pieter Hintjens
Post by Osiris Pedroso
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
mkdir cmake-make
cd cmake-make
cmake ..
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)
==================
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.
==================
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)
=================
g:\czmq\builds\msvc\vs2013> czmq.sln
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
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Osiris Pedroso
2016-03-09 20:41:52 UTC
Permalink
Using Johan instructions above, I got the code in ZIP form.

I see that these functions exist in the CZMQ source, but Zyre compilation
don't see their definition/types.

I am stuck right now.
Post by Pieter Hintjens
Make sure you're using CZMQ from github master; these functions were
added recently.
Post by Osiris Pedroso
Thanks Johan. That helped me to get CZMQ built.
I am interested in building Zyre as well, so thanks for the steps.
But building Zyre from master.zip currently fails with these errors using
..\..\..\..\src\zyre_node.c(166): error C3861: 'zsys_ipv6': identifier
not
Post by Osiris Pedroso
found
identifier not found
CZMQ defines it, but seems like Zyre does not see it.
Are there any other configuration steps needed maybe?
Post by Pieter Hintjens
This is great.
It's gotten simpler in libzmq master as libsodium is an optional dependency.
On Wed, Mar 9, 2016 at 1:03 PM, Johan Philips <
Post by Pieter Hintjens
It's in builds/msvc, and looks a lot like the libzmq build scripts.
We
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Pieter Hintjens
generate this from project.
Indeed. We usually give our Windows users following “HOWTO” to compile
zeromq projects (such as czmq and zyre) in visual studio 2013.
https://github.com/jedisct1/libsodium/archive/master.zip
- unpack and rename “master” folder to “libsodium” (important to
ensure
Post by Osiris Pedroso
Post by Pieter Hintjens
referenced paths in other builds are set correctly)
- navigate to libsodium/builds/msvc/vs2013 and open libsodium.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download libzmq 4.1.2 (latest stable release, which will be used in
our project): http://download.zeromq.org/zeromq-4.1.2.zip
- unpack and rename zeromq-4.1.2 folder to “libzmq” (important to
ensure
Post by Osiris Pedroso
Post by Pieter Hintjens
referenced paths in other builds are set correctly)
- navigate to libzmq/builds/msvc/vs2013 and open libzmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download czmq 3.0.2 (latest stable release, which will be used in
our
Post by Osiris Pedroso
Post by Pieter Hintjens
project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure
referenced paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download zyre: https://github.com/zeromq/zyre/archive/master.zip
- unpack and rename “master” folder to “zyre” (important to ensure
referenced paths in other builds are set correctly)
- navigate to zyre/builds/msvc/vs2013 and open zyre.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Post by Pieter Hintjens
Post by Osiris Pedroso
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
mkdir cmake-make
cd cmake-make
cmake ..
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)
==================
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.
==================
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)
=================
g:\czmq\builds\msvc\vs2013> czmq.sln
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
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Pieter Hintjens
2016-03-09 20:52:08 UTC
Permalink
Do you maybe have two versions of CZMQ? Zyre cannot be building and
failing just on those two functions unless it's using an old version
of CZMQ.
Post by Osiris Pedroso
Using Johan instructions above, I got the code in ZIP form.
I see that these functions exist in the CZMQ source, but Zyre compilation
don't see their definition/types.
I am stuck right now.
Post by Pieter Hintjens
Make sure you're using CZMQ from github master; these functions were
added recently.
Post by Osiris Pedroso
Thanks Johan. That helped me to get CZMQ built.
I am interested in building Zyre as well, so thanks for the steps.
But building Zyre from master.zip currently fails with these errors using
..\..\..\..\src\zyre_node.c(166): error C3861: 'zsys_ipv6': identifier not
found
identifier not found
CZMQ defines it, but seems like Zyre does not see it.
Are there any other configuration steps needed maybe?
Post by Pieter Hintjens
This is great.
It's gotten simpler in libzmq master as libsodium is an optional dependency.
On Wed, Mar 9, 2016 at 1:03 PM, Johan Philips
Post by Johan Philips
Post by Pieter Hintjens
It's in builds/msvc, and looks a lot like the libzmq build scripts. We
generate this from project.
Indeed. We usually give our Windows users following “HOWTO” to compile
zeromq projects (such as czmq and zyre) in visual studio 2013.
https://github.com/jedisct1/libsodium/archive/master.zip
- unpack and rename “master” folder to “libsodium” (important to ensure
referenced paths in other builds are set correctly)
- navigate to libsodium/builds/msvc/vs2013 and open libsodium.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download libzmq 4.1.2 (latest stable release, which will be used in
our project): http://download.zeromq.org/zeromq-4.1.2.zip
- unpack and rename zeromq-4.1.2 folder to “libzmq” (important to ensure
referenced paths in other builds are set correctly)
- navigate to libzmq/builds/msvc/vs2013 and open libzmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download czmq 3.0.2 (latest stable release, which will be used in our
project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure
referenced paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download zyre: https://github.com/zeromq/zyre/archive/master.zip
- unpack and rename “master” folder to “zyre” (important to ensure
referenced paths in other builds are set correctly)
- navigate to zyre/builds/msvc/vs2013 and open zyre.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Post by Pieter Hintjens
Post by Osiris Pedroso
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
mkdir cmake-make
cd cmake-make
cmake ..
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)
==================
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.
==================
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)
=================
g:\czmq\builds\msvc\vs2013> czmq.sln
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
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Osiris Pedroso
2016-03-09 22:33:06 UTC
Permalink
From Johan email above:
CZMQ:
- download *czmq 3.0.2* (latest stable release, which will be used in our
project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure referenced
paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Post by Pieter Hintjens
Do you maybe have two versions of CZMQ? Zyre cannot be building and
failing just on those two functions unless it's using an old version
of CZMQ.
Post by Osiris Pedroso
Using Johan instructions above, I got the code in ZIP form.
I see that these functions exist in the CZMQ source, but Zyre compilation
don't see their definition/types.
I am stuck right now.
Post by Pieter Hintjens
Make sure you're using CZMQ from github master; these functions were
added recently.
Post by Osiris Pedroso
Thanks Johan. That helped me to get CZMQ built.
I am interested in building Zyre as well, so thanks for the steps.
But building Zyre from master.zip currently fails with these errors using
..\..\..\..\src\zyre_node.c(166): error C3861: 'zsys_ipv6': identifier not
found
identifier not found
CZMQ defines it, but seems like Zyre does not see it.
Are there any other configuration steps needed maybe?
Post by Pieter Hintjens
This is great.
It's gotten simpler in libzmq master as libsodium is an optional dependency.
On Wed, Mar 9, 2016 at 1:03 PM, Johan Philips
Post by Pieter Hintjens
It's in builds/msvc, and looks a lot like the libzmq build
scripts.
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Pieter Hintjens
We
generate this from project.
Indeed. We usually give our Windows users following “HOWTO” to
compile
zeromq projects (such as czmq and zyre) in visual studio 2013.
https://github.com/jedisct1/libsodium/archive/master.zip
- unpack and rename “master” folder to “libsodium” (important to
ensure
referenced paths in other builds are set correctly)
- navigate to libsodium/builds/msvc/vs2013 and open libsodium.sln
in
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
VS2013.
- select Win32 or x64 target (preferably the same as the other
libs).
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
- build solution.
- download libzmq 4.1.2 (latest stable release, which will be used
in
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
our project): http://download.zeromq.org/zeromq-4.1.2.zip
- unpack and rename zeromq-4.1.2 folder to “libzmq” (important to
ensure
referenced paths in other builds are set correctly)
- navigate to libzmq/builds/msvc/vs2013 and open libzmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other
libs).
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
- build solution.
- download czmq 3.0.2 (latest stable release, which will be used in our
project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure
referenced paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other
libs).
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
- build solution.
- download zyre: https://github.com/zeromq/zyre/archive/master.zip
- unpack and rename “master” folder to “zyre” (important to ensure
referenced paths in other builds are set correctly)
- navigate to zyre/builds/msvc/vs2013 and open zyre.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other
libs).
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
- build solution.
Post by Pieter Hintjens
On Wed, Mar 9, 2016 at 12:16 PM, Osiris Pedroso <
Post by Osiris Pedroso
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
mkdir cmake-make
cd cmake-make
cmake ..
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
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Pieter Hintjens
Post by Osiris Pedroso
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)
==================
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.
==================
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)
=================
g:\czmq\builds\msvc\vs2013> czmq.sln
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
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Pieter Hintjens
2016-03-09 23:35:39 UTC
Permalink
I'd recommend taking all github masters unless you have a specific
reason to use an older release.
Post by Johan Philips
- download czmq 3.0.2 (latest stable release, which will be used in our
project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure referenced
paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Post by Pieter Hintjens
Do you maybe have two versions of CZMQ? Zyre cannot be building and
failing just on those two functions unless it's using an old version
of CZMQ.
Post by Osiris Pedroso
Using Johan instructions above, I got the code in ZIP form.
I see that these functions exist in the CZMQ source, but Zyre compilation
don't see their definition/types.
I am stuck right now.
Post by Pieter Hintjens
Make sure you're using CZMQ from github master; these functions were
added recently.
Post by Osiris Pedroso
Thanks Johan. That helped me to get CZMQ built.
I am interested in building Zyre as well, so thanks for the steps.
But building Zyre from master.zip currently fails with these errors using
..\..\..\..\src\zyre_node.c(166): error C3861: 'zsys_ipv6': identifier
not
found
identifier not found
CZMQ defines it, but seems like Zyre does not see it.
Are there any other configuration steps needed maybe?
Post by Pieter Hintjens
This is great.
It's gotten simpler in libzmq master as libsodium is an optional dependency.
On Wed, Mar 9, 2016 at 1:03 PM, Johan Philips
Post by Johan Philips
Post by Pieter Hintjens
It's in builds/msvc, and looks a lot like the libzmq build scripts.
We
generate this from project.
Indeed. We usually give our Windows users following “HOWTO” to
compile
zeromq projects (such as czmq and zyre) in visual studio 2013.
https://github.com/jedisct1/libsodium/archive/master.zip
- unpack and rename “master” folder to “libsodium” (important to
ensure
referenced paths in other builds are set correctly)
- navigate to libsodium/builds/msvc/vs2013 and open libsodium.sln in
VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download libzmq 4.1.2 (latest stable release, which will be used in
our project): http://download.zeromq.org/zeromq-4.1.2.zip
- unpack and rename zeromq-4.1.2 folder to “libzmq” (important to
ensure
referenced paths in other builds are set correctly)
- navigate to libzmq/builds/msvc/vs2013 and open libzmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download czmq 3.0.2 (latest stable release, which will be used in
our
project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure
referenced paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download zyre: https://github.com/zeromq/zyre/archive/master.zip
- unpack and rename “master” folder to “zyre” (important to ensure
referenced paths in other builds are set correctly)
- navigate to zyre/builds/msvc/vs2013 and open zyre.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Post by Pieter Hintjens
On Wed, Mar 9, 2016 at 12:16 PM, Osiris Pedroso
Post by Osiris Pedroso
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
mkdir cmake-make
cd cmake-make
cmake ..
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)
==================
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.
==================
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)
=================
g:\czmq\builds\msvc\vs2013> czmq.sln
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
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Osiris Pedroso
2016-03-10 11:24:52 UTC
Permalink
Got it all from masters.
I got further, but still have problems linking Zyre (all the DLL targets)
using VS2013 solutions.
Post by Pieter Hintjens
I'd recommend taking all github masters unless you have a specific
reason to use an older release.
Post by Johan Philips
- download czmq 3.0.2 (latest stable release, which will be used in our
project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure
referenced
Post by Johan Philips
paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Post by Pieter Hintjens
Do you maybe have two versions of CZMQ? Zyre cannot be building and
failing just on those two functions unless it's using an old version
of CZMQ.
Post by Osiris Pedroso
Using Johan instructions above, I got the code in ZIP form.
I see that these functions exist in the CZMQ source, but Zyre compilation
don't see their definition/types.
I am stuck right now.
Post by Pieter Hintjens
Make sure you're using CZMQ from github master; these functions were
added recently.
Post by Osiris Pedroso
Thanks Johan. That helped me to get CZMQ built.
I am interested in building Zyre as well, so thanks for the steps.
But building Zyre from master.zip currently fails with these errors using
..\..\..\..\src\zyre_node.c(166): error C3861: 'zsys_ipv6': identifier
not
found
identifier not found
CZMQ defines it, but seems like Zyre does not see it.
Are there any other configuration steps needed maybe?
Post by Pieter Hintjens
This is great.
It's gotten simpler in libzmq master as libsodium is an optional
dependency.
On Wed, Mar 9, 2016 at 1:03 PM, Johan Philips
Post by Pieter Hintjens
It's in builds/msvc, and looks a lot like the libzmq build scripts.
We
generate this from project.
Indeed. We usually give our Windows users following “HOWTO” to
compile
zeromq projects (such as czmq and zyre) in visual studio 2013.
https://github.com/jedisct1/libsodium/archive/master.zip
- unpack and rename “master” folder to “libsodium” (important to
ensure
referenced paths in other builds are set correctly)
- navigate to libsodium/builds/msvc/vs2013 and open
libsodium.sln
Post by Johan Philips
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
in
VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download libzmq 4.1.2 (latest stable release, which will be
used
Post by Johan Philips
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
in
our project): http://download.zeromq.org/zeromq-4.1.2.zip
- unpack and rename zeromq-4.1.2 folder to “libzmq” (important
to
Post by Johan Philips
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
ensure
referenced paths in other builds are set correctly)
- navigate to libzmq/builds/msvc/vs2013 and open libzmq.sln in
VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
- download czmq 3.0.2 (latest stable release, which will be used in
our
project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to ensure
referenced paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in
VS2013.
Post by Johan Philips
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
https://github.com/zeromq/zyre/archive/master.zip
Post by Johan Philips
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
- unpack and rename “master” folder to “zyre” (important to
ensure
Post by Johan Philips
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
referenced paths in other builds are set correctly)
- navigate to zyre/builds/msvc/vs2013 and open zyre.sln in
VS2013.
Post by Johan Philips
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Post by Pieter Hintjens
On Wed, Mar 9, 2016 at 12:16 PM, Osiris Pedroso
Post by Osiris Pedroso
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
mkdir cmake-make
cd cmake-make
cmake ..
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
Post by Johan Philips
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Pieter Hintjens
Post by Osiris Pedroso
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)
==================
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.
==================
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)
=================
g:\czmq\builds\msvc\vs2013> czmq.sln
When attempting to build, it compiles but fails with this
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
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Johan Philips
2016-03-10 14:44:07 UTC
Permalink
Post by Osiris Pedroso
- download *czmq 3.0.2* (latest stable release, which will be used in
our project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
This was specific for our project, it will not include the latest
functions. Follow Pieter's advice and use the master instead...
Post by Osiris Pedroso
- unpack and rename v3.0.2 folder to “czmq” (important to ensure
referenced paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in VS2013.
- select Win32 or x64 target (preferably the same as the other libs).
- build solution.
Do you maybe have two versions of CZMQ? Zyre cannot be building and
failing just on those two functions unless it's using an old version
of CZMQ.
Post by Osiris Pedroso
Using Johan instructions above, I got the code in ZIP form.
I see that these functions exist in the CZMQ source, but Zyre
compilation
Post by Osiris Pedroso
don't see their definition/types.
I am stuck right now.
Post by Pieter Hintjens
Make sure you're using CZMQ from github master; these functions were
added recently.
On Wed, Mar 9, 2016 at 3:50 PM, Osiris Pedroso
Post by Osiris Pedroso
Thanks Johan. That helped me to get CZMQ built.
I am interested in building Zyre as well, so thanks for the steps.
But building Zyre from master.zip currently fails with these
errors
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
using
identifier
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
not
found
identifier not found
CZMQ defines it, but seems like Zyre does not see it.
Are there any other configuration steps needed maybe?
Post by Pieter Hintjens
This is great.
It's gotten simpler in libzmq master as libsodium is an optional
dependency.
On Wed, Mar 9, 2016 at 1:03 PM, Johan Philips
Post by Johan Philips
Post by Pieter Hintjens
It's in builds/msvc, and looks a lot like the libzmq build
scripts.
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
Post by Pieter Hintjens
We
generate this from project.
Indeed. We usually give our Windows users following “HOWTO” to
compile
zeromq projects (such as czmq and zyre) in visual studio 2013.
https://github.com/jedisct1/libsodium/archive/master.zip
- unpack and rename “master” folder to “libsodium”
(important to
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
ensure
referenced paths in other builds are set correctly)
- navigate to libsodium/builds/msvc/vs2013 and open
libsodium.sln in
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
VS2013.
- select Win32 or x64 target (preferably the same as the
other libs).
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
- build solution.
- download libzmq 4.1.2 (latest stable release, which will
be used in
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
our project): http://download.zeromq.org/zeromq-4.1.2.zip
- unpack and rename zeromq-4.1.2 folder to “libzmq”
(important to
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
ensure
referenced paths in other builds are set correctly)
- navigate to libzmq/builds/msvc/vs2013 and open libzmq.sln in
VS2013.
- select Win32 or x64 target (preferably the same as the
other libs).
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
- build solution.
- download czmq 3.0.2 (latest stable release, which will be
used in
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
our
project): https://github.com/zeromq/czmq/archive/v3.0.2.zip
- unpack and rename v3.0.2 folder to “czmq” (important to
ensure
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
referenced paths in other builds are set correctly)
- navigate to czmq/builds/msvc/vs2013 and open czmq.sln in
VS2013.
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
- select Win32 or x64 target (preferably the same as the
other libs).
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
- build solution.
https://github.com/zeromq/zyre/archive/master.zip
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
- unpack and rename “master” folder to “zyre” (important to
ensure
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
referenced paths in other builds are set correctly)
- navigate to zyre/builds/msvc/vs2013 and open zyre.sln in
VS2013.
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
- select Win32 or x64 target (preferably the same as the
other libs).
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
- build solution.
Post by Pieter Hintjens
On Wed, Mar 9, 2016 at 12:16 PM, Osiris Pedroso
Post by Osiris Pedroso
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)
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
Post by Pieter Hintjens
Post by Osiris Pedroso
using
CMAKE
mkdir cmake-make
cd cmake-make
cmake ..
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
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
Post by Pieter Hintjens
Post by Osiris Pedroso
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)
==================
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.
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Osiris Pedroso
Post by Pieter Hintjens
Post by Johan Philips
Post by Pieter Hintjens
Post by Osiris Pedroso
==================
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)
=================
g:\czmq\builds\msvc\vs2013> czmq.sln
When attempting to build, it compiles but fails with this
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
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Loading...