编译 ZeroMQ (0MQ) 以在 iPhone 上使用
我正在尝试编译 Objective-C 绑定 (https://github.com/jeremy- w/objc-zmq),适用于 iPhone 上使用的 ZeroMQ。
我已将“objc-zmq”项目添加为我想要将其包含在其中的项目的依赖项。一切都会编译,但是,找不到任何符号,因为它未链接到 libzmq.a 二进制文件。
如何编译 libzmq.a 以用于 iPhone。另外,一旦我有了它,我如何将我的项目链接到它?
我尝试了这篇文章中的一些建议: Compile C lib for iPhone
但是,这些对我来说毫无结果。任何帮助将不胜感激。
I'm trying to compile the Objective-C bindings (https://github.com/jeremy-w/objc-zmq) for zeroMQ for use on the iPhone.
I've added the "objc-zmq" project as a dependency to the project I want to include it in. Everything compiles, however, none of the symbols can be found as it's not linked to the libzmq.a binary.
How do I compile libzmq.a for use with the iPhone. Also, once I have that, how do I have my project link to it?
I tried some of the suggestions from this post: Compile C lib for iPhone
However, these were rather fruitless for me. Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
包装器中的库仅针对 i386 架构(即 iPhone Simulator)构建。我写了一篇关于如何编译ARM架构库的文章以及链接将其添加到您的 iOS 项目中(然后该项目将与 objc-zmq 包装器一起使用)。
The library in the wrapper is built only for i386 architecture (i.e. iPhone Simulator). I have written an article on how to compile the library for ARM architecture as well as link it into your iOS project (which THEN will work with objc-zmq wrapper).