You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for pointing to install. After setting environment variables, I get the following error (seems like :
android_native_app_glue.c:233: error: undefined reference to 'android_main' is the issue).. Am I missing a library ?
Android NDK: android-9 is unsupported. Using minimum supported version android-14.
Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersion 1 in src/main/AndroidManifest.xml. NDK binaries will not be comptible with devices older than android-14. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.
[armeabi] Prebuilt : libopencv_java3.so <= /Users/rajan/opencv/sdk//native/jni/../libs/armeabi/
[armeabi] Install : libopencv_java3.so => libs/armeabi/libopencv_java3.so
[armeabi] Compile++ thumb: visionpipeline <= crvimage.cpp
[armeabi] Compile++ thumb: visionpipeline <= timeutil.cpp
[armeabi] Compile++ thumb: visionpipeline <= normroi2.cpp
[armeabi] Compile++ thumb: visionpipeline <= facedetection.cpp
[armeabi] Compile++ thumb: visionpipeline <= visionpipeline.cpp
[armeabi] Compile++ thumb: visionpipeline <= visionpipeline_jni.cpp
[armeabi] Compile thumb : android_native_app_glue <= android_native_app_glue.c
[armeabi] StaticLibrary : libandroid_native_app_glue.a
[armeabi] SharedLibrary : libvisionpipeline.so
/Users/rajan/Library/Android/sdk/ndk-bundle/sources/android/native_app_glue/android_native_app_glue.c:233: error: undefined reference to 'android_main'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [src/main/obj/local/armeabi/libvisionpipeline.so] Error 1
:eviacam:ndkBuild FAILED
FAILURE: Build failed with an exception.
The text was updated successfully, but these errors were encountered:
Not sure why this happens it seems that compiles fine but fails at link time. Which NDK version are you using? In my case is android-ndk-r13b. Did you try to google the error?
Note that you just need to export one environment variable (OPENCV_ANDROID_SDK), and that such variable should be visible in Android Studio.
Finally, it seems you are on a Mac. It should work just fine, but I never tried to compile the project on a Mac.
Thanks for pointing to install. After setting environment variables, I get the following error (seems like :
android_native_app_glue.c:233: error: undefined reference to 'android_main' is the issue).. Am I missing a library ?
Android NDK: android-9 is unsupported. Using minimum supported version android-14.
Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersion 1 in src/main/AndroidManifest.xml. NDK binaries will not be comptible with devices older than android-14. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.
[armeabi] Prebuilt : libopencv_java3.so <= /Users/rajan/opencv/sdk//native/jni/../libs/armeabi/
[armeabi] Install : libopencv_java3.so => libs/armeabi/libopencv_java3.so
[armeabi] Compile++ thumb: visionpipeline <= crvimage.cpp
[armeabi] Compile++ thumb: visionpipeline <= timeutil.cpp
[armeabi] Compile++ thumb: visionpipeline <= normroi2.cpp
[armeabi] Compile++ thumb: visionpipeline <= facedetection.cpp
[armeabi] Compile++ thumb: visionpipeline <= visionpipeline.cpp
[armeabi] Compile++ thumb: visionpipeline <= visionpipeline_jni.cpp
[armeabi] Compile thumb : android_native_app_glue <= android_native_app_glue.c
[armeabi] StaticLibrary : libandroid_native_app_glue.a
[armeabi] SharedLibrary : libvisionpipeline.so
/Users/rajan/Library/Android/sdk/ndk-bundle/sources/android/native_app_glue/android_native_app_glue.c:233: error: undefined reference to 'android_main'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [src/main/obj/local/armeabi/libvisionpipeline.so] Error 1
:eviacam:ndkBuild FAILED
FAILURE: Build failed with an exception.
The text was updated successfully, but these errors were encountered: