jzmq
jzmq copied to clipboard
libjzmq.so compiled with amd64 arch doesn't work in android
I follow this tutorial http://www.zeromq.org/build:android using my ubuntu 12.04 64bit, then I put zmq.jar file in the libs/ directory and libjzmq.so file in libs/armeabi/. I also added the jar file to the build path. When I call the first method of ZMQ library, the application crashes giving this output:
E/AndroidRuntime(1479): FATAL EXCEPTION: main E/AndroidRuntime(1479): java.lang.NoClassDefFoundError: org.zeromq.ZMQ E/AndroidRuntime(1479): at onPhotoTaken(App.java:150) E/AndroidRuntime(1479): at onActivityResult(App.java:118) E/AndroidRuntime(1479): at android.app.Activity.dispatchActivityResult(Activity.java:5192) E/AndroidRuntime(1479): at android.app.ActivityThread.deliverResults(ActivityThread.java:3137) E/AndroidRuntime(1479): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3184) E/AndroidRuntime(1479): at android.app.ActivityThread.access$1100(ActivityThread.java:130) E/AndroidRuntime(1479): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243) E/AndroidRuntime(1479): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(1479): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime(1479): at android.app.ActivityThread.main(ActivityThread.java:4745) E/AndroidRuntime(1479): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(1479): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(1479): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) E/AndroidRuntime(1479): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) E/AndroidRuntime(1479): at dalvik.system.NativeStart.main(Native Method)
After a lot of attempts, I have compiled the library on Ubuntu 12.04 32bit and it works.
Sorry, I use Windows, can't help you here. Maybe post on the 0MQ list?
@impullz you said this issue was fixed after you compiled it with a 32bit OS. I am having the same issues as you had. I compiled the library both under 64bit Ubuntu 12.04 and 32bit but even with the 32bit version I'm getting the same results.
Is there something I'm missing?
Update: I ended up using jeromq.