ndroid NDK: WARNING:/data2/xxguo/C6D/taxiBusiness/build/jni/../../send/Android.mk:send: non-system libraries in linker flags: -lmlog    
Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
Android NDK:     current module    
[armeabi-v7a] Compile++ thumb: send <= main.cpp
Android clang version 5.0.300080  (based on LLVM 5.0.300080)
Target: armv7-none-linux-android24
Thread model: posix
InstalledDir: /usr/ndk/android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/bin
Found candidate GCC installation: /usr/ndk/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x
Selected GCC installation: /usr/ndk/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x
Candidate multilib: thumb;@thumb
Candidate multilib: armv7-a;@armv7
Candidate multilib: armv7-a/thumb;@armv7@thumb
Candidate multilib: .;
Selected multilib: armv7-a/thumb;@armv7@thumb
 "/usr/ndk/android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++" -cc1 -triple thumbv7-none-linux-android24 -S -disable-free -disable-llvm-verifier -discard-value-names -main-file-name main.cpp -mrelocation-model pic -pic-level 1 -pic-is-pie -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -no-integrated-as -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu cortex-a8 -target-feature +soft-float-abi -target-feature -fp-only-sp -target-feature +d16 -target-feature +vfp3 -target-feature -fp16 -target-feature -vfp4 -target-feature -fp-armv8 -target-feature -neon -target-feature -crypto -target-abi aapcs-linux -mfloat-abi soft -target-linker-version 2.24 -v -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -ffunction-sections -coverage-notes-file /data2/xxguo/C6D/taxiBusiness/build/obj/local/armeabi-v7a/objs/send//data2/xxguo/C6D/taxiBusiness/build/jni/__/__/send/main.gcno -resource-dir /usr/ndk/android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/5.0.300080 -dependency-file /data2/xxguo/C6D/taxiBusiness/build/obj/local/armeabi-v7a/objs/send//data2/xxguo/C6D/taxiBusiness/build/jni/__/__/send/main.o.d -MT /data2/xxguo/C6D/taxiBusiness/build/obj/local/armeabi-v7a/objs/send//data2/xxguo/C6D/taxiBusiness/build/jni/__/__/send/main.o -MP -isystem /usr/ndk/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -D NDEBUG -I /data2/xxguo/C6D/taxiBusiness/build/jni/../../send/include -I /usr/ndk/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include -I /usr/ndk/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I /usr/ndk/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -I /data2/xxguo/C6D/taxiBusiness/build/jni -D ANDROID -D "DEBUG_TEST(fmt,arg...)=RM_SDK_LOG_ERROR(\"ERROR: \" fmt,##arg)" -D __ANDROID_API__=24 -isysroot /usr/ndk/android-ndk-r16b/sysroot -internal-isystem /usr/ndk/android-ndk-r16b/sysroot/usr/local/include -internal-isystem /usr/ndk/android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/5.0.300080/include -internal-externc-isystem /usr/ndk/android-ndk-r16b/sysroot/include -internal-externc-isystem /usr/ndk/android-ndk-r16b/sysroot/usr/include -Os -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -Werror=return-type -Wformat -Werror=format-security -std=c++1y -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /data2/xxguo/C6D/taxiBusiness/build/jni -ferror-limit 19 -fmessage-length 211 -femulated-tls -stack-protector 2 -fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /tmp/main-f94f77.s -x c++ /data2/xxguo/C6D/taxiBusiness/build/jni/../../send/main.cpp
clang -cc1 version 5.0.300080 based upon LLVM 5.0.300080 default target x86_64-unknown-linux
ignoring nonexistent directory "/usr/ndk/android-ndk-r16b/sysroot/usr/local/include"
ignoring nonexistent directory "/usr/ndk/android-ndk-r16b/sysroot/include"
#include "..." search starts here:
#include <...> search starts here:
 /data2/xxguo/C6D/taxiBusiness/build/jni/../../send/include
 /usr/ndk/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include
 /usr/ndk/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include
 /usr/ndk/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward
 /data2/xxguo/C6D/taxiBusiness/build/jni
 /usr/ndk/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi
 /usr/ndk/android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/5.0.300080/include
 /usr/ndk/android-ndk-r16b/sysroot/usr/include
End of search list.
 "/usr/ndk/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/as" -mfpu=neon -mfloat-abi=softfp -march=armv7-a -mfpu=vfpv3-d16 -I /data2/xxguo/C6D/taxiBusiness/build/jni/../../send/include -I /usr/ndk/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include -I /usr/ndk/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I /usr/ndk/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -I /data2/xxguo/C6D/taxiBusiness/build/jni --noexecstack -o /data2/xxguo/C6D/taxiBusiness/build/obj/local/armeabi-v7a/objs/send//data2/xxguo/C6D/taxiBusiness/build/jni/__/__/send/main.o /tmp/main-f94f77.s
[armeabi-v7a] Executable     : send
/data2/xxguo/C6D/taxiBusiness/build/jni/../../send/main.cpp:82: error: undefined reference to 'android_log_shouldPrintLine'
/data2/xxguo/C6D/taxiBusiness/build/jni/../../send/main.cpp:89: error: undefined reference to 'android_log_printLogLine'
/data2/xxguo/C6D/taxiBusiness/build/jni/../../send/main.cpp:64: error: undefined reference to 'android_log_format_new'
/data2/xxguo/C6D/taxiBusiness/build/jni/../../send/main.cpp:53: error: undefined reference to 'android_log_format_free'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/data2/xxguo/C6D/taxiBusiness/build/obj/local/armeabi-v7a/send] Error 1
什么原因报错