Build Error
- What went wrong: Execution failed for task ':app:externalNativeBuildDebug'.
Build command failed. Error while executing process C:\Users\Andorid\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C D:\Flutter Projects\hms\android\app.cxx\cmake\debug\armeabi-v7a native_edge_detection} ninja: Entering directory `D:\Flutter Projects\hms\android\app.cxx\cmake\debug\armeabi-v7a' [1/1] Linking CXX shared library "D:\Flutter Projects\hms\build\app\intermediates\cmake\debug\obj\armeabi-v7a\libnative_edge_detection.so" FAILED: D:/Flutter Projects/hms/build/app/intermediates/cmake/debug/obj/armeabi-v7a/libnative_edge_detection.so cmd.exe /C "cd . && C:\Users\Andorid\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi21 --gcc-toolchain=C:/Users/Andorid/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/Andorid/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -std=c++11 -Wno-error=format-security -fexceptions -frtti -DANDROID_H264 -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -Wl,--build-id -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libnative_edge_detection.so -o "D:\Flutter Projects\hms\build\app\intermediates\cmake\debug\obj\armeabi-v7a\libnative_edge_detection.so" CMakeFiles/native_edge_detection.dir/D_/Flutter_Projects/hms/ios/Classes/native_edge_detection.cpp.o CMakeFiles/native_edge_detection.dir/D_/Flutter_Projects/hms/ios/Classes/edge_detector.cpp.o ../../../../src/main/jniLibs/armeabi-v7a/libopencv_java4.so -latomic -lm && cd ." D:/Flutter Projects/hms/ios/Classes/native_edge_detection.cpp:66: error: undefined reference to 'ImageProcessor::process_image(cv::Mat, float, float, float, float, float, float, float, float)' clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.
D:/Flutter Projects/hms/ios/Classes/native_edge_detection.cpp:66: error: undefined reference to 'ImageProcessor::process_image(cv::Mat, float, float, float, float, float, float, float, float)' clang++
Seems like you have some error in the C++ lib, try to find the process_image and see if it's defined in the *.cpp and *.hpp
@thomaslc66 .cpp & .hpp both have the method process_image
Hi , any update for this issue ?
Having the same problem. Any update?