0

I am trying from last 3 days to get ZeroMQ work on windows 10, I need to integrate it with golang. I tried different solutions like install using windows installer, build using visual studios none of them worked. Finally with cmake I was able to build "libzmq" which I downloaded from "https://github.com/zeromq/libzmq". It was successfully compiled and build.

Now I am trying to build "czmq" https://github.com/zeromq/czmq but I am getting error-

Could NOT find LIBZMQ (missing: LIBZMQ_LIBRARIES) 
CMake Error at CMakeLists.txt:132 (message):
libzmq not found.

From error it seems there is some link problem or path however I am unable to find the solution.

Following information is related to my system-

libzmq directory: D:\git\libzmq\bin\cmake\libzmq.pc //success using cmake

czmq directory: C:\Users\P\go\src\github.com\zeromq\czmq // fail

Environment Variables-

PKG_CONFIG_PATH = D:\git\libzmq\bin\cmake
LIBRARY_PATH = D:\git\libzmq\bin\cmake\lib\Debug
CPATH = D:\git\libzmq\include

Other info-

CMake-GUI 3.13.2
Visual Studio 2015, SDK 8.1
libzmq 4.3.0  
czmq 4.1.1 
OS windows 10

Please let me know if more information is required. Here is cmake log-

Selecting Windows SDK version to target Windows 10.0.14393.

The C compiler identification is MSVC 19.0.24215.1

The CXX compiler identification is MSVC 19.0.24215.1

Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe

Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

Detecting C compile features

Detecting C compile features - done

Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe

Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works

Detecting CXX compiler ABI info

Detecting CXX compiler ABI info - done

Detecting CXX compile features

Detecting CXX compile features - done

Could NOT find LIBZMQ (missing: LIBZMQ_LIBRARIES)

CMake Error at CMakeLists.txt:132 (message):

libzmq not found.

Configuring incomplete, errors occurred! See also "C:/Users/P/go/src/github.com/zeromq/czmq/bin/cmake/CMakeFiles/CMakeOutput.log".

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.