[zeromq-dev] Re : Massive problems running ZMQ on android

Victor Perron victor at iso3103.net
Wed Jul 25 16:13:28 CEST 2012


Cqn you please send me your config.log ?

BR,

On Wed, Jul 25, 2012 at 3:17 PM, <jonas.adler at epiq.se> wrote:

> I still get the same problem with zmq_init not in -lzmq.
>
> some enviroment variables that might be useful:
>
>
> PATH=/opt/android-toolchain/bin:/use/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:usr/games
>
> OUTPUT_DIR=/tmp/zeromq-android
>
> packages I installed (running ubuntu x86_64 clean install before i tried)
> was:
>  * libtool, autogen, automake
>  * gcc, gpp, gcc-multilib
>  * libc6-dev
>  * git
>
> something I'm missing?
>
> The tarball for zmq I downloaded was
> http://download.zeromq.org/zeromq-2.2.0.tar.gz
> (with wget into /tmp/. Since the wiki doesn't state where to get it i just
> took it from the download page)
>
> Also here is the config.log file the JZMQ ./config generated (with that
> LIBS"-luuid" added to the flags, as you can see on line 7)
>
> Thanks in advance.
>
> > OK, I ran the exact same sequence. Seems you are right, I have forgotten
> a
> > little word on the last configure line.
> > When it fails, the config.log says:
> >
> > 504 /tmp/myandroid/lib/libzmq.a(libzmq_la-uuid.o): In function `uuid_t':
> > 505 /tmp/zeromq-2.2.0/src/uuid.cpp:88: undefined reference to
> > `uuid_generate'
> > 506 /tmp/zeromq-2.2.0/src/uuid.cpp:89: undefined reference to
> > `uuid_unparse'
> > 507 /tmp/zeromq-2.2.0/src/uuid.cpp:88: undefined reference to
> > `uuid_generate'
> > 508 /tmp/zeromq-2.2.0/src/uuid.cpp:89: undefined reference to
> > `uuid_unparse'
> >
> > Well if you recompile jzmq with the line:
> >
> > ./configure --host=arm-linux-androideabi --prefix=$OUTPUT_DIR
> > --with-zeromq=$OUTPUT_DIR CPPFLAGS="-fPIC -I$OUTPUT_DIR/include"
> > LDFLAGS="-L$OUTPUT_DIR/lib"* LIBS="-luuid" *--disable-version
> >
> > and everything seems fine. Can you confirm it works ?
> >
> > Best regards,
> >
> > On Wed, Jul 25, 2012 at 1:30 PM, <jonas.adler at epiq.se> wrote:
> >
> >> Yes, I configured zmq before I tried to configure jzmq.
> >> My OUTPUT_DIR was set to /tmp/zeromq-android before I configured zmq.
> >>
> >> Here's a link to the script I made (from the instructions on
> >> build:android) after redoing the instructions approximate 15 times.
> >>
> >> Worth noting is that I installed the NDK and added the
> >> /opt/android-toolchain/bin to my PATH by hand, the steps i followed are
> >> at
> >> the top of this pastebin post.
> >>
> >> http://pastebin.com/iXQWCxNV
> >>
> >> Everything seems to go smooth untill the jzmq config. That is where i
> >> get
> >> the "configure: error: cannot link with -lzmq" error.
> >>
> >> Everything I did tried I did with sudo or root access.
> >>
> >> > Did you try to configure zmq or jzmq?The configure command you
> >> described
> >> > is command line for jzmq. You need first to have set the env
> >> > variable OUTPUT_DIR=/tmp/zeromq-android and then have generated zmq.
> >> > Then you should be able to launch configure for jzmq.
> >> > Regards.
> >> >
> >> > --- En date de : Mar 24.7.12, jonas.adler at epiq.se
> >> <jonas.adler at epiq.se>
> >> a
> >> > écrit :
> >> >
> >> > De: jonas.adler at epiq.se <jonas.adler at epiq.se>
> >> > Objet: [zeromq-dev] Massive problems running ZMQ on android
> >> > À: zeromq-dev at lists.zeromq.org
> >> > Date: Mardi 24 juillet 2012, 16h03
> >> >
> >> > Hello,
> >> >
> >> > I'm new to ZMQ, and trying to get it to run on android. I am however,
> >> > facing issue, after issue, after issue.
> >> >
> >> > I try to follow the official guide,
> >> (http://www.zeromq.org/build:android
> >> ),
> >> > and have gotten to the following call on my ubuntu machine:
> >> >
> >> > ./configure --host=arm-linux-androideabi --prefix=$OUTPUT_DIR
> >> > --with-zeromq=$OUTPUT_DIR CPPFLAGS="-fPIC -I$OUTPUT_DIR/include"
> >> > LDFLAGS="-L$OUTPUT_DIR/lib" --disable-version
> >> >
> >> > I get this error:
> >> >
> >> > "configure: error: cannot link with -lzmq"
> >> >
> >> > I have tried google for a few days now, but i cannot find any solution
> >> to
> >> > this that works for me.
> >> >
> >> > Some comments on other solutions i have found, that did not work for
> >> me:
> >> >
> >> > I have installed pretty much every compiler known to man, but if you
> >> have
> >> > any specific suggestions, please tell me.
> >> > I have made no alterations to the source at all, simply following the
> >> > instructions to the letter.
> >> >
> >> > Has someone else had this error? Is there something that is
> >> "understood"
> >> > in the guide, that i could be missing?
> >> >
> >> > Any help would be greatly appreciated!
> >> >
> >> > //Jonas Adler
> >> >
> >> > _______________________________________________
> >> > zeromq-dev mailing list
> >> > zeromq-dev at lists.zeromq.org
> >> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >> > _______________________________________________
> >> > zeromq-dev mailing list
> >> > zeromq-dev at lists.zeromq.org
> >> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >> >
> >>
> >>
> >
> >
> > --
> > Victor
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
>
>


-- 
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120725/ccde4784/attachment.htm>


More information about the zeromq-dev mailing list