Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error #24

Open
Futuristixhub opened this issue May 12, 2021 · 4 comments
Open

Build Error #24

Futuristixhub opened this issue May 12, 2021 · 4 comments

Comments

@Futuristixhub
Copy link

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

@thomaslc66
Copy link

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

@Futuristixhub
Copy link
Author

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

@CaoGiaHieu-dev
Copy link

Hi , any update for this issue ?

@samieruashovo
Copy link

Having the same problem. Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants