Open CheungBH opened 2 years ago
Have you modified the package name of the demo, or whether other models are normal, or only this error?
I haven't modified anything. I just built it after cloning it. Other models are normal. It seems that only this was missed.
Hello. I am running your latest demo but it failed. Could you tell me how to fixed it?
Build command failed. Error while executing process /home/hkuit164/Android/Sdk/cmake/3.10.2.4988404/bin/ninja with arguments {-C /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/.cxx/cmake/debug/arm64-v8a yolov5} ninja: Entering directory
/home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/.cxx/cmake/debug/arm64-v8a' [1/1] Linking CXX shared library /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/build/intermediates/cmake/debug/obj/arm64-v8a/libyolov5.so FAILED: /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/build/intermediates/cmake/debug/obj/arm64-v8a/libyolov5.so : && /home/hkuit164/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android24 --gcc-toolchain=/home/hkuit164/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/hkuit164/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fopenmp -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -Wl,--build-id -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -static-openmp -shared -Wl,-soname,libyolov5.so -o /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/build/intermediates/cmake/debug/obj/arm64-v8a/libyolov5.so CMakeFiles/yolov5.dir/DBFace.cpp.o CMakeFiles/yolov5.dir/ENet.cpp.o CMakeFiles/yolov5.dir/FaceLandmark.cpp.o CMakeFiles/yolov5.dir/MbnFCN.cpp.o CMakeFiles/yolov5.dir/MobileNetV3Seg.cpp.o CMakeFiles/yolov5.dir/NanoDet.cpp.o CMakeFiles/yolov5.dir/SimplePose.cpp.o CMakeFiles/yolov5.dir/Yolact.cpp.o CMakeFiles/yolov5.dir/YoloV4.cpp.o CMakeFiles/yolov5.dir/YoloV5.cpp.o CMakeFiles/yolov5.dir/YoloV5CustomLayer.cpp.o CMakeFiles/yolov5.dir/jni_interface.cpp.o CMakeFiles/yolov5.dir/ocr/NCNNDBNet.cpp.o CMakeFiles/yolov5.dir/ocr/RRLib.cpp.o CMakeFiles/yolov5.dir/ocr/ZUtil.cpp.o CMakeFiles/yolov5.dir/ocr/clipper.cpp.o CMakeFiles/yolov5.dir/ocr/ocr.cpp.o /home/hkuit164/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/24/liblog.so /home/hkuit164/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/24/libvulkan.so /home/hkuit164/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/24/libandroid.so /home/hkuit164/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/24/libjnigraphics.so /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/opencv/arm64-v8a/libopencv_java4.so /home/hkuit164/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/24/liblog.so /home/hkuit164/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/24/libvulkan.so /home/hkuit164/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/24/libandroid.so /home/hkuit164/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/24/libjnigraphics.so /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/ncnnvulkan/arm64-v8a/libncnn.a /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/ncnnvulkan/arm64-v8a/libglslang.a /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/ncnnvulkan/arm64-v8a/libSPIRV.a /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/ncnnvulkan/arm64-v8a/libOGLCompiler.a /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/ncnnvulkan/arm64-v8a/libOSDependent.a -latomic -lm && : CMakeFiles/yolov5.dir/jni_interface.cpp.o: In function
Java_com_wzt_yolov5_LightOpenPose_init': /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/jni_interface.cpp:(.text.Java_com_wzt_yolov5_LightOpenPose_init+0xc): undefined reference toLightOpenPose::detector' /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/jni_interface.cpp:(.text.Java_com_wzt_yolov5_LightOpenPose_init+0x10): undefined reference to
LightOpenPose::detector' /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/jni_interface.cpp:621: undefined reference toLightOpenPose::~LightOpenPose()' /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/jni_interface.cpp:626: undefined reference to
LightOpenPose::LightOpenPose(AAssetManager, bool)' CMakeFiles/yolov5.dir/jni_interface.cpp.o: In functionJava_com_wzt_yolov5_LightOpenPose_detect': /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/jni_interface.cpp:632: undefined reference to
LightOpenPose::detector' /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/jni_interface.cpp:632: undefined reference toLightOpenPose::detector' /home/hkuit164/Documents/YOLOv5_NCNN/android_YOLOV5_NCNN/app/src/main/cpp/jni_interface.cpp:632: undefined reference to
LightOpenPose::detect(_JNIEnv, _jobject*)' clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.