Log in or register to post comments

library loaded successfully but No implementation found

April 4, 2013 - 6:16am #1

 

I successfully did ndk-build, set QCAR_SDK_ROOT variable and checked library in "Order and Export" 
 
libraries are loaded successfully but I'm suffering from this error.
 
Please help me ; (
 
04-04 21:46:29.579: I/QCAR(6401): Native library libQCAR.so loaded
04-04 21:46:29.579: D/dalvikvm(6401): Trying to load lib /data/data/com.rewires.pictogram/lib/libImageTargets.so 0x427bd2d0
04-04 21:46:29.579: D/dalvikvm(6401): Added shared lib /data/data/com.rewires.pictogram/lib/libImageTargets.so 0x427bd2d0
04-04 21:46:29.579: D/dalvikvm(6401): No JNI_OnLoad found in /data/data/com.rewires.pictogram/lib/libImageTargets.so 0x427bd2d0, skipping init
04-04 21:46:29.579: I/QCAR(6401): Native library libImageTargets.so loaded
04-04 21:46:29.579: D/QCAR(6401): ImageTargets::onCreate
04-04 21:46:29.642: D/dalvikvm(6401): GC_FOR_ALLOC freed 3885K, 10% free 43999K/48647K, paused 13ms, total 14ms
04-04 21:46:29.688: W/dalvikvm(6401): No implementation found for native Lcom/rewires/pictogram/ImageTargets;.getOpenGlEsVersionNative:()I
04-04 21:46:29.688: D/AndroidRuntime(6401): Shutting down VM
04-04 21:46:29.688: W/dalvikvm(6401): threadid=1: thread exiting with uncaught exception (group=0x41d25300)
04-04 21:46:29.696: E/AndroidRuntime(6401): FATAL EXCEPTION: main
04-04 21:46:29.696: E/AndroidRuntime(6401): java.lang.UnsatisfiedLinkError: Native method not found: com.rewires.pictogram.ImageTargets.getOpenGlEsVersionNative:()I
04-04 21:46:29.696: E/AndroidRuntime(6401):  at com.rewires.pictogram.ImageTargets.getOpenGlEsVersionNative(Native Method)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at com.rewires.pictogram.ImageTargets.getInitializationFlags(ImageTargets.java:384)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at com.rewires.pictogram.ImageTargets.onCreate(ImageTargets.java:355)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at android.app.Activity.performCreate(Activity.java:5008)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at android.app.ActivityThread.access$600(ActivityThread.java:130)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at android.os.Handler.dispatchMessage(Handler.java:99)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at android.os.Looper.loop(Looper.java:137)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at android.app.ActivityThread.main(ActivityThread.java:4745)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at java.lang.reflect.Method.invokeNative(Native Method)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at java.lang.reflect.Method.invoke(Method.java:511)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
04-04 21:46:29.696: E/AndroidRuntime(6401):  at dalvik.system.NativeStart.main(Native Method)

library loaded successfully but No implementation found

November 28, 2013 - 3:25am #11

Hi,

every thing is working fine,but when i change the package name it start giving error and also change the method in Image targets class ,but no luck.

library loaded successfully but No implementation found

April 4, 2013 - 8:59am #10

Glad to help.

library loaded successfully but No implementation found

April 4, 2013 - 8:58am #9

Thank you!

problem solved

library loaded successfully but No implementation found

April 4, 2013 - 8:04am #8

Ok, right.

Now, looking at your error log, I see that you changed the package name to:

com.rewires.pictogram.ImageTargets

(instead of com.qualcomm.QCARSamples.ImageTargets);

if you do that, you need to also change ALL the function names in JNI (i.e. in ImageTargets.cpp) so that the package name is matching the function name; for instance the following function:

Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_initApplicationNative

must be renamed to:

Java_com_rewires_pictogram_ImageTargets_ImageTargets_initApplicationNative

Same for all the other native functions that start with Java_com_ ...

 

 

library loaded successfully but No implementation found

April 4, 2013 - 7:35am #7

Oh, "Terminal Emulator" is just name of android console app

Of course I tested with device Galaxy Nexus

library loaded successfully but No implementation found

April 4, 2013 - 7:32am #6

Hi,

I tried to uninstall ImageTargets by Terminal Emulator

Ok, that statement explains the issue; you canot run Vuforia apps from the Emulator, you need a real device.

 

library loaded successfully but No implementation found

April 4, 2013 - 7:15am #5

I deleted three folders, rebuilt and refreshed 

I tried to uninstall ImageTargets by Terminal Emulator by that command but there was just "wating for device" message.

so I just deleted app and relaunched from eclipse. 

But the same error occurs...

library loaded successfully but No implementation found

April 4, 2013 - 6:47am #4

I would try manually deleting the following folders from your project directory:

  • /libs
  • /obj
  • /bin

Then rebuild and refresh again.

Then I would also manually uninstall any previously installed ImageTargets APK from your device;

you can do that from the console by running this command:

adb -d uninstall com.qualcomm.QCARSamples.ImageTargets.ImageTargets

Then relaunch from Eclipse.

 

 

library loaded successfully but No implementation found

April 4, 2013 - 6:44am #3

Thank you for reply.

I deleted armeabi, armeabi-v7a folder, re-build ndk 

 

 

JinwooJeon@JinwooJeon-PC /cygdrive/c/Development/Android/vuforia-sdk-android-2-0-31/samples/com.rewires.pictogram.MainActivity
$ ndk-build
Install        : libImageTargets.so => libs/armeabi/libImageTargets.so
Install        : libQCAR.so => libs/armeabi/libQCAR.so
Install        : libImageTargets.so => libs/armeabi-v7a/libImageTargets.so
Install        : libQCAR.so => libs/armeabi-v7a/libQCAR.so
 
 
and refreshed the project. But the same error occurs.
 
can you please tell me any other suggestion for this situation?

 

library loaded successfully but No implementation found

April 4, 2013 - 6:28am #2

Hi, have you refreshed the project in Eclipse after ndk-building ?

That error message really looks like you are missing the native part of your code in the linker...

Log in or register to post comments