android build for "demo_tflite" failed
android build for "demo_tflite" failed on window 10 giving the following error:
Build command failed.
Error while executing process C:\Users\rohanbhatia\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\cmake.exe with arguments {--build C:\Users\rohanbhatia\AndroidStudioProjects\demo_tflite\app.externalNativeBuild\cmake\debug\armeabi-v7a --target jupiter_opencv_320}
[1/1] Linking CXX shared library ........\build\intermediates\cmake\debug\obj\armeabi-v7a\libjupiter_opencv_320.so
FAILED: ../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libjupiter_opencv_320.so
cmd.exe /C "cd . && C:\Users\rohanbhatia\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi23 --gcc-toolchain=C:/Users/rohanbhatia/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/rohanbhatia/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -std=gnu++11 -fexceptions -frtti -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -shared -Wl,-soname,libjupiter_opencv_320.so -o ........\build\intermediates\cmake\debug\obj\armeabi-v7a\libjupiter_opencv_320.so CMakeFiles/jupiter_opencv_320.dir/src/main/cpp/native-lib.cpp.o -landroid -llog ../../../../libs/armeabi-v7a/libopencv_java3.so ../../../../libs/armeabi-v7a/libopencv_calib3d.a ../../../../libs/armeabi-v7a/libopencv_core.a ../../../../libs/armeabi-v7a/libopencv_features2d.a ../../../../libs/armeabi-v7a/libopencv_flann.a ../../../../libs/armeabi-v7a/libopencv_highgui.a ../../../../libs/armeabi-v7a/libopencv_imgcodecs.a ../../../../libs/armeabi-v7a/libopencv_imgproc.a ../../../../libs/armeabi-v7a/libopencv_ml.a ../../../../libs/armeabi-v7a/libopencv_objdetect.a ../../../../libs/armeabi-v7a/libopencv_photo.a ../../../../libs/armeabi-v7a/libopencv_shape.a ../../../../libs/armeabi-v7a/libopencv_stitching.a ../../../../libs/armeabi-v7a/libopencv_superres.a ../../../../libs/armeabi-v7a/libopencv_video.a ../../../../libs/armeabi-v7a/libopencv_videoio.a ../../../../libs/armeabi-v7a/libopencv_videostab.a -llog -latomic -lm && cd ."
../../../../src/main/cpp/native-lib.cpp:35: error: undefined reference to 'cv::CascadeClassifier::detectMultiScale(cv::_InputArray const&, std::ndk1::vector<cv::Rect
@rohanbhatia56 Do you solve this?
@rohanbhatia56 @panmin Do you solve this?
@panmin nope
i am stuck on this as well
Do not use the latest version of NDK, try to use the version of NDK mentioned in the README which is NDK Version: r16 can be downloaded at https://developer.android.com/ndk/downloads/older_releases (16b) then rebuild your app