Open BPattersonRaven opened 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)
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
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.
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)
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"]
@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#
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
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:
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.
@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:
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();
}
#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?
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.
@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.
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:
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.
@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?
@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?
@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...
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.
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:
I have used the same NDK version suggested:
[✓] 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