By FabioLima
on Tue, 07/16/2013 - 23:31
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
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:
Help me with configuration Android NDK
Help me with configuration Android NDK
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
Worked.
Thanks!!
Help me with configuration Android NDK
Great.