"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Help me with configuration Android NDK

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?

 

AlessandroB

Wed, 07/17/2013 - 05:25

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:

FabioLima

Wed, 07/17/2013 - 05:51

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/vufo

FabioLima

Wed, 07/17/2013 - 07:08

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