Open nsyncxy opened 4 years ago
[1/1] Linking CXX shared library D:\self\chineseocr\demo\app\build\intermediates\cmake\debug\obj\arm64-v8a\libmytext.so FAILED: D:/self/chineseocr/demo/app/build/intermediates/cmake/debug/obj/arm64-v8a/libmytext.so cmd.exe /C "cd . && C:\Users\lenovo\AppData\Local\Android\Sdk\ndk\21.3.6528147\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android24 --gcc-toolchain=C:/Users/lenovo/AppData/Local/Android/Sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/lenovo/AppData/Local/Android/Sdk/ndk/21.3.6528147/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 -Wformat -Werror=format-security -frtti -fexceptions -fopenmp -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fomit-frame-pointer -fstrict-aliasing -ffunction-sections -fdata-sections -ffast-math -fexceptions -std=c++11 -fopenmp -static-openmp -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,--no-undefined -Qunused-arguments -shared -Wl,-soname,libmytext.so -o D:\self\chineseocr\demo\app\build\intermediates\cmake\debug\obj\arm64-v8a\libmytext.so CMakeFiles/mytext.dir/RRLib.cpp.o CMakeFiles/mytext.dir/mytext_jni.cpp.o CMakeFiles/mytext.dir/ocr.cpp.o D:/self/chineseocr/demo/app/src/main/cpp/../jniLibs/arm64-v8a/libncnn.a D:/self/chineseocr/demo/app/src/main/cpp/../jniLibs/arm64-v8a/libopencv_java3.so -landroid -ljnigraphics -landroid -llog -latomic -lm && cd ." D:/self/chineseocr/demo/app/src/main/cpp/../jniLibs/arm64-v8a/libncnn.a(cpu.cpp.o): In function _GLOBAL__sub_I_cpu.cpp': cpu.cpp:(.text.startup+0x74): undefined reference tofread_unlocked' cpu.cpp:(.text.startup+0xfc): undefined reference to `fgets_unlocked'
_GLOBAL__sub_I_cpu.cpp': cpu.cpp:(.text.startup+0x74): undefined reference to
[1/1] Linking CXX shared library D:\self\chineseocr\demo\app\build\intermediates\cmake\debug\obj\arm64-v8a\libmytext.so FAILED: D:/self/chineseocr/demo/app/build/intermediates/cmake/debug/obj/arm64-v8a/libmytext.so cmd.exe /C "cd . && C:\Users\lenovo\AppData\Local\Android\Sdk\ndk\21.3.6528147\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android24 --gcc-toolchain=C:/Users/lenovo/AppData/Local/Android/Sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/lenovo/AppData/Local/Android/Sdk/ndk/21.3.6528147/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 -Wformat -Werror=format-security -frtti -fexceptions -fopenmp -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fomit-frame-pointer -fstrict-aliasing -ffunction-sections -fdata-sections -ffast-math -fexceptions -std=c++11 -fopenmp -static-openmp -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,--no-undefined -Qunused-arguments -shared -Wl,-soname,libmytext.so -o D:\self\chineseocr\demo\app\build\intermediates\cmake\debug\obj\arm64-v8a\libmytext.so CMakeFiles/mytext.dir/RRLib.cpp.o CMakeFiles/mytext.dir/mytext_jni.cpp.o CMakeFiles/mytext.dir/ocr.cpp.o D:/self/chineseocr/demo/app/src/main/cpp/../jniLibs/arm64-v8a/libncnn.a D:/self/chineseocr/demo/app/src/main/cpp/../jniLibs/arm64-v8a/libopencv_java3.so -landroid -ljnigraphics -landroid -llog -latomic -lm && cd ." D:/self/chineseocr/demo/app/src/main/cpp/../jniLibs/arm64-v8a/libncnn.a(cpu.cpp.o): In function
_GLOBAL__sub_I_cpu.cpp': cpu.cpp:(.text.startup+0x74): undefined reference to
fread_unlocked' cpu.cpp:(.text.startup+0xfc): undefined reference to `fgets_unlocked'