我尝试修复其他方法但不起作用。请帮帮我。非常感谢。
* What went wrong:
Execution failed for task ':mecab_dart:externalNativeBuildDebug'.
> Build command failed.
Error while executing process /home/lihn/Android/Sdk/cmake/3.10.2.4988404/bin/ninja with arguments {-C /home/lihn/flutter/.pub-cache/hosted/pub.dartlang.org/mecab_dart-0.1.3/android/.cxx/cmake/debug/armeabi-v7a mecab_dart}
ninja: Entering directory `/home/lihn/flutter/.pub-cache/hosted/pub.dartlang.org/mecab_dart-0.1.3/android/.cxx/cmake/debug/armeabi-v7a'
[1/17] Building CXX object CMakeFiles/mecab_dart.dir/home/lihn/flutter/.pub-cache/hosted/pub.dartlang.org/mecab_dart-0.1.3/ios/Classes/nbest_generator.cpp.o
FAILED: CMakeFiles/mecab_dart.dir/home/lihn/flutter/.pub-cache/hosted/pub.dartlang.org/mecab_dart-0.1.3/ios/Classes/nbest_generator.cpp.o
/home/lihn/Android/Sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi16 --gcc-toolchain=/home/lihn/Android/Sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/lihn/Android/Sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dmecab_dart_EXPORTS -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 -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/mecab_dart.dir/home/lihn/flutter/.pub-cache/hosted/pub.dartlang.org/mecab_dart-0.1.3/ios/Classes/nbest_generator.cpp.o -MF CMakeFiles/mecab_dart.dir/home/lihn/flutter/.pub-cache/hosted/pub.dartlang.org/mecab_dart-0.1.3/ios/Classes/nbest_generator.cpp.o.d -o CMakeFiles/mecab_dart.dir/home/lihn/flutter/.pub-cache/hosted/pub.dartlang.org/mecab_dart-0.1.3/ios/Classes/nbest_generator.cpp.o -c /home/lihn/flutter/.pub-cache/hosted/pub.dartlang.org/mecab_dart-0.1.3/ios/Classes/nbest_generator.cpp
In file included from /home/lihn/flutter/.pub-cache/hosted/pub.dartlang.org/mecab_dart-0.1.3/ios/Classes/nbest_generator.cpp:6:
In file included from /home/lihn/Android/Sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/queue:188:
In file included from /home/lihn/Android/Sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__config:215:
In file included from /home/lihn/Android/Sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/features.h:36:
/usr/include/x86_64-linux-gnu/sys/cdefs.h:41:6: error: function-like macro '__GNUC_PREREQ' is not defined
# if __GNUC_PREREQ (4, 6) && !defined _LIBC
^
/usr/include/x86_64-linux-gnu/sys/cdefs.h:54:30: error: function-like macro '__GNUC_PREREQ' is not defined
..... ^