rive-app / rive-flutter

Flutter runtime for Rive
https://rive.app
MIT License
1.22k stars 192 forks source link

Ubuntu flutter app fails to build after 0.9.1 - 0.10.1 upgrade. Cmake compile failure undefined symbols #291

Open BPattersonRaven opened 1 year ago

BPattersonRaven commented 1 year ago

Description

I am trying to upgrade all the flutter packages in my app. When I try to upgrade Rive from 0.9.1 to 0.10.1 I can no longer build my app. These changes work on windows but not on my Ubuntu machine. I am not sure how to resolve this build issue and for now I have stuck with version 0.9.1. I do not have much experience with compiling C++ code so any help would be appreciated.

I get the following stack trace:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rive_common:buildCMakeDebug'.
> Build command failed.
  Error while executing process /home/brad/Android/Sdk/cmake/3.10.2.4988404/bin/ninja with arguments {-C /home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/android/.cxx/Debug/4o5k2g41/armeabi-v7a rive_text}
  ninja: Entering directory `/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/android/.cxx/Debug/4o5k2g41/armeabi-v7a'
  [1/1] Linking CXX shared library /home/brad/Documents/dev/hawkeye-mobile-2/build/rive_common/intermediates/cxx/Debug/4o5k2g41/obj/armeabi-v7a/librive_text.so
  FAILED: /home/brad/Documents/dev/hawkeye-mobile-2/build/rive_common/intermediates/cxx/Debug/4o5k2g41/obj/armeabi-v7a/librive_text.so 
  : && /home/brad/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi19 --sysroot=/home/brad/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC -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   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--gc-sections -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,librive_text.so -o /home/brad/Documents/dev/hawkeye-mobile-2/build/rive_common/intermediates/cxx/Debug/4o5k2g41/obj/armeabi-v7a/librive_text.so CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive_text/rive_text.cpp.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive-cpp/src/math/raw_path.cpp.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive-cpp/src/math/mat2d.cpp.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive-cpp/src/rive_counter.cpp.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive-cpp/src/renderer.cpp.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive-cpp/src/text/font_hb.cpp.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive-cpp/src/text/line_breaker.cpp.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive-cpp/src/text/text.cpp.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-blob.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-serialize.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-verify.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-common.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-draw.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-face.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-font.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-map.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-number.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-cff1-table.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-cff2-table.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-color.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-face.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-font.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-layout.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-map.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-math.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-meta.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-metrics.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-name.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-arabic.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-default.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-hangul.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-hebrew.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-indic-table.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-indic.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-khmer.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-myanmar.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-syllabic.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-thai.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-use.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-complex-vowel-constraints.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-fallback.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape-normalize.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-shape.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-tag.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ot-var.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-set.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-shape-plan.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-shape.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-shaper.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-static.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-subset-cff-common.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-subset-cff1.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-subset-cff2.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-subset-input.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-subset-plan.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-subset-repacker.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-subset.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-ucd.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-unicode.cc.o CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/SheenBidi/Source/SheenBidi.c.o  -latomic -lm && :
  ld: error: undefined symbol: __assert_fail
  >>> referenced by span.hpp:30 (../../../../../ios/rive-cpp/include/rive/span.hpp:30)
  >>>               CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive_text/rive_text.cpp.o:(rive::Span<unsigned char const>::Span(unsigned char const*, unsigned int))
  >>> referenced by span.hpp:30 (../../../../../ios/rive-cpp/include/rive/span.hpp:30)
  >>>               CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive_text/rive_text.cpp.o:(rive::Span<rive::Font::Coord>::Span(rive::Font::Coord*, unsigned int))
  >>> referenced by span.hpp:30 (../../../../../ios/rive-cpp/include/rive/span.hpp:30)
  >>>               CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive_text/rive_text.cpp.o:(rive::Span<unsigned int const>::Span(unsigned int const*, unsigned int))
  >>> referenced 758 more times

  ld: error: undefined symbol: std::__throw_length_error(char const*)
  >>> referenced by stl_vector.h:1767 (/snap/flutter/current/usr/include/c++/9/bits/stl_vector.h:1767)
  >>>               CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive_text/rive_text.cpp.o:(std::vector<rive::Font*, std::allocator<rive::Font*> >::_S_check_init_len(unsigned int, std::allocator<rive::Font*> const&))
  >>> referenced by vector.tcc:70 (/snap/flutter/current/usr/include/c++/9/bits/vector.tcc:70)
  >>>               CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive-cpp/src/math/raw_path.cpp.o:(std::vector<rive::Vec2D, std::allocator<rive::Vec2D> >::reserve(unsigned int))
  >>> referenced by vector.tcc:70 (/snap/flutter/current/usr/include/c++/9/bits/vector.tcc:70)
  >>>               CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/rive-cpp/src/math/raw_path.cpp.o:(std::vector<rive::PathVerb, std::allocator<rive::PathVerb> >::reserve(unsigned int))
  >>> referenced 8 more times

  ld: error: undefined symbol: std::__throw_system_error(int)
  >>> referenced by std_mutex.h:104 (/snap/flutter/current/usr/include/c++/9/bits/std_mutex.h:104)
  >>>               CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-blob.cc.o:(std::mutex::lock())

  ld: error: undefined symbol: stderr
  >>> referenced by hb-buffer-verify.cc:0 (/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-verify.cc:0)
  >>>               CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-verify.cc.o:(buffer_verify_error(hb_buffer_t*, hb_font_t*, char const*, ...))

  ld: error: undefined symbol: __errno_location
  >>> referenced by hb-number.cc:44 (/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-number.cc:44)
  >>>               CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-number.cc.o:(bool _parse_number<int, hb_parse_int(char const**, char const*, int*, bool)::$_3>(char const**, char const*, int*, bool, hb_parse_int(char const**, char const*, int*, bool)::$_3))
  >>> referenced by hb-number.cc:46 (/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-number.cc:46)
  >>>               CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-number.cc.o:(bool _parse_number<int, hb_parse_int(char const**, char const*, int*, bool)::$_3>(char const**, char const*, int*, bool, hb_parse_int(char const**, char const*, int*, bool)::$_3))
  >>> referenced by hb-number.cc:44 (/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-number.cc:44)
  >>>               CMakeFiles/rive_text.dir/home/brad/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-number.cc.o:(bool _parse_number<unsigned int, hb_parse_uint(char const**, char const*, unsigned int*, bool, int)::$_4>(char const**, char const*, unsigned int*, bool, hb_parse_uint(char const**, char const*, unsigned int*, bool, int)::$_4))
  >>> referenced 1 more times
  clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  ninja: build stopped: subcommand failed.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 21s
Exception: Gradle task assembleDebug failed with exit code 1

I have used the same NDK version suggested:

android {
  compileSdkVersion 33
  ndkVersion "25.1.8937393"
  ...
}
``

[✓] Flutter (Channel stable, 3.7.1, on Ubuntu 22.04.1 LTS 5.15.0-58-generic, locale en_NZ.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [✓] Chrome - develop for the web [✓] Linux toolchain - develop for Linux desktop [✓] Android Studio (version 2021.3) [✓] VS Code [✓] Connected device (3 available) [✓] HTTP Host Availability

hrithikwins commented 1 year ago

I'm facing the same issue on rive: ^0.10.1

bash: warning: setlocale: LC_ALL: cannot change locale (nb_NO.UTF-8)
Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
bash: warning: setlocale: LC_ALL: cannot change locale (nb_NO.UTF-8)
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Checking the license for package NDK (Side by side) 25.1.8937393 in /home/hrithik/Android/Sdk/licenses
License for package NDK (Side by side) 25.1.8937393 accepted.
Preparing "Install NDK (Side by side) 25.1.8937393 (revision: 25.1.8937393)".
"Install NDK (Side by side) 25.1.8937393 (revision: 25.1.8937393)" ready.
Installing NDK (Side by side) 25.1.8937393 in /home/hrithik/Android/Sdk/ndk/25.1.8937393
"Install NDK (Side by side) 25.1.8937393 (revision: 25.1.8937393)" complete.
"Install NDK (Side by side) 25.1.8937393 (revision: 25.1.8937393)" finished.
Checking the license for package CMake 3.18.1 in /home/hrithik/Android/Sdk/licenses
License for package CMake 3.18.1 accepted.
Preparing "Install CMake 3.18.1 (revision: 3.18.1)".
"Install CMake 3.18.1 (revision: 3.18.1)" ready.
Installing CMake 3.18.1 in /home/hrithik/Android/Sdk/cmake/3.18.1
"Install CMake 3.18.1 (revision: 3.18.1)" complete.
"Install CMake 3.18.1 (revision: 3.18.1)" finished.
One or more plugins require a higher Android NDK version.
Fix this issue by adding the following to /home/hrithik/Desktop/fl1/bloodbank_app/android/app/build.gradle:
android {
  ndkVersion 25.1.8937393
  ...
}

bash: warning: setlocale: LC_ALL: cannot change locale (nb_NO.UTF-8)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rive_common:buildCMakeDebug[arm64-v8a]'.
> Build command failed.
Error while executing process /home/hrithik/Android/Sdk/cmake/3.18.1/bin/ninja with arguments {-C /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/android/.cxx/Debug/4h5a2f3s/arm64-v8a rive_text}
ninja: Entering directory `/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/android/.cxx/Debug/4h5a2f3s/arm64-v8a'
[1/64] Building CXX object CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/rive_counter.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/rive_counter.cpp.o
  /home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/rive_counter.cpp.o -MF CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/rive_counter.cpp.o.d -o CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/rive_counter.cpp.o -c /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/rive_counter.cpp
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/rive_counter.cpp:5:

  In file included from ../../../../../ios/rive-cpp/include/rive/rive_counter.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
[2/64] Building CXX object CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/mat2d.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/mat2d.cpp.o

  /home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/mat2d.cpp.o -MF CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/mat2d.cpp.o.d -o CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/mat2d.cpp.o -c /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/mat2d.cpp
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/mat2d.cpp:1:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/mat2d.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/vec2d.hpp:4:

  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
[3/64] Building CXX object CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive_text/rive_text.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive_text/rive_text.cpp.o
  /home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive_text/rive_text.cpp.o -MF CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive_text/rive_text.cpp.o.d -o CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive_text/rive_text.cpp.o -c /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive_text/rive_text.cpp
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive_text/rive_text.cpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/text/font_hb.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/factory.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/renderer.hpp:9:
  In file included from ../../../../../ios/rive-cpp/include/rive/command_path.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/mat2d.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/vec2d.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:

  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive_text/rive_text.cpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/text/font_hb.hpp:8:

  In file included from ../../../../../ios/rive-cpp/include/rive/factory.hpp:9:
  In file included from ../../../../../ios/rive-cpp/include/rive/text.hpp:11:
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned short, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned short>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned int, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned int>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<float>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  4 errors generated.
[4/64] Building CXX object CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/text.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/text.cpp.o
  /home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/text.cpp.o -MF CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/text.cpp.o.d -o CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/text.cpp.o -c /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/text.cpp
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/text.cpp:1:
  In file included from ../../../../../ios/rive-cpp/include/rive/text.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/raw_path.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/span.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:

  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/text.cpp:1:
  In file included from ../../../../../ios/rive-cpp/include/rive/text.hpp:11:
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned short, true>::CopyConstructArray' requested here

          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned short>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned int, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned int>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<float>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  4 errors generated.
[5/64] Building CXX object CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/line_breaker.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/line_breaker.cpp.o
  /home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/line_breaker.cpp.o -MF CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/line_breaker.cpp.o.d -o CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/line_breaker.cpp.o -c /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/line_breaker.cpp
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/line_breaker.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/text.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/raw_path.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/span.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/line_breaker.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/text.hpp:11:
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned short, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned short>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned int, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned int>::SimpleArray' requested here

      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<float>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  4 errors generated.
[6/64] Building CXX object CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/renderer.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/renderer.cpp.o
  /home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/renderer.cpp.o -MF CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/renderer.cpp.o.d -o CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/renderer.cpp.o -c /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/renderer.cpp
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/renderer.cpp:1:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/mat2d.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/vec2d.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);

                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/renderer.cpp:102:
  In file included from ../../../../../ios/rive-cpp/include/rive/text.hpp:11:
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned short, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned short>::SimpleArray' requested here

      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned int, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned int>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<float>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  4 errors generated.
[7/64] Building CXX object CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/raw_path.cpp.o

FAILED: CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/raw_path.cpp.o
  /home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/raw_path.cpp.o -MF CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/raw_path.cpp.o.d -o CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/raw_path.cpp.o -c /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/raw_path.cpp
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/math/raw_path.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/raw_path.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/span.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
[8/64] Building CXX object CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/font_hb.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/font_hb.cpp.o
  /home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/font_hb.cpp.o -MF CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/font_hb.cpp.o.d -o CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/font_hb.cpp.o -c /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/font_hb.cpp
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/font_hb.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/text.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/raw_path.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/span.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);

                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/font_hb.cpp:303:46: error: non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'SBUInteger' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
                                               text.size()};
                                               ^~~~~~~~~~~
/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/font_hb.cpp:303:46: note: insert an explicit cast to silence this issue
                                               text.size()};
                                               ^~~~~~~~~~~
                                               static_cast<SBUInteger>( )
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/rive-cpp/src/text/font_hb.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/text.hpp:11:
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information

          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned short, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned short>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned int, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned int>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<float>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  5 errors generated.
[9/64] Building CXX object CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc.o
FAILED: CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc.o
  /home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc.o -MF CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc.o.d -o CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc.o -c /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc:29:

  In file included from ../../../../../ios/harfbuzz/src/hb.hh:472:
  In file included from ../../../../../ios/harfbuzz/src/hb-meta.hh:32:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
[10/64] Building CXX object CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc.o
FAILED: CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc.o
  /home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/hrithik/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc.o -MF CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc.o.d -o CMakeFiles/rive_text.dir/home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc.o -c /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc
In file included from /home/hrithik/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc:28:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:472:
  In file included from ../../../../../ios/harfbuzz/src/hb-meta.hh:32:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  ninja: build stopped: subcommand failed.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 7m 54s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
HayesGordon commented 1 year ago

Hi @BPattersonRaven and @hrithikwins it may be related to this: https://github.com/rive-app/rive-flutter/issues/279#issuecomment-1370748762

Which will require you to update the Clang compiler and to VS 2022

This is a requirement for Windows, and I believe for Linux as well. Additional details here: https://github.com/rive-app/rive-flutter/issues/285#issuecomment-1407759212

Please let me know if this works after updating the above and I'll be sure to update our documentation

BPattersonRaven commented 1 year ago

On my Linux machine I have installed clang.

clang --version
Ubuntu clang version 15.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

I still get the same result.

mjtalbot commented 1 year ago

Hi @BPattersonRaven and @hrithikwins, I'm not able to reproduce the errors you are reporting

can you confirm the build build commands you are running? and which linux distro you are using? also are there any errors or warnings before the error traces that you have shared?

can you confirm that you have ran flutter clean this can be very important if the toolchain has been updated

also can you share the verbose error outputs?

also, if you are comfortable with it, it would be helpful to have access to a repo that reproduces this issue (you can contact us directly at support@rive.app)

mjtalbot commented 1 year ago

btw, I've been trying to reproduce this via a docker file (this is just building a sample project)

do you run into the same issue trying to build a new flutter project using rive? (or for example building that sample project?)

what does your android/app/build.gradle look like? has this been customized at all? are you targeting specific sdk versions?

FROM --platform=linux/amd64 ubuntu:22.04

# install pre-requisites
RUN apt-get update && apt install -y git curl zip wget zip tar clang cmake ninja-build pkg-config default-jdk libgtk-3-dev 

ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
ENV PATH="${PATH}:/flutter/bin"

# set up android building
WORKDIR /
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip
RUN unzip commandlinetools-linux-9477386_latest.zip
ENV ANDROID_SDK_ROOT="/sdk/"
WORKDIR /sdk/cmdline-tools/latest
RUN cp -r /cmdline-tools/* .
RUN yes | /sdk/cmdline-tools/latest/bin/sdkmanager --licenses

# Flutter requires Android SDK 29 and the Android BuildTools 28.0.3
RUN /sdk/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-33"
RUN /sdk/cmdline-tools/latest/bin/sdkmanager --install "build-tools;33.0.1"
# set up flutter
WORKDIR /
RUN git clone https://github.com/flutter/flutter.git
RUN flutter channel stable
RUN flutter doctor

# build apk 
RUN git clone https://github.com/mjtalbot/rive-demo.git
WORKDIR /rive-demo 
RUN flutter pub get 
RUN flutter build apk 

ENTRYPOINT ["/bin/bash"]
mjtalbot commented 1 year ago

@hrithikwins I noticed you should specify ndkVersion "25.1.8937393" in your build.gradle, but even accounting for that i was not able to repro the build failure

@BPattersonRaven its interesting that your cmake is running from 3.10.2, I've installed that manually and ran the ninja command against a clean version of rive_common, but I have not been able to avoid 3.18.1 being used so far by flutter build apk

can you share the output of flutter doctor -v as well?

(from that container)

 flutter doctor -v
[✓] Flutter (Channel stable, 3.7.4, on Ubuntu 22.04.1 LTS 5.15.79.1-microsoft-standard-WSL2, locale en_US)
    • Flutter version 3.7.4 on channel stable at /flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b4bce91dd0 (34 hours ago), 2023-02-21 09:50:50 +0800
    • Engine revision 248290d6d5
    • Dart version 2.19.2
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /sdk/
    • Platform android-33, build-tools 33.0.1
    • ANDROID_SDK_ROOT = /sdk/
    • Java binary at: /usr/lib/jvm/java-11-openjdk-amd64/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.17+8-post-Ubuntu-1ubuntu222.04)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 14.0.0-1ubuntu1
    • cmake version 3.22.1
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.1 LTS 5.15.79.1-microsoft-standard-WSL2

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.
root@65351960f468:/rive-demo#
BPattersonRaven commented 1 year ago

Sorry it took a while to get back to you. I have been busy testing and releasing the first production version of our app. Here is my flutter doctor output

[✓] Flutter (Channel stable, 3.7.3, on Ubuntu 22.04.1 LTS 5.19.0-32-generic, locale en_NZ.UTF-8)
    • Flutter version 3.7.3 on channel stable at /home/brad/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9944297138 (4 weeks ago), 2023-02-08 15:46:04 -0800
    • Engine revision 248290d6d5
    • Dart version 2.19.2
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /home/brad/Android/Sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /snap/android-studio/125/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[✓] Android Studio (version 2021.3)
    • Android Studio at /snap/android-studio/125/android-studio
    • Flutter plugin version 72.1.1
    • Dart plugin version 213.7433
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code
    • VS Code at /snap/code/current
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • Linux (desktop)              • linux         • linux-x64      • Ubuntu 22.04.1 LTS
      5.19.0-32-generic
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 110.0.5481.96

[✓] HTTP Host Availability
    • All required HTTP hosts are available
jmorgadov commented 1 year ago

Any updates? I am facing the same problem. I've tested in and empty project (setting the compileSdkVersion 31 and ndkVersion "25.1.8937393" in the build.gradle file).

I am able to run flutter build apk successfully, but running flutter run -d [device] fails:

See failure log ``` [ ] FAILURE: Build failed with an exception. [ +1 ms] * What went wrong: [ ] Execution failed for task ':rive_common:buildCMakeDebug[arm64-v8a]'. [ ] > Build command failed. [ ] Error while executing process /home/morgado/softs/Android/Sdk/cmake/3.18.1/bin/ninja with arguments {-C /home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/android/.cxx/Debug/1q47v5q7/arm64-v8a rive_text} [ ] ninja: Entering directory `/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/android/.cxx/Debug/1q47v5q7/arm64-v8a' [ ] [1/1] Linking CXX shared library /home/morgado/projects/test_rive/build/rive_common/intermediates/cxx/Debug/1q47v5q7/obj/arm64-v8a/librive_text.so [ ] FAILED: /home/morgado/projects/test_rive/build/rive_common/intermediates/cxx/Debug/1q47v5q7/obj/arm64-v8a/librive_text.so [ ] : && /home/morgado/softs/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/morgado/softs/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-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 -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--gc-sections -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,librive_text.so -o /home/morgado/projects/test_rive/build/rive_common/intermediates/cxx/Debug/1q47v5q7/obj/arm64-v8a/librive_text.so CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive_text/rive_text.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/math/raw_path.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/math/mat2d.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/rive_counter.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/renderer.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/text/font_hb.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/text/line_breaker.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/text/text_engine.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-aat-layout.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-aat-map.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-blob.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-buffer-serialize.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-buffer-verify.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-buffer.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-common.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-draw.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-face.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-font.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-map.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-number.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-cff1-table.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-cff2-table.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-color.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-face.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-font.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-layout.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-map.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-math.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-meta.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-metrics.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-name.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-arabic.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-default.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-hangul.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-hebrew.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-indic-table.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-indic.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-khmer.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-myanmar.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-syllabic.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-thai.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-use.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-vowel-constraints.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-fallback.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-normalize.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-tag.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-var.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-set.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-shape-plan.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-shape.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-shaper.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-static.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-cff-common.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-cff1.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-cff2.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-input.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-plan.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-repacker.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ucd.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-unicode.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o -latomic -lm && : [ +1 ms] ld: error: undefined symbol: __assert_fail [ ] >>> referenced by SBParagraph.c:624 (/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SBParagraph.c:624) [ ] >>> CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o:(SBParagraphCreate) [ ] >>> referenced by SBLine.c:257 (/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SBLine.c:257) [ ] >>> CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o:(SBLineCreate) [ ] >>> referenced by StatusStack.c:65 (/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/StatusStack.c:65) [ ] >>> CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o:(StatusStackPush) [ ] >>> referenced 13 more times [ ] clang++: error: linker command failed with exit code 1 (use -v to see invocation) [ ] ninja: build stopped: subcommand failed. [ ] * Try: [ ] > Run with --debug option to get more log output. [ ] > Run with --scan to get full insights. [ ] * Exception is: [ ] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':rive_common:buildCMakeDebug[arm64-v8a]'. [ ] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147) [ ] at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282) [ ] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145) [ ] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:133) [ ] at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77) [ ] at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) [ ] at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51) [ ] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) [ ] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56) [ ] at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) [ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) [ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) [ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) [ ] at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73) [ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) [ ] at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:74) [ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:333) [ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:320) [ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:313) [ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:299) [ ] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:143) [ ] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:227) [ ] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:218) [ ] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:140) [ ] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) [ ] at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) [ ] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [ ] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [ ] at java.base/java.lang.Thread.run(Thread.java:833) [ ] Caused by: org.gradle.internal.UncheckedException: Build command failed. [ ] Error while executing process /home/morgado/softs/Android/Sdk/cmake/3.18.1/bin/ninja with arguments {-C /home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/android/.cxx/Debug/1q47v5q7/arm64-v8a rive_text} [ ] ninja: Entering directory `/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/android/.cxx/Debug/1q47v5q7/arm64-v8a' [ ] [1/1] Linking CXX shared library /home/morgado/projects/test_rive/build/rive_common/intermediates/cxx/Debug/1q47v5q7/obj/arm64-v8a/librive_text.so [ ] FAILED: /home/morgado/projects/test_rive/build/rive_common/intermediates/cxx/Debug/1q47v5q7/obj/arm64-v8a/librive_text.so [ ] : && /home/morgado/softs/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/morgado/softs/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-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 -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--gc-sections -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,librive_text.so -o /home/morgado/projects/test_rive/build/rive_common/intermediates/cxx/Debug/1q47v5q7/obj/arm64-v8a/librive_text.so CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive_text/rive_text.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/math/raw_path.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/math/mat2d.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/rive_counter.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/renderer.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/text/font_hb.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/text/line_breaker.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/text/text_engine.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-aat-layout.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-aat-map.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-blob.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-buffer-serialize.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-buffer-verify.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-buffer.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-common.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-draw.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-face.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-font.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-map.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-number.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-cff1-table.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-cff2-table.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-color.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-face.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-font.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-layout.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-map.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-math.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-meta.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-metrics.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-name.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-arabic.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-default.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-hangul.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-hebrew.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-indic-table.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-indic.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-khmer.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-myanmar.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-syllabic.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-thai.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-use.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-vowel-constraints.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-fallback.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-normalize.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-tag.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-var.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-set.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-shape-plan.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-shape.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-shaper.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-static.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-cff-common.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-cff1.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-cff2.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-input.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-plan.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-repacker.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ucd.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-unicode.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o -latomic -lm && : [ +1 ms] ld: error: undefined symbol: __assert_fail [ ] >>> referenced by SBParagraph.c:624 (/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SBParagraph.c:624) [ ] >>> CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o:(SBParagraphCreate) [ ] >>> referenced by SBLine.c:257 (/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SBLine.c:257) [ ] >>> CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o:(SBLineCreate) [ ] >>> referenced by StatusStack.c:65 (/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/StatusStack.c:65) [ ] >>> CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o:(StatusStackPush) [ ] >>> referenced 13 more times [ ] clang++: error: linker command failed with exit code 1 (use -v to see invocation) [ ] ninja: build stopped: subcommand failed. [ ] at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:68) [ ] at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41) [ ] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:107) [ ] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58) [ ] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51) [ ] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29) [ ] at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:242) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47) [ ] at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68) [ ] at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:227) [ ] at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:210) [ ] at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:193) [ ] at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:171) [ ] at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:89) [ ] at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:40) [ ] at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:53) [ ] at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:50) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) [ ] at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73) [ ] at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:50) [ ] at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:40) [ ] at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:68) [ ] at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:38) [ ] at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:48) [ ] at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:36) [ ] at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41) [ ] at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74) [ ] at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55) [ ] at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51) [ ] at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:29) [ ] at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:61) [ ] at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:42) [ ] at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:60) [ ] at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:27) [ ] at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:180) [ ] at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:75) [ ] at org.gradle.internal.Either$Right.fold(Either.java:175) [ ] at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:59) [ ] at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:73) [ ] at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:48) [ ] at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:36) [ ] at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:25) [ ] at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36) [ ] at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22) [ ] at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:110) [ ] at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:56) [ ] at java.base/java.util.Optional.orElseGet(Optional.java:364) [ ] at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:56) [ ] at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:38) [ ] at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:73) [ ] at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:44) [ ] at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37) [ ] at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27) [ ] at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:89) [ ] at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:50) [ ] at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:114) [ ] at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:57) [ ] at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:76) [ ] at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:50) [ ] at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNoEmptySources(SkipEmptyWorkStep.java:249) [ ] at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:86) [ ] at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:54) [ ] at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:32) [ ] at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:21) [ ] at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38) [ ] at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:43) [ ] at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:31) [ ] at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:40) [ ] at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:287) [ ] at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:40) [ ] at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30) [ ] at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37) [ ] at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27) [ ] at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:44) [ ] at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:33) [ ] at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:76) [ ] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:144) [ ] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:133) [ ] at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77) [ ] at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) [ ] at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51) [ ] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) [ ] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56) [ ] at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) [ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) [ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) [ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) [ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) [ ] at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73) [ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) [ ] at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:74) [ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:333) [ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:320) [ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:313) [ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:299) [ ] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:143) [ ] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:227) [ ] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:218) [ ] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:140) [ ] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) [ ] at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) [ ] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [ ] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [ ] at java.base/java.lang.Thread.run(Thread.java:833) [ ] Caused by: Build command failed. [ ] Error while executing process /home/morgado/softs/Android/Sdk/cmake/3.18.1/bin/ninja with arguments {-C /home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/android/.cxx/Debug/1q47v5q7/arm64-v8a rive_text} [ ] ninja: Entering directory `/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/android/.cxx/Debug/1q47v5q7/arm64-v8a' [ ] [1/1] Linking CXX shared library /home/morgado/projects/test_rive/build/rive_common/intermediates/cxx/Debug/1q47v5q7/obj/arm64-v8a/librive_text.so [ ] FAILED: /home/morgado/projects/test_rive/build/rive_common/intermediates/cxx/Debug/1q47v5q7/obj/arm64-v8a/librive_text.so [ ] : && /home/morgado/softs/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/morgado/softs/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-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 -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--gc-sections -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,librive_text.so -o /home/morgado/projects/test_rive/build/rive_common/intermediates/cxx/Debug/1q47v5q7/obj/arm64-v8a/librive_text.so CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive_text/rive_text.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/math/raw_path.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/math/mat2d.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/rive_counter.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/renderer.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/text/font_hb.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/text/line_breaker.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/rive-cpp/src/text/text_engine.cpp.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-aat-layout.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-aat-map.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-blob.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-buffer-serialize.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-buffer-verify.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-buffer.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-common.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-draw.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-face.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-font.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-map.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-number.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-cff1-table.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-cff2-table.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-color.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-face.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-font.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-layout.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-map.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-math.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-meta.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-metrics.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-name.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-arabic.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-default.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-hangul.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-hebrew.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-indic-table.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-indic.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-khmer.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-myanmar.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-syllabic.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-thai.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-use.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-complex-vowel-constraints.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-fallback.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape-normalize.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-shape.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-tag.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ot-var.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-set.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-shape-plan.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-shape.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-shaper.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-static.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-cff-common.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-cff1.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-cff2.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-input.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-plan.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset-repacker.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-subset.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-ucd.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/harfbuzz/src/hb-unicode.cc.o CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o -latomic -lm && : [ +1 ms] ld: error: undefined symbol: __assert_fail [ ] >>> referenced by SBParagraph.c:624 (/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SBParagraph.c:624) [ ] >>> CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o:(SBParagraphCreate) [ ] >>> referenced by SBLine.c:257 (/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SBLine.c:257) [ ] >>> CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o:(SBLineCreate) [ ] >>> referenced by StatusStack.c:65 (/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/StatusStack.c:65) [ ] >>> CMakeFiles/rive_text.dir/home/morgado/.pub-cache/hosted/pub.dev/rive_common-0.0.3/ios/SheenBidi/Source/SheenBidi.c.o:(StatusStackPush) [ ] >>> referenced 13 more times [ ] clang++: error: linker command failed with exit code 1 (use -v to see invocation) [ ] ninja: build stopped: subcommand failed. [ ] at com.android.build.gradle.internal.cxx.process.ProcessOutputJunction.execute(ProcessOutputJunction.kt:126) [ ] at com.android.build.gradle.internal.cxx.process.ProcessOutputJunction.execute(ProcessOutputJunction.kt:149) [ ] at com.android.build.gradle.internal.cxx.build.CxxRegularBuilder$executeProcessBatch$1.invoke(CxxRegularBuilder.kt:378) [ ] at com.android.build.gradle.internal.cxx.build.CxxRegularBuilder$executeProcessBatch$1.invoke(CxxRegularBuilder.kt:368) [ ] at com.android.build.gradle.internal.cxx.caching.CxxBuildCache.cacheBuild(CxxBuildCache.kt:46) [ ] at com.android.build.gradle.internal.cxx.build.CxxRegularBuilder.executeProcessBatch(CxxRegularBuilder.kt:368) [ ] at com.android.build.gradle.internal.cxx.build.CxxRegularBuilder.build(CxxRegularBuilder.kt:153) [ ] at com.android.build.gradle.tasks.ExternalNativeBuildTask$doTaskAction$$inlined$recordTaskAction$1.invoke(BaseTask.kt:70) [ ] at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:51) [ ] at com.android.build.gradle.tasks.ExternalNativeBuildTask.doTaskAction(ExternalNativeBuildTask.kt:137) [ ] at com.android.build.gradle.internal.tasks.UnsafeOutputsTask$taskAction$$inlined$recordTaskAction$1.invoke(BaseTask.kt:65) [ ] at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:51) [ ] at com.android.build.gradle.internal.tasks.UnsafeOutputsTask.taskAction(UnsafeOutputsTask.kt:62) [ ] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) [ ] at java.base/java.lang.reflect.Method.invoke(Method.java:577) [ ] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104) [ ] ... 119 more [ ] * Get more help at https://help.gradle.org [ ] BUILD FAILED in 9s [ +304 ms] Running Gradle task 'assembleDebug'... (completed in 10.0s) [ +2 ms] Exception: Gradle task assembleDebug failed with exit code 1 [ +2 ms] "flutter run" took 10,863ms. [ +1 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:722:9) #2 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1257:27) #3 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #4 CommandRunner.runCommand (package:args/command_runner.dart:209:13) #5 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9) #6 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5) #8 run.. (package:flutter_tools/runner.dart:64:9) #9 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #10 main (package:flutter_tools/executable.dart:91:3) [ +203 ms] ensureAnalyticsSent: 202ms [ ] Running 1 shutdown hook [ +2 ms] Shutdown hooks complete [ ] exiting with code 1 ```
Flutter doctor ``` ✓] Flutter (Channel stable, 3.7.12, on Arch Linux 6.2.12-arch1-1, locale en_US.UTF-8) • Flutter version 3.7.12 on channel stable at /home/morgado/softs/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 4d9e56e694 (12 days ago), 2023-04-17 21:47:46 -0400 • Engine revision 1a65d409c7 • Dart version 2.19.6 • DevTools version 2.20.1 [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) • Android SDK at /home/morgado/softs/Android/Sdk • Platform android-33, build-tools 33.0.1 • ANDROID_HOME = /home/morgado/softs/Android/Sdk/ • ANDROID_SDK_ROOT = /home/morgado/softs/Android/Sdk/ • Java binary at: /home/morgado/softs/jdk-18.0.2.1/bin/java • Java version Java(TM) SE Runtime Environment (build 18.0.2.1+1-1) • All Android licenses accepted. [✓] Chrome - develop for the web • CHROME_EXECUTABLE = /usr/bin/google-chrome-stable [✓] Linux toolchain - develop for Linux desktop • clang version 15.0.7 • cmake version 3.26.3 • ninja version 1.11.1 • pkg-config version 1.8.1 [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). [✓] Connected device (3 available) • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator) • Linux (desktop) • linux • linux-x64 • Arch Linux 6.2.12-arch1-1 • Chrome (web) • chrome • web-javascript • Google Chrome 112.0.5615.49 [✓] HTTP Host Availability • All required HTTP hosts are available ! Doctor found issues in 1 category. ```
mjtalbot commented 1 year ago

Hi @BPattersonRaven, I can see that your clang version is clang version 10.0.0-4ubuntu1 can you update this? another user reported that they needed to update past version 12.0 https://github.com/rive-app/rive-flutter/issues/279#issuecomment-1370748762. I was trying this with clang 14 (in the docker based example above) another user was using clang 15.

@jmorgadov this to me like its got some issues linking in assert symbols. I see you're running on Arch Linux, have you tried building and running this on any other platform? I'm going to check with some of the team that have a little more experience reading these stack traces to see if they have more input. A little bit of googling talks about installing 'build-essentials' or various c++ packages, I assume you've had a look at these, I'm not really sure what's appropriate for this OS though.

jmorgadov commented 1 year ago

@mjtalbot I even tried updating the whole system (including the clang and gcc related packages that I had already installed) but still had the same problem. However, I have a workaround to this issue that worked for me.

I've been playing with the rive_common package located in the $HOME/.pub-cache/hosted/pub.dev/. I managed to successfully run the app (flutter run -d [device]) by creating my own __assert_fail function:

  1. Create a file named SBAssert.c in ios/SheenBidi/Source with this content:
void __assert_fail(const char * assertion, const char * file, unsigned int line, const char * function)
{
    abort();
}
  1. Add the proper #include of this file in the ios/SheenBidi/Source/SheenBidi.c. It will look like this:
/*
 * Copyright (C) 2014-2019 Muhammad Tayyab Akram
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <SBConfig.h>
#include <SheenBidi.h>

#ifdef SB_CONFIG_UNITY

#include "BidiChain.c"
#include "BidiTypeLookup.c"
#include "BracketQueue.c"
#include "GeneralCategoryLookup.c"
#include "IsolatingRun.c"
#include "LevelRun.c"
#include "PairingLookup.c"
#include "RunQueue.c"
#include "SBAlgorithm.c"
#include "SBAssert.c"      // <---- here it is
#include "SBBase.c"
#include "SBCodepointSequence.c"
#include "SBLine.c"
#include "SBLog.c"
#include "SBMirrorLocator.c"
#include "SBParagraph.c"
#include "SBScriptLocator.c"
#include "ScriptLookup.c"
#include "ScriptStack.c"
#include "StatusStack.c"

#endif

This is not the best solution by far, but at least this allows me to use the last versions of rive. Maybe adding some flags using the CMAKE_CXX_FLAGS variable would solve the problem?

mjtalbot commented 1 year ago

fascinating, looking at the issue, and the part where it works when you run flutter build apk but not when you run flutter run -d xzy. It should be down to debug/release mode.

so i assume flutter build apk --debug will also fail (which will hopefully mean we can reproduce this problem in a Docker container and get it seen to). also flutter run --release -d xzy should work if that's right, of course you still want to be able to build for debug.

jmorgadov commented 1 year ago

@mjtalbot I just test flutter build apk --debug and as you said it failed with the same error. Running flutter run --release -d xzy also fails but for another reason:

Release mode is not supported by Android SDK built for x86.
millerovv commented 1 year ago

After upgrading rive from 0.9.1 to 0.10.4 in our project it also tries to access cmake version 3.10.2 during flutter build apk --release.

I was able to fix local build by installing needed version of cmake in Android Studio:

image

We still have flutter-build step failing on bitrise with exact same problem. Both local and bitrise builds are running on macos.

On bitrise job I was trying to pre-install correct version of cmake with brew, but then also noticed that we are experiencing a slight fat apk size increase mentioned in https://github.com/rive-app/rive-flutter/issues/274 (135MB -> 142MB) and made a pause for now.

mjtalbot commented 1 year ago

@jmorgadov, I've tried to reproduce your issue using a docker container.

But I am unable to, can you take a look at the setup here to see if this differs from your project in an obvious way? The main thing I see is that Arch Linux is not at v6 (the official docker images seem to be v5 here?).

A repro of the issue would really help getting this resolved, I am simply building a test project in https://github.com/mjtalbot/rive-demo.git, presumably trying to build that reproduces the same error for you?

Dockerfile to test building I tried base, base-devel, latest... If anything here looks off please let me know, I've not run archlinux before. ``` FROM archlinux:base-devel RUN pacman -Syyu --noconfirm clang cmake ninja base-devel RUN pacman -Syyu --noconfirm dart RUN pacman -Syyu --noconfirm android-tools RUN pacman -Syyu --noconfirm wget RUN pacman -Syyu --noconfirm git RUN pacman -Syyu --noconfirm zip unzip tar RUN pacman -Syyu --noconfirm jre11-openjdk ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk ENV PATH="${PATH}:/flutter/bin" # set up android building WORKDIR / RUN wget https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip RUN unzip commandlinetools-linux-9477386_latest.zip ENV ANDROID_SDK_ROOT="/sdk/" WORKDIR /sdk/cmdline-tools/latest RUN cp -r /cmdline-tools/* . RUN yes | /sdk/cmdline-tools/latest/bin/sdkmanager --licenses # Flutter requires Android SDK 29 and the Android BuildTools 28.0.3 RUN /sdk/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-33" RUN /sdk/cmdline-tools/latest/bin/sdkmanager --install "build-tools;33.0.1" # set up flutter WORKDIR / RUN git clone https://github.com/flutter/flutter.git RUN flutter channel stable RUN flutter doctor # build apk RUN git clone https://github.com/mjtalbot/rive-demo.git WORKDIR /rive-demo RUN flutter pub get RUN flutter build apk --debug ENTRYPOINT ["/bin/bash"] ```
Flutter doctor output The linux toolchain looks identical to yours ``` flutter doctor -v [!] Flutter (Channel stable, 3.7.12, on Arch Linux 5.15.0-1031-aws, locale C.UTF-8) • Flutter version 3.7.12 on channel stable at /flutter ! Warning: `dart` on your path resolves to /opt/dart-sdk/bin/dart, which is not inside your current Flutter SDK checkout at /flutter. Consider adding /flutter/bin to the front of your path. • Upstream repository https://github.com/flutter/flutter.git • Framework revision 4d9e56e694 (2 weeks ago), 2023-04-17 21:47:46 -0400 • Engine revision 1a65d409c7 • Dart version 2.19.6 • DevTools version 2.20.1 • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades. [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) • Android SDK at /sdk/ • Platform android-33, build-tools 33.0.1 • ANDROID_SDK_ROOT = /sdk/ • Java binary at: /usr/lib/jvm/java-11-openjdk/bin/java • Java version OpenJDK Runtime Environment (build 11.0.19+7) • All Android licenses accepted. [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [✗] Linux toolchain - develop for Linux desktop • clang version 15.0.7 • cmake version 3.26.3 • ninja version 1.11.1 • pkg-config version 1.8.1 ✗ GTK 3.0 development libraries are required for Linux development. They are likely available from your distribution (e.g.: apt install libgtk-3-dev) [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). [✓] Connected device (1 available) • Linux (desktop) • linux • linux-x64 • Arch Linux 5.15.0-1031-aws [✓] HTTP Host Availability • All required HTTP hosts are available ```
mjtalbot commented 1 year ago

@millerovv, I don't think we should be locking in a specific version of cmake, i would have expected 3.22.1 to be enough

Can you share the error message you are seeing?

I have not really used bitrise before, so do feel free to point out blatant mistakes. But I made a quick project and pointed it at https://github.com/mjtalbot/rive-demo.git which uses rive 0.10.4.

I fixed the flutter version to 3.7.2 (it was set to stable but installed 2.x for some reason). Removed the tests, and added flutter-build in its place. This setup built the test app without errors.

Does this setup differ significantly from yours? Can you share a repro for the error you are seeing?

millerovv commented 1 year ago

@mjtalbot Just tried to prepare an example, but noticed that it works just fine on a completely new project.

By default it does everything just as in your bitrise build – selects version 3.18.1 and install it automatically 🤔

License for package CMake 3.18.1 accepted.
Preparing "Install CMake 3.18.1 (revision: 3.18.1)".
"Install CMake 3.18.1 (revision: 3.18.1)" ready.
Installing CMake 3.18.1 in /usr/local/share/android-sdk/cmake/3.18.1
"Install CMake 3.18.1 (revision: 3.18.1)" complete.

But I still cant' figure out why it selects CMake 3.10.2 on our existing project. Unless I install cmake 3.10.2 manually (in android studio) it just crashes each time with:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':rive_common'.
> com.android.builder.errors.EvalIssueException: CMake '3.10.2' was not found in SDK, PATH, or by cmake.dir property.

Also wondering if this quote from doc could be relevant:

The SDK Manager includes the 3.6.0 forked version of CMake and version 3.10.2. Projects that don't set a specific CMake version are built with CMake 3.10.2. (https://developer.android.com/studio/projects/install-ndk#vanilla_cmake) On the other hand this doc might be outdated...

millerovv commented 1 year ago

For anyone experiencing the issue:

A problem occurred configuring project ':rive_common'.
> com.android.builder.errors.EvalIssueException: CMake '3.10.2' was not found in SDK, PATH, or by cmake.dir property.

In our case the error was caused by using old gradle version 4.2.2.

The solution was updating gradle dependency in android/build.gradle to latest 7.2.0 (maybe some lower versions also work).

dependencies {
        classpath 'com.android.tools.build:gradle:7.2.0'
        ...
    }

After this change, CMake v3.18.1 gets automatically isntalled by gradle task during build:

Checking the license for package CMake 3.18.1 in /usr/local/share/android-sdk/licenses
License for package CMake 3.18.1 accepted.
Preparing "Install CMake 3.18.1 (revision: 3.18.1)".
"Install CMake 3.18.1 (revision: 3.18.1)" ready.
Installing CMake 3.18.1 in /usr/local/share/android-sdk/cmake/3.18.1
"Install CMake 3.18.1 (revision: 3.18.1)" complete.
"Install CMake 3.18.1 (revision: 3.18.1)" finished.