Ubuntu 18.04.4 编译 Paddle-Lite android-demo mask_detection 出错
Created by: fanxinkeji
试过用release v2.3 也一样
opencv4.1.0/armeabi-v7a/cmake/OpenCVModules.cmake
/opt/android-ndk-r17c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-g++ --sysroot=/opt/android-ndk-r17c/sysroot -DARM_WITH_OMP -DHPPL_STUB_FUNC -DLITE_WITH_ARM -DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK -DLITE_WITH_LINUX -DPADDLE_DISABLE_PROFILER -DPADDLE_NO_PYTHON -DPADDLE_WITH_TESTING -I/opt/android-ndk-r17c/sources/cxx-stl/llvm-libc++/include -I/opt/android-ndk-r17c/sources/cxx-stl/llvm-libc++abi/include -I/opt/android-ndk-r17c/sources/android/support/include -I/opt/android-ndk-r17c/sysroot/usr/include -I/opt/android-ndk-r17c/sysroot/usr/include/aarch64-linux-android -I../../../third_party/opencv4.1.0/arm64-v8a/include -I../../..//cxx/include -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=23 -fexceptions -frtti -std=c++11 -fopenmp -O3 -DNDEBUG -fPIE -o mask_detection.o -c mask_detection.cc
/opt/android-ndk-r17c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-g++ --sysroot=/opt/android-ndk-r17c/platforms/android-24/arch-arm64 -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=23 -fexceptions -frtti -std=c++11 -fopenmp -O3 -DNDEBUG -fPIE -pie -Wl,--gc-sections mask_detection.o -o mask_detection ../../../third_party/opencv4.1.0/arm64-v8a/libs/libopencv_imgcodecs.a ../../../third_party/opencv4.1.0/arm64-v8a/libs/libopencv_imgproc.a ../../../third_party/opencv4.1.0/arm64-v8a/libs/libopencv_core.a ../../../third_party/opencv4.1.0/arm64-v8a/3rdparty/libs/libtegra_hal.a ../../../third_party/opencv4.1.0/arm64-v8a/3rdparty/libs/liblibjpeg-turbo.a ../../../third_party/opencv4.1.0/arm64-v8a/3rdparty/libs/liblibwebp.a ../../../third_party/opencv4.1.0/arm64-v8a/3rdparty/libs/liblibpng.a ../../../third_party/opencv4.1.0/arm64-v8a/3rdparty/libs/liblibjasper.a ../../../third_party/opencv4.1.0/arm64-v8a/3rdparty/libs/liblibtiff.a ../../../third_party/opencv4.1.0/arm64-v8a/3rdparty/libs/libIlmImf.a ../../../third_party/opencv4.1.0/arm64-v8a/3rdparty/libs/libtbb.a ../../../third_party/opencv4.1.0/arm64-v8a/3rdparty/libs/libcpufeatures.a -L../../..//cxx/lib/ -lpaddle_light_api_shared /opt/android-ndk-r17c/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a /opt/android-ndk-r17c/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++abi.a -latomic -pthread -ldl -llog -lz
../../..//cxx/lib//libpaddle_light_api_shared.so: undefined reference to paddle::lite::replace_stl::ostream& paddle::lite::replace_stl::ostream::operator<< <unsigned short>(unsigned short const&)' ../../..//cxx/lib//libpaddle_light_api_shared.so: undefined reference to
paddle::lite::replace_stl::ostream& paddle::lite::replace_stl::ostream::operator<< <char [16]>(char const (&) [16])'
collect2: error: ld returned 1 exit status
Makefile:44: recipe for target 'mask_detection' failed
make: *** [mask_detection] Error 1