Hi,
I am new to Vuforia SDK development using Eclipse. I am trying to build ImageTargets project but facing severe path problems.
I have set path according to Vuforia configuration step 1,2,3.
I am facing problems in building native-code so in building .apk which crashes when about button is clicked.
Problem: #1
My Eclipse project builds .apk but crashes after About screen is clicked OK.
Problem: #2
$ ndk-build
Android NDK: ERROR:C:\Android\android-ndk-r8d-windows\android-ndk-r8d/jni/Androi d.mk:QCAR-prebuilt: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that C:\Android\android-ndk-r8d-windows\android-ndk-r8d/jni/. ./../../build/lib/armeabi/libQCAR.so exists or that its path is correct
/cygdrive/c/Android/android-ndk-r8d-windows/android-ndk-r8d/build/core/prebuilt- library.mk:43: *** Android NDK: Aborting . Stop.
Problem: #3)
03-07 10:04:36.645: I/dalvikvm(803): Could not find method com.qualcomm.QCAR.QCAR.requiresAlpha, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.initApplicationAR
03-07 10:04:36.645: W/dalvikvm(803): VFY: unable to resolve static method 67: Lcom/qualcomm/QCAR/QCAR;.requiresAlpha ()Z
03-07 10:04:36.655: D/dalvikvm(803): VFY: replacing opcode 0x71 at 0x000c
03-07 10:04:36.665: D/dalvikvm(803): VFY: dead code 0x000f-0067 in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.initApplicationAR ()V
03-07 10:04:36.735: I/dalvikvm(803): Could not find method com.qualcomm.QCAR.QCAR.deinit, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onDestroy
03-07 10:04:36.735: W/dalvikvm(803): VFY: unable to resolve static method 60: Lcom/qualcomm/QCAR/QCAR;.deinit ()V
03-07 10:04:36.745: D/dalvikvm(803): VFY: replacing opcode 0x71 at 0x0048
03-07 10:04:36.745: D/dalvikvm(803): VFY: dead code 0x004b-004f in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onDestroy ()V
03-07 10:04:36.745: I/dalvikvm(803): Could not find method com.qualcomm.QCAR.QCAR.onPause, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onPause
03-07 10:04:36.745: W/dalvikvm(803): VFY: unable to resolve static method 63: Lcom/qualcomm/QCAR/QCAR;.onPause ()V
03-07 10:04:36.759: D/dalvikvm(803): VFY: replacing opcode 0x71 at 0x002c
03-07 10:04:36.759: D/dalvikvm(803): VFY: dead code 0x002f-002f in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onPause ()V
03-07 10:04:36.778: I/dalvikvm(803): Could not find method com.qualcomm.QCAR.QCAR.onResume, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onResume
03-07 10:04:36.778: W/dalvikvm(803): VFY: unable to resolve static method 64: Lcom/qualcomm/QCAR/QCAR;.onResume ()V
03-07 10:04:36.778: D/dalvikvm(803): VFY: replacing opcode 0x71 at 0x0008
03-07 10:04:36.797: D/dalvikvm(803): VFY: dead code 0x000b-0023 in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.onResume ()V
03-07 10:04:36.825: I/dalvikvm(803): Could not find method com.qualcomm.QCAR.QCAR.isInitialized, referenced from method com.qualcomm.QCARSamples.ImageTargets.ImageTargets.updateRenderView
03-07 10:04:36.825: W/dalvikvm(803): VFY: unable to resolve static method 62: Lcom/qualcomm/QCAR/QCAR;.isInitialized ()Z
03-07 10:04:36.825: D/dalvikvm(803): VFY: replacing opcode 0x71 at 0x0010
03-07 10:04:36.825: D/dalvikvm(803): VFY: dead code 0x0013-0030 in Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.updateRenderView ()V
03-07 10:04:36.846: E/QCAR(803): The library libQCAR.so could not be loaded
03-07 10:04:36.846: E/QCAR(803): The library libImageTargets.so could not be loaded
03-07 10:04:36.846: D/QCAR(803): ImageTargets::onCreate
03-07 10:04:37.436: D/dalvikvm(803): GC_EXTERNAL_ALLOC freed 362K, 53% free 2886K/6023K, external 3017K/3137K, paused 105ms
03-07 10:04:38.195: W/dalvikvm(803): No implementation found for native Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.getOpenGlEsVersionNative ()I
03-07 10:04:38.205: D/AndroidRuntime(803): Shutting down VM
03-07 10:04:38.205: W/dalvikvm(803): threadid=1: thread exiting with uncaught exception (group=0x40015560)
03-07 10:04:38.245: E/AndroidRuntime(803): FATAL EXCEPTION: main
03-07 10:04:38.245: E/AndroidRuntime(803): java.lang.UnsatisfiedLinkError: getOpenGlEsVersionNative
03-07 10:04:38.245: E/AndroidRuntime(803): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getOpenGlEsVersionNative(Native Method)
03-07 10:04:38.245: E/AndroidRuntime(803): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getInitializationFlags(ImageTargets.java:384)
03-07 10:04:38.245: E/AndroidRuntime(803): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate(ImageTargets.java:355)
Can you give me solution regarding NDK> ndk-build or alternative to ndk-build.
Plz. help
Thanks in advance
Did you find the solution of that problem ? I am strugling with this from last 3 days . please email me if you have solution for the same .
hiteshchauhan1990@live.com