Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mixin_logger: ^0.1.2 android compile error #355

Open
panhs opened this issue Aug 13, 2024 · 0 comments
Open

mixin_logger: ^0.1.2 android compile error #355

panhs opened this issue Aug 13, 2024 · 0 comments

Comments

@panhs
Copy link

panhs commented Aug 13, 2024

"flutterSdkVersion": "3.16.0",
dart 3.3.0

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':mixin_logger:buildCMakeDebug[arm64-v8a]'.

Build command failed.
Error while executing process /Users/Library/Android/sdk/cmake/3.18.1/bin/ninja with arguments {-C /Users/.pub-cache/hosted/pub.flutter-io.cn/mixin_logger-0.1.2/android/.cxx/Debug/3n521f4e/arm64-v8a mixin_logger}
ninja: Entering directory /Users/.pub-cache/hosted/pub.flutter-io.cn/mixin_logger-0.1.2/android/.cxx/Debug/3n521f4e/arm64-v8a' [1/1] Linking CXX shared library /Users/Documents/git_pros/flutter-netease-music/build/mixin_logger/intermediates/cxx/Debug/3n521f4e/obj/arm64-v8a/libmixin_logger.so FAILED: /Users/Documents/git_pros/flutter-netease-music/build/mixin_logger/intermediates/cxx/Debug/3n521f4e/obj/arm64-v8a/libmixin_logger.so : && /Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-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 -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libmixin_logger.so -o /Users/Documents/git_pros/flutter-netease-music/build/mixin_logger/intermediates/cxx/Debug/3n521f4e/obj/arm64-v8a/libmixin_logger.so CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o -latomic -lm && : CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function std::__ndk1::__fs::filesystem::exists(std::__ndk1::__fs::filesystem::path const&)':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1615: undefined reference to std::__ndk1::__fs::filesystem::__status(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function std::__ndk1::__fs::filesystem::file_size(std::__ndk1::__fs::filesystem::path const&)':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1637: undefined reference to std::__ndk1::__fs::filesystem::__file_size(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function std::__ndk1::__fs::filesystem::remove(std::__ndk1::__fs::filesystem::path const&)':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1862: undefined reference to std::__ndk1::__fs::filesystem::__remove(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function std::__ndk1::__fs::filesystem::is_directory(std::__ndk1::__fs::filesystem::path const&)':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1686: undefined reference to std::__ndk1::__fs::filesystem::__status(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function std::__ndk1::__fs::filesystem::create_directories(std::__ndk1::__fs::filesystem::path const&)':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1546: undefined reference to std::__ndk1::__fs::filesystem::__create_directories(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function directory_iterator':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:2418: undefined reference to std::__ndk1::__fs::filesystem::directory_iterator::directory_iterator(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*, std::__ndk1::__fs::filesystem::directory_options)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function std::__ndk1::__fs::filesystem::directory_iterator::operator*() const':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:2446: undefined reference to std::__ndk1::__fs::filesystem::directory_iterator::__dereference() const' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function std::__ndk1::__fs::filesystem::path::filename() const':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1067: undefined reference to std::__ndk1::__fs::filesystem::path::__filename() const' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function std::__ndk1::__fs::filesystem::directory_iterator::operator++()':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:2451: undefined reference to std::__ndk1::__fs::filesystem::directory_iterator::__increment(std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function std::__ndk1::__fs::filesystem::directory_entry::__get_ft(std::__ndk1::error_code*) const':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:2272: undefined reference to std::__ndk1::__fs::filesystem::__status(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function std::__ndk1::__fs::filesystem::path::has_filename() const':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1096: undefined reference to std::__ndk1::__fs::filesystem::path::__filename() const' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In function std::__ndk1::__fs::filesystem::path::has_root_directory() const':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1084: undefined reference to `std::__ndk1::__fs::filesystem::path::__root_directory() const'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant