Hi, Depending on your needs you may also need to set up cross-compiling for different architectures which can be a pain (especially important for iOS).
I haven’t done the exact steps you’ve done below for Mac, but I did have a play with building zmq with cocoapods. I’ve set up a branch to test Cocoapods integration. See my branches on github here: https://github.com/mattconnolly/libzmq/tree/cocoapods https://github.com/mattconnolly/czmq/tree/cocoapods You can use them in a pod file, like so: pod 'ZeroMQ', :git => 'https://github.com/mattconnolly/libzmq.git', :branch => 'cocoapods' pod 'czmq', :git => 'https://github.com/mattconnolly/czmq.git', :branch => 'cocoapods' I had it working at one point, but it’s not right now I’m afraid - it’s a work in progress. I might get some time to look at it again later in the week - any help appreciated! Regards, Matt On 16 Oct 2013, at 7:06 am, Kerrigan29a <[email protected]> wrote: > I'm trying to compile libzmq and czmq statically on a Mac OSX Mountain Lion. > > To compile libzmq (3.2.4) I've used: > > ./configure --enable-static --disable-shared --prefix=/tmp/build && make > && make install > > and it worked. Then I tried to compile czmq (1.4.1): > > ./configure --enable-static --disable-shared --prefix=/tmp/build > --with-libzmq=/tmp/build && make && make install > > but in the configuration stage I got the following error: > > checking for zmq_init in -lzmq... no > configure: error: cannot link with -lzmq, install libzmq. > > It's not possible to compile both libs statically? or I'm missing something. > > > Thanks for your time. > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
