[zeromq-dev] *almost* working on Android
swilly
swilly at fsckd.com
Thu Mar 15 19:52:20 CET 2012
I've solved the issue. For anyone else wanting to know how to build
for android, the solution is in modifying soname_spec and potentially
library_names_spec in the "configure" files (although I don't think
this is needed).
This is an android problem rather than zmq.
I'll see if I can get the page revised soon, as it fails to build
currently (S_IWRITE needs to be changed to S_IWUSR in src/options.cpp
to compile for android).
-William
On Tue, Mar 13, 2012 at 20:38, swilly <swilly at fsckd.com> wrote:
> I'm terribly sorry if this double posts, but I think it was caught by
> the spam filter, and I'm now subscribed :) :
>
> I got the libraries to the point where I could load them both with a
> System.loadLibrary() call:
>
> 03-13 23:23:20.181: DEBUG/dalvikvm(1716): Trying to load lib
> /data/data/com.example/lib/libzmq.so 0x40514a08
> 03-13 23:23:20.241: DEBUG/dalvikvm(1716): Added shared lib
> /data/data/com.example/lib/libzmq.so 0x40514a08
> 03-13 23:23:20.241: DEBUG/dalvikvm(1716): No JNI_OnLoad found in
> /data/data/com.example/lib/libzmq.so 0x40514a08, skipping init
> 03-13 23:23:20.251: DEBUG/dalvikvm(1716): Trying to load lib
> /data/data/com.example/lib/libjzmq.so 0x40514a08
>
> However, I still seem to be encountering this error whenever I
> initialize a ZMQ Context:
>
> Caused by: java.lang.UnsatisfiedLinkError: Cannot load library:
> link_image[1962]: 33 could not load needed library 'libzmq.so.1'
> for 'libjzmq.so' (load_library[1104]: Library 'libzmq.so.1' not found)
>
> I have tried renaming libzmq.so to libzmq.so.1 to no avail :(
>
> Does anyone know of a fix/workaround for this issue?
>
> Thanks!
> -William
More information about the zeromq-dev
mailing list