flutter-simple-edge-detection icon indicating copy to clipboard operation
flutter-simple-edge-detection copied to clipboard

Build Error

Open Futuristixhub opened this issue 4 years ago • 4 comments

  • 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.

Futuristixhub avatar May 12 '21 06:05 Futuristixhub

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 avatar May 13 '21 10:05 thomaslc66

@thomaslc66 .cpp & .hpp both have the method process_image

Futuristixhub avatar May 19 '21 08:05 Futuristixhub

Hi , any update for this issue ?

CaoGiaHieu-dev avatar Dec 03 '21 05:12 CaoGiaHieu-dev

Having the same problem. Any update?

samieruashovo avatar Jan 23 '23 14:01 samieruashovo