-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flutter 编译错误 > Task :rive_common:buildCMakeDebug[arm64-v8a] FAILED #334
Comments
This looks like the same as #323 Can you try the suggestion mentioned here: #323 (comment) |
thanks your reply,i try to do this,but not success。maybe the problem is ninja use path 。you can make android so ,do not from ios directory source code。i use lower version now,version 0.9.1,because of the version do not use rive_common 。 |
Hi @LuckyLi706, sorry I missed that you're on macOS. Could you check to see if you're running into these problems with a new Flutter project and adding Rive to that. If you are, it'll be helpful if you could share a repo that reproduces the above and I can help to debug. There may just be something missing in your build steps/setup. If you could provide the output of |
Hi, same problem here. It happens in old a new projects. Using Visual Studio Code on Windows, compiling to Android . The last Rive version that i can compile for Android is ^0.9.1. From that i always get the error "execution failed for task ':rive_common:configureCMakeDebug[arm64-v8a]'.
|
Here my output: [ +1 ms] FAILURE: Build failed with an exception. |
Hi @cperisson1 Please note the platform considerations doc, you'll need an updated version of clang to compile. Alternatively there may be a problem with your Gradle setup and the versions you're using. Could you please confirm if you're experiencing this issue in a new flutter project after adding the Rive dependency (and ensuring you have clang installed) |
thanks for your replay. But no luck :( Tested in a new project, with this versions: Clang instaled version: 15.0.7 Please, tell me about any log or infor that can help you... |
Same issue here on mac |
Could you both provide the output you get from running You can also check to make sure you have CMAKE installed for Android as an SDK Tool. If 3.18.1 is installed, you can try to also install 3.22.1 (maybe uninstall 3.18.1 - however it works for me) Users on Linux that installed Flutter through snap had similar issues, see here: #323 (comment) If you're installing flutter through some package manager then it may be worth trying to download it manually and add it to your path (https://docs.flutter.dev/get-started/install), or git clone the flutter repo and add to path. |
have the same issue: here is the debug: What went wrong:
C++ build system [build] failed while executing:
|
Hi. I am still stuck in the same problem. Using Windows 11, Rive ^0.11.16, last Flutter version 3.13.2., Android 33 sdk version, cmake reinstaled... 😔 Please, some help? |
all works ok on OS X building for Android, the problem is only on Windows... |
Some related details, like @LuckyLi706 mentioned this seems to be path related and perhaps ninja version related. The root problematic path seems to come from the pub.dev cache path which has an interesting escaped G (%47) in it:
Some details here: https://stackoverflow.com/questions/54569963/error-building-depfile-has-multiple-output-paths-ninja-build-stopped-subcomm You could try to manually move rive_common from the pub cache folder to a path local to your project and supply an override dependency for it in your pubspec to the relative path to verify the path is the problem. |
A workaround and quick way to solve this problem is to install dependencies locally in project and register them in
It seems that the problem really lies in paths to package in the user home directory. Windows
|
any updates ? My device:
Latest CMAKE
|
@cperisson1 |
No, I have not found the solution, I have stopped using Rive 😕 |
I've also faced with this issue. In my case it was fixed after removing the '%' characters from the project name. So I suppose avoiding special characters in paths may resolve this. |
After deleting and installing CMake 3.18.1, it resolved. You can follow these steps:
|
I have faced the same problem every time I configure a new machine and I have noticed that the main problem is Android Studio and its incompatibility with flutter versions in addition to the library, normally this error is solved using the Android Studio Iguana | 2023.2.1 Patch 1 (tested on Windows 11 and Zorin OS 17.1) and flutter_linux_3.19.6-stable or lower regardless of the version of rive, I am currently using rive: ^0.13.12 and in case this It does not work, remember to |
hello,thanks your code,i am facing a problem when i use the rive-flutter,rive_common can not build successful。
Flutter version:
Flutter 3.10.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 796c8ef792 (6 weeks ago) • 2023-06-13 15:51:02 -0700
Engine • revision 45f6e00911
Tools • Dart 3.0.5 • DevTools 2.23.1
rive_flutter version:
0.11.4
OS:Mac
Error:
flutter 编译错误
FAILURE: Build failed with an exception.
●What went wrong:
Execution failed for task ':rive_common:buildCMakeDebug[arm64-v8a]'.
FAILED: CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/math/mat2d.cpp.o
/Users/ss/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/Users/ss/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-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/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/math/mat2d.cpp.o' -MF CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/math/mat2d.cpp.o.d -o 'CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/math/mat2d.cpp.o' -c '/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/math/mat2d.cpp'
depfile has multiple output paths[3/64] Building CXX object 'CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/renderer.cpp.o'
FAILED: CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/renderer.cpp.o
/Users/ss/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/Users/ss/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-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/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/renderer.cpp.o' -MF CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/renderer.cpp.o.d -o 'CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/renderer.cpp.o' -c '/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/renderer.cpp'
depfile has multiple output paths[4/64] Building CXX object 'CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive_text/rive_text.cpp.o'
FAILED: CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive_text/rive_text.cpp.o
/Users/ss/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/Users/ss/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-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/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive_text/rive_text.cpp.o' -MF CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive_text/rive_text.cpp.o.d -o 'CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive_text/rive_text.cpp.o' -c '/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive_text/rive_text.cpp'
depfile has multiple output paths[5/64] Building CXX object 'CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/math/raw_path.cpp.o'
FAILED: CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/math/raw_path.cpp.o
/Users/ss/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/Users/ss/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-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/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/math/raw_path.cpp.o' -MF CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/math/raw_path.cpp.o.d -o 'CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/math/raw_path.cpp.o' -c '/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/math/raw_path.cpp'
depfile has multiple output paths[6/64] Building CXX object 'CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/text/font_hb.cpp.o'
FAILED: CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/text/font_hb.cpp.o
/Users/ss/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/Users/ss/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-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/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/text/font_hb.cpp.o' -MF CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/text/font_hb.cpp.o.d -o 'CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/text/font_hb.cpp.o' -c '/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/ios/rive-cpp/src/text/font_hb.cpp'
depfile has multiple output paths
ninja: build stopped: subcommand failed.
C++ build system [build] failed while executing:
/Users/ss/Library/Android/sdk/cmake/3.18.1/bin/ninja
-C
/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/android/.cxx/Debug/1h1e215h/arm64-v8a
rive_text
from /Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/rive_common-0.1.0/android
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 42s
The text was updated successfully, but these errors were encountered: