configure: error: Package requirements (libczmq > 2.0) were not met:
No package 'libczmq' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables CZMQ_CFLAGS
and CZMQ_LIBS
我有一个对czmq接口的调用: int rc = zsock_connect(updates, ("inproc://" + uuidStr).c_str());
(Note: uuidStr is of type std::string and zsock_connect expects a const char* as its second argument) 这会给编译器带来错误: error: format not a string literal and no format arguments [-Werror=format-security]
int rc = z
我正在尝试编译zmq.org上提供的ZMQ C++源代码示例(即github.com/imatix/zguide.git)。我的操作系统是xubuntu,我正确安装了ZMQ系统必备的libtool、autoconf、automake和uuid-dev包。我也安装了czmq。ZMQ本身的编译和链接都很好,库位于/usr/local/bin下。尽管如此,我还是遇到了编译错误。谷歌帮不了多少忙,我想知道是否有人知道这些错误的快速解决方案,这些错误源于缺少的头文件zmq.hpp。提前谢谢。
$./build all
hwclient.cpp
hwclient.cpp:6:19: fa
我正在为我的应用程序使用zeromq api,并且有下面提到的链接问题。我已经在我的ubuntu 12.10系统上安装了zeromq和czmq tar ball,并验证了/usr/local/include下是否存在必要的头文件(例如zmq.h)。你能告诉我为什么我会遇到这些链接问题吗?可能的解决方案是什么。我还安装了zmq c++ bindings (zmq.hpp)。
/XXXX.cpp:92: undefined reference to `zmq_poll'
CMakeFiles/dummy.dir/__/xxx_api/TheQueue.cpp.o: In function`