Xcode 在mac os x上构建libzmq
我尝试使用ZMQ库来实现Python和C++代码之间的通信。 我从下载了源zip,并使用VisualStudio2010为windows构建了它 我还需要支持MAX OS X。因此,我使用xcode尝试了上述相同的过程Xcode 在mac os x上构建libzmq,xcode,macos,compilation,zeromq,Xcode,Macos,Compilation,Zeromq,我尝试使用ZMQ库来实现Python和C++代码之间的通信。 我从下载了源zip,并使用VisualStudio2010为windows构建了它 我还需要支持MAX OS X。因此,我使用xcode尝试了上述相同的过程 -> I downloaded the code from http://zeromq.org/area:download "POSIX tarball". -> extract content of zeromq-4.0.4.tar.gz which is down
-> I downloaded the code from http://zeromq.org/area:download "POSIX tarball".
-> extract content of zeromq-4.0.4.tar.gz which is downloaded in the above step
-> created the project on xcode
-> included all the files from zeromq-4.0.4/src and zeromq-4.0.4/inc in the xcode project
-> build
Xcode在编译时出错,即poller.hpp 77文件中的浏览器不受支持
我试图从zmq网站上理解,但我无法建立它
有人能帮我为MacOSX构建静态库吗
谢谢。在您参考的zeromq下载页面上: 在类UNIX系统上构建 如果您有自由选择,最适合使用的操作系统 ZeroMQ可能是Ubuntu 确保已安装libtool、autoconf和automake。检查 无论是uuid开发包、uuid/e2fsprogs RPM还是您的 系统已安装。解压缩.tar.gz源文件。跑 ./configure,后跟make。要在系统范围内安装ZeroMQ,请运行sudo 进行安装。在Linux上,在安装ZeroMQ后运行sudo ldconfig。到 请参阅配置选项,运行./configure-help。阅读并安装 更多细节 非常清楚地告诉您,在MacOSX上编译使用automake/autoconf。安装Xcode命令行工具并执行简单的./configure-enable static&&make来构建静态库,而不是将文件导入Xcode。配置脚本将为您生成正确的标题。这几乎是大多数使用automake/autoconf的库的默认构建方式…仅使用cmake描述: 我2次测试失败,1次异常,另一次超时。 但除了ldconfig不在Mac上之外,构建是正常的,所以需要使用dyld 我不确定这部分 但它似乎奏效了
另外,Read INSTALL没有提供太多信息到目前为止,通过对原始代码进行一些更改,问题得到了解决。->在src文件夹中添加了名为platform.hpp->with define XMQ_HAVE_OSXHey的新文件。我不确定我的OSx上是否有uuid dev包、uuid/e2fsprogs RPM或等效文件!在我把安装搞得一团糟之前,你能帮忙吗。。在我的OSx 10.9上安装zeromq。
git clone https://github.com/zeromq/libzmq
mkdir cmake-build && cd cmake-build
cmake .. && make -j 4
make test && make install && sudo ldconfig