[zeromq-dev] Re : Massive problems running ZMQ on android
jonas.adler at epiq.se
jonas.adler at epiq.se
Fri Jul 27 09:43:54 CEST 2012
I think i've found something. If I use sudo <configure> i get that
arm-linux-androideabi-gcc isnt found, but when i dont use sudo and it is
found, i get "C compiler cannot create executables"...
arm-linux-androideabi-gcc -> works
sudo arm-linux-androideabi-gcc -> command not found
> I don't know what happens then with your configuration. Again, from your
> config.log:
>
> 1.
> 2. PATH: /usr/local/sbin
> 3. PATH: /usr/local/bin
> 4. PATH: /usr/sbin
> 5. PATH: /usr/bin
> 6. PATH: /sbin
> 7. PATH: /bin
> 8.
> 9.
> 10. ## ----------- ##
> 11. ## Core tests. ##
> 12. ## ----------- ##
> 13.
> 14. configure:2454: checking for a BSD-compatible install
> 15. configure:2522: result: /usr/bin/install -c
> 16. configure:2533: checking whether build environment is sane
> 17. configure:2583: result: yes
> 18. *configure:2632: checking for arm-linux-androideabi-strip*
> 19. *configure:2662: result: no*
> 20. configure:2672: checking for strip
> 21. configure:2688: found /usr/bin/strip
> 22. configure:2699: result: strip
> 23. configure:2724: checking for a thread-safe mkdir -p
> 24. configure:2763: result: /bin/mkdir -p
> 25. configure:2776: checking for gawk
> 26. configure:2806: result: no
> 27. configure:2776: checking for mawk
> 28. configure:2792: found /usr/bin/mawk
> 29. configure:2803: result: mawk
> 30. configure:2814: checking whether make sets $(MAKE)
> 31. configure:2836: result: yes
> 32. configure:2911: checking how to create a ustar tar archive
> 33. configure:2924: tar --version
> 34. tar (GNU tar) 1.26
> 35. Copyright (C) 2011 Free Software Foundation, Inc.
> 36. License GPLv3+: GNU GPL version 3 or later <
> http://gnu.org/licenses/gpl.html>.
> 37. This is free software: you are free to change and redistribute it.
> 38. There is NO WARRANTY, to the extent permitted by law.
> 39.
> 40. Written by John Gilmore and Jay Fenlason.
> 41. configure:2927: $? = 0
> 42. configure:2967: tardir=conftest.dir && eval tar --format=ustar -chf
> - "$tardir" >conftest.tar
> 43. configure:2970: $? = 0
> 44. configure:2974: tar -xf - <conftest.tar
> 45. configure:2977: $? = 0
> 46. configure:2990: result: gnutar
> 47. configure:3039: checking build system type
> 48. configure:3053: result: x86_64-unknown-linux-gnu
> 49. configure:3073: checking host system type
> 50. configure:3086: result: arm-unknown-linux-androideabi
> 51. configure:3127: checking how to print strings
> 52. configure:3154: result: printf
> 53. configure:3187: checking for style of include used by make
> 54. configure:3215: result: GNU
> 55. configure:3246: checking for arm-linux-androideabi-gcc
> 56. configure:3276: result: no
> 57. configure:3286: checking for gcc
> 58. configure:3302: found /usr/bin/gcc
> 59. configure:3313: result: gcc
> 60. configure:3542: checking for C compiler version
> 61. configure:3551: gcc --version >&5
> 62. gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
> 63. Copyright (C) 2011 Free Software Foundation, Inc.
> 64. This is free software; see the source for copying conditions.
> There
> is NO
> 65. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> 66.
>
>
> My config.log with the exact same autogen/configure/... suite :
>
> PATH: /opt/swig-2.0.7/bin
> PATH: /home/victor/work/bin/arm-linux-androideabi-4.4.3/bin
> PATH: /home/victor/work/bin/apache-maven-3.0.4/bin
> PATH: /home/victor/work/bin/jdk1.6.0_30/bin
> PATH: /home/victor/work/bin/android-ndk-r8
> PATH: /home/victor/work/bin/android-sdk-linux/tools
> PATH: /home/victor/work/bin/android-sdk-linux/platform-tools
> PATH: /home/victor/work/bin/eclipse
> PATH: /home/victor/bin
> PATH: /home/victor/work/bin
> PATH: /home/victor/bin
> PATH: /usr/local/sbin
> PATH: /usr/local/bin
> PATH: /usr/sbin
> PATH: /usr/bin
> PATH: /sbin
> PATH: /bin
> PATH: /usr/games
>
>
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
>
> configure:2454: checking for a BSD-compatible install
> configure:2522: result: /usr/bin/install -c
> configure:2533: checking whether build environment is sane
> configure:2583: result: yes
> configure:2632: checking for arm-linux-androideabi-strip
> configure:2648: found
> /home/victor/work/bin/arm-linux-androideabi-4.4.3/bin/arm-linux-androideabi-strip
> configure:2659: result: arm-linux-androideabi-strip
> configure:2724: checking for a thread-safe mkdir -p
> configure:2763: result: /bin/mkdir -p
> configure:2776: checking for gawk
> configure:2792: found /usr/bin/gawk
> configure:2803: result: gawk
> configure:2814: checking whether make sets $(MAKE)
> configure:2836: result: yes
> configure:2911: checking how to create a ustar tar archive
> configure:2924: tar --version
> tar (GNU tar) 1.26
> Copyright (C) 2011 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html
>>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by John Gilmore and Jay Fenlason.
> configure:2927: $? = 0
> configure:2967: tardir=conftest.dir && eval tar --format=ustar -chf -
> "$tardir" >conftest.tar
> configure:2970: $? = 0
> configure:2974: tar -xf - <conftest.tar
> configure:2977: $? = 0
> configure:2990: result: gnutar
> configure:3039: checking build system type
> configure:3053: result: x86_64-unknown-linux-gnu
> configure:3073: checking host system type
> configure:3086: result: arm-unknown-linux-androideabi
> configure:3127: checking how to print strings
> configure:3154: result: printf
> configure:3187: checking for style of include used by make
> configure:3215: result: GNU
> configure:3246: checking for arm-linux-androideabi-gcc
> configure:3262: found
> /home/victor/work/bin/arm-linux-androideabi-4.4.3/bin/arm-linux-androideabi-gcc
> configure:3273: result: arm-linux-androideabi-gcc
> configure:3542: checking for C compiler version
> configure:3551: arm-linux-androideabi-gcc --version >&5
> arm-linux-androideabi-gcc (GCC) 4.4.3
> Copyright (C) 2009 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
>
> That is quite a difference ! :)
>
>
> On Fri, Jul 27, 2012 at 9:08 AM, <jonas.adler at epiq.se> wrote:
>
>> If i manually type in "arm-linux-androideabi-" and press tab twice i get
>> a
>> list of all the compilers (gcc, g++ etc), so it must be in my path.
>>
>> Also the command "arm-linux-androideabi-gcc" is executable.
>>
>> > Seems there is an issue in your PATH. From the line 83 (and the
>> others)
>> it
>> > looks like the toolchain is not found:
>> >
>> > configure:3246: checking for arm-linux-androideabi-gcc
>> > configure:3276: result: no
>> > configure:3286: checking for gcc
>> > configure:3302: found /usr/bin/gcc
>> > configure:3313: result: gcc
>> >
>> > ... and so on. In the end the compiler complains about clock_gettime()
>> and
>> > pthread_create not found, but that;s an aftereffect of not using the
>> right
>> > compiler.
>> >
>> > Could you check your $PATH ?
>> >
>> > On Wed, Jul 25, 2012 at 4:20 PM, <jonas.adler at epiq.se> wrote:
>> >
>> >> Oh i forgot to add the link to the log, I'm sorry :p
>> >>
>> >> http://pastebin.com/pWwepPdr
>> >>
>> >> > 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
>> >> > _______________________________________________
>> >> > 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
>> >
>>
>>
>> _______________________________________________
>> 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
>
More information about the zeromq-dev
mailing list