[zeromq-dev] CZMQ Build error.

Alexey Melnichuk mimir at newmail.ru
Wed Jul 23 13:43:14 CEST 2014

> I am trying to build CZMQ on Visual Studio 2013 and I get the following
> errors.
> Error 1 error C1083: Cannot open include file: 'sodium.h': No such file or
> directory C:\Users\Tarbo\Desktop\czmq-2.2.0\src\zcert.c 39 1 czmq
> Error 2 error LNK1104: cannot open file
> 'C:\Users\Tarbo\Desktop\czmq-2.2.0\builds\msvc\vs2013\czmq_selftest\..\..\..
> \..\..\libsodium\bin\Win32\Debug\libsodium12\libsodium.imp.lib'
> C:\Users\Tarbo\Desktop\czmq-2.2.0\builds\msvc\vs2013\czmq_selftest\LINK
> czmq_selftest
> I opened the include folder and truly, I can't find any "sodium.h" file.
> Could someone tell me how to locate the header file or how to build without
> libsodium or sodium as I tried commenting it out but the self test will then
> fail.

To build CZMQ with MSVC projects you need
Create 3 irectory for project in same directory (libzmq, libsodium [1], czmq).
Extract each project to its own directory.
Build libsodium then libzmq and then czmq.
This works for me (MSVC 10 on WinXP).

[1] https://github.com/jedisct1/libsodium

More information about the zeromq-dev mailing list