Log in or register to post comments

Help me with configuration Android NDK

July 16, 2013 - 4:31pm #1
Hello guys,
 
I'm having trouble running any of the samples on the website.
I do all the procedure to install the Android SDK, NDK, Cygwin, set up the environment variables and does not compile. About setting environment variables, I have a question: The tutorial tells you to create a to p SDK and the NDK. Then the variable would look like this:
, C: \ Development \ Android \ android-sdk-windows \ tools \, C: \ Development \ Android \ android-ndk-r8 \
On my computer has other folder names, used only as an example.
And the error appears when compiling:
07-16 20:20:18.059: E / AndroidRuntime (18444): FATAL EXCEPTION: main
07-16 20:20:18.059: E / AndroidRuntime (18444): java.lang.UnsatisfiedLinkError: getOpenGlEsVersionNative
07-16 20:20:18.059: E / AndroidRuntime (18444): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getOpenGlEsVersionNative (Native Method)
07-16 20:20:18.059: E / AndroidRuntime (18444): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getInitializationFlags (ImageTargets.java: 383)
07-16 20:20:18.059: E / AndroidRuntime (18444): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate (ImageTargets.java: 354)
07-16 20:20:18.059: E / AndroidRuntime (18444): at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java: 1047)
07-16 20:20:18.059: E / AndroidRuntime (18444): at android.app.ActivityThread.performLaunchActivity (ActivityThread.java: 1615)
07-16 20:20:18.059: E / AndroidRuntime (18444): at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java: 1667)
07-16 20:20:18.059: E / AndroidRuntime (18444): at android.app.ActivityThread.access $ 1500 (ActivityThread.java: 117)
07-16 20:20:18.059: E / AndroidRuntime (18444): at android.app.ActivityThread $ H.handleMessage (ActivityThread.java: 935)
07-16 20:20:18.059: E / AndroidRuntime (18444): at android.os.Handler.dispatchMessage (Handler.java: 99)
07-16 20:20:18.059: E / AndroidRuntime (18444): at android.os.Looper.loop (Looper.java: 130)
07-16 20:20:18.059: E / AndroidRuntime (18444): at android.app.ActivityThread.main (ActivityThread.java: 3687)
07-16 20:20:18.059: E / AndroidRuntime (18444): at java.lang.reflect.Method.invokeNative (Native Method)
07-16 20:20:18.059: E / AndroidRuntime (18444): at java.lang.reflect.Method.invoke (Method.java: 507)
07-16 20:20:18.059: E / AndroidRuntime (18444): at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java: 867)

Can anyone help?

 

Help me with configuration Android NDK

July 17, 2013 - 12:52am #6

Great.

Help me with configuration Android NDK

July 17, 2013 - 12:08am #5

Worked.

Thanks!!

The problem was \ ImageTargets \ ImageTargetsxx-yy-zz
So it did not work, though also access the second folder.
Deletes the second, leaving: c: \ eclipse \ Vuforia \ samples \ ImageTargets

Help me with configuration Android NDK

July 16, 2013 - 11:40pm #4

Ok, the specific error has been discussed in several instances of the Forum, in particular you can have a look at this thread :

https://developer.vuforia.com/forum/android/ndk-build-error

 

Help me with configuration Android NDK

July 16, 2013 - 10:51pm #3
I made this mistake and presented.
I downloaded and pasted the folder ImageTargets for Vuforia-android-sdk \ samples
I ran the command ndk-build with cygwin and appears this error:
 
Fabio@FabioLima /cygdrive/c/Eclipse/vuforia-sdk-android-2-5-7/samples/ImageTargets-2-5-5/ImageTargets-2-5-5
$ ndk-build
Android NDK: ERROR:jni/Android.mk:QCAR-prebuilt: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that jni/../../../build/lib/armeabi/libQCAR.so exists  or that its path is correct
/cygdrive/c/Eclipse/android-ndk-r8/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Pare.

 

 

Help me with configuration Android NDK

July 16, 2013 - 10:25pm #2

Hi, the error message shows some link errors;

have you built the native code using the ndk-build command ? looks like you did not perform this step.

Also, how to compile the samples is detailed here:

https://developer.vuforia.com/resources/dev-guide/step-3-compiling-running-vuforia-sample-app

 

 

Log in or register to post comments