[zeromq-dev] Re : Massive problems running ZMQ on android
Victor Perron
victor at iso3103.net
Fri Jul 27 14:34:37 CEST 2012
OK, that's some progress. I doubt you really need ia32-libs for anything
though, but whatever.
You're not supposed to add the System.loadLibrary() call by yourself as
ZMQ.java does it already.
And about the last issue, the ""FATAL EXCEPTION: main,
java.lang.NoClassDefFoundError: org.zeromq.ZMQ" makes me think that your
classpath is not *that* well set. But that is no more of my business, I
guess ;)
On Fri, Jul 27, 2012 at 1:04 PM, <jonas.adler at epiq.se> wrote:
> I reinstalled Ubuntu (it's not my work machine, just using it to build for
> android) and got a problem that the C compiler couldn't create executables
> again but some searching on google i found that i needed "ia32-libs"
> package because i was running a x64 ubuntu and the NDK is compiled for
> 32-bit.
>
> After that 300mb package everything went just fine. I not have my zmq.jar
> and libjzmq.so ! :)
>
> So I can now confirm that it works (the compiling anyways).
>
>
> But now I've come across another problem... I assume that android zmq is
> identical to java, but when i tried an example (hwclient) I got a "FATAL
> EXCEPTION: main, java.lang.NoClassDefFoundError: org.zeromq.ZMQ."
> The only change i made to the code is "System.loadLibrary("jzmq");" at the
> top.
>
> the .jar is in /libs/ and has been added to build path and the .so is in
> /libs/armeabi/
>
> I've also added the internet permission to the android manifest.
>
> > That's weird. You run the build process in /tmp, which I chose to
> minimize
> > those issues (it's generally chmodded 777) ; for the "C compiler cannot
> > create executables" issue as non-su,
> > - did you properly remove ALL the files from the previous compilation ?
> > even the directories, the cloned gits, the tar archive, etc ?
> > - if the issue persists, can you pastebin me your config.log again ?
> >
> > On Fri, Jul 27, 2012 at 10:08 AM, <jonas.adler at epiq.se> wrote:
> >
> >> Ok i'll think about that from here on, but if i don't use a privileged
> >> user the ./conigure replies with "C compiler cannot create executables",
> >> even though it find arm-linux-androideabi-gcc
> >>
> >> > On 27/07/12 09:43, jonas.adler at epiq.se wrote:
> >> >> 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"...
> >> >
> >> > As a rule of thumb, you should never use the super user to perform the
> >> > ./configure && make steps of a compilation.
> >> >
> >> > Only make install, when you are installing to a privileged prefix
> >> (/usr,
> >> > or /usr/local), should be run as a privileged user.
> >> >
> >> > -S.
> >> >
> >> > _______________________________________________
> >> > 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/20120727/df62668b/attachment.htm>
More information about the zeromq-dev
mailing list