[zeromq-dev] Trouble cross compiling zeromq for PowerPC
Jong Chen
jong.chen at nrl.navy.mil
Wed Jun 24 16:34:05 CEST 2015
Can anyone help me with errors that I'm getting cross compiling Zeromq 2.2.0
for my PowerPC?
My build machine is x86 based and running Ubuntu v14.04. I'm running a
cross compile tool chain that I built using
cross tools (v1.21.0). I specifically used the cross tools script
powerpc-e500v2-linux-gnuspe. Cross tools
generated a bunch of target specific tools named like
powerpc-e500v2-linux-gnuspe-gcc.
I'm following the directions listed here
http://lists.zeromq.org/pipermail/zeromq-dev/2011-October/013789.html
to cross compile Zeromq. The instructions mostly work for me.
The page states that I have to execute "./autogen.sh" but that is not in the
Zeromq directory.
I modified the .configure line to match my setup so it looks like
./configure --host=powerpc-unknown-linux-gnu
CC=powerpc-e500v2-linux-gnuspe-gcc \
CXX=powerpc-e500v2-linux-gnuspe-g++ --with-cpp --with-chsat
--without-documentation
During the build I get an error (see below) that states that it cannot link
with -lzmq
-----> snip <-----
checking for zmq.h... yes
checking for zmq_init in -lzmq... no
configure: error: cannot link with -lzmq, install libzmq.
Making all in src
make[1]: Entering directory `/home/chen2/work/czmq-2.2.0-ppc/src'
make all-am
make[2]: Entering directory `/home/chen2/work/czmq-2.2.0-ppc/src'
CC zauth.lo
CC zbeacon.lo
-----> snip <-----
How do I fix the error message? I'm guessing that it wants a libzmq that is
for my PowerPC target? How do I get that? Isn't that what I'm building
right now a library for Power PC? I think I'm missing something here.
Thanks,
Jong
More information about the zeromq-dev
mailing list