Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling zeroMQ (0MQ) for use on the 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.

like image 260
manlycode Avatar asked Feb 13 '11 20:02

manlycode


People also ask

What is ZeroMQ used for?

ZeroMQ is a library used to implement messaging and communication systems between applications and processes - fast and asynchronously.

Is ZeroMQ open source?

Community. Backed by a large and active open source community.

What does Zmq stand for?

ZeroMQ (also spelled ØMQ, 0MQ or ZMQ) is an asynchronous messaging library, aimed at use in distributed or concurrent applications. It provides a message queue, but unlike message-oriented middleware, a ZeroMQ system can run without a dedicated message broker; the zero in the name is for zero broker.


1 Answers

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).

like image 81
Eimantas Avatar answered Oct 23 '22 22:10

Eimantas