Open LuckyLi706 opened 1 year ago
This looks like the same as #323
Can you try the suggestion mentioned here: https://github.com/rive-app/rive-flutter/issues/323#issuecomment-1638880701
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 。 then,evenything is good。
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 flutter run --verbose
that will also be helpful.
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]'.
[CXX1405] error when building with cmake using ....".
Here my output:
[ +1 ms] FAILURE: Build failed with an exception.
[ +3 ms] What went wrong:
[ ] Execution failed for task ':rive_common:configureCMakeDebug[arm64-v8a]'.
[ ] > [CXX1405] error when building with cmake using C:\Users\usert\AppData\Local\Pub\Cache\hosted\pub.dev\rive_common-0.1.0\android\CMakeLists.txt: Build command
failed.
[ ] Error while executing process D:\Sistema\ADT\sdk\cmake\3.18.1\bin\cmake.exe with arguments
{-HC:\Users\usert\AppData\Local\Pub\Cache\hosted\pub.dev\rive_common-0.1.0\android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=19
-DANDROID_PLATFORM=android-19 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=D:\Sistema\ADT\sdk\ndk\25.1.8937393
-DCMAKE_ANDROID_NDK=D:\Sistema\ADT\sdk\ndk\25.1.8937393 -DCMAKE_TOOLCHAIN_FILE=D:\Sistema\ADT\sdk\ndk\25.1.8937393\build\cmake\android.toolchain.cmake
-DCMAKE_MAKE_PROGRAM=D:\Sistema\ADT\sdk\cmake\3.18.1\bin\ninja.exe
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\FlutterC\sequentias\build\rive_common\intermediates\cxx\Debug\662j542a\obj\arm64-v8a
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=C:\FlutterC\sequentias\build\rive_common\intermediates\cxx\Debug\662j542a\obj\arm64-v8a -DCMAKE_BUILD_TYPE=Debug
-BC:\Users\usert\AppData\Local\Pub\Cache\hosted\pub.dev\rive_common-0.1.0\android.cxx\Debug\662j542a\arm64-v8a -GNinja}
[ +1 ms] -- Detecting C compiler ABI info
[ ] -- Detecting C compiler ABI info - done
[ ] -- Check for working C compiler: D:/Sistema/ADT/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped
[ ] -- Detecting C compile features
[ ] -- Detecting C compile features - done
[ ] -- Detecting CXX compiler ABI info
[ ] -- Detecting CXX compiler ABI info - failed
[ ] -- Check for working CXX compiler: D:/Sistema/ADT/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
[ ] -- Check for working CXX compiler: D:/Sistema/ADT/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - broken
[ ] -- Configuring incomplete, errors occurred!
[ ] See also "C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeOutput.log".
[ ] See also "C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeError.log".
[ ] CMake Warning (dev) in CMakeLists.txt:
[ ] No project() command is present. The top-level CMakeLists.txt file must
[ ] contain a literal, direct call to the project() command. Add a line of
[ ] code such as
[ ] project(ProjectName)
[ ] near the top of the file, but after cmake_minimum_required().
[ ] CMake is pretending there is a "project(Project)" command on the first
[ ] line.
[ ] This warning is for project developers. Use -Wno-dev to suppress it.
[ ] CMake Warning at D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
[ ] An old version of CMake is being used that cannot automatically detect
[ ] compiler attributes. Compiler identification is being bypassed. Some
[ ] values may be wrong or missing. Update to CMake 3.19 or newer to use
[ ] CMake's built-in compiler identification.
[ ] Call Stack (most recent call first):
[ ] D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
[ ] D:/Sistema/ADT/sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
[ ] CMake Warning at D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
[ ] An old version of CMake is being used that cannot automatically detect
[ ] compiler attributes. Compiler identification is being bypassed. Some
[ ] values may be wrong or missing. Update to CMake 3.19 or newer to use
[ ] CMake's built-in compiler identification.
[ +2 ms] Call Stack (most recent call first):
[ ] D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
[ +1 ms]
C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
[ +1 ms] C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
[ ] CMake Warning at D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
[ ] An old version of CMake is being used that cannot automatically detect
[ ] compiler attributes. Compiler identification is being bypassed. Some
[ ] values may be wrong or missing. Update to CMake 3.19 or newer to use
[ ] CMake's built-in compiler identification.
[ ] Call Stack (most recent call first):
[ ] D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
[ ]
C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
[ ] C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
[ ] CMake Warning at D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
[ ] An old version of CMake is being used that cannot automatically detect
[ ] compiler attributes. Compiler identification is being bypassed. Some
[ ] values may be wrong or missing. Update to CMake 3.19 or newer to use
[ ] CMake's built-in compiler identification.
[ ] Call Stack (most recent call first):
[ ] D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
[ ]
C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
[ ] C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
[ ] CMake Error at D:/Sistema/ADT/sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeTestCXXCompiler.cmake:59 (message):
[ ] The C++ compiler
[ ] "D:/Sistema/ADT/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe"
[ ] is not able to compile a simple test program.
[ ] It fails with the following output:
[ ] Change Dir: C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeTmp
[ +1 ms] Run Build Command(s):D:\Sistema\ADT\sdk\cmake\3.18.1\bin\ninja.exe cmTC_af1e1 && ninja: fatal: CreateProcess: %1 no es una aplicaci�n Win32 v�lida.
[ +1 ms] CMake will not be able to correctly generate this project.
[ ] Try:
[ ] > Run with --debug option to get more log output.
[ +1 ms] > Run with --scan to get full insights.
[ ] * Exception is:
[ ] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':rive_common:configureCMakeDebug[arm64-v8a]'.
[ ] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:147)
[ +1 ms] 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: com.android.builder.errors.EvalIssueException: [CXX1405] error when building with cmake using
C:\Users\usert\AppData\Local\Pub\Cache\hosted\pub.dev\rive_common-0.1.0\android\CMakeLists.txt: Build command failed.
[ ] Error while executing process D:\Sistema\ADT\sdk\cmake\3.18.1\bin\cmake.exe with arguments
{-HC:\Users\usert\AppData\Local\Pub\Cache\hosted\pub.dev\rive_common-0.1.0\android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=19
-DANDROID_PLATFORM=android-19 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=D:\Sistema\ADT\sdk\ndk\25.1.8937393
-DCMAKE_ANDROID_NDK=D:\Sistema\ADT\sdk\ndk\25.1.8937393 -DCMAKE_TOOLCHAIN_FILE=D:\Sistema\ADT\sdk\ndk\25.1.8937393\build\cmake\android.toolchain.cmake
-DCMAKE_MAKE_PROGRAM=D:\Sistema\ADT\sdk\cmake\3.18.1\bin\ninja.exe
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\FlutterC\sequentias\build\rive_common\intermediates\cxx\Debug\662j542a\obj\arm64-v8a
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=C:\FlutterC\sequentias\build\rive_common\intermediates\cxx\Debug\662j542a\obj\arm64-v8a -DCMAKE_BUILD_TYPE=Debug
-BC:\Users\usert\AppData\Local\Pub\Cache\hosted\pub.dev\rive_common-0.1.0\android.cxx\Debug\662j542a\arm64-v8a -GNinja}
[ +1 ms] -- Detecting C compiler ABI info
[ ] -- Detecting C compiler ABI info - done
[ ] -- Check for working C compiler: D:/Sistema/ADT/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped
[ ] -- Detecting C compile features
[ ] -- Detecting C compile features - done
[ ] -- Detecting CXX compiler ABI info
[ ] -- Detecting CXX compiler ABI info - failed
[ ] -- Check for working CXX compiler: D:/Sistema/ADT/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
[ ] -- Check for working CXX compiler: D:/Sistema/ADT/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - broken
[ ] -- Configuring incomplete, errors occurred!
[ ] See also "C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeOutput.log".
[ ] See also "C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeError.log".
[ ] CMake Warning (dev) in CMakeLists.txt:
[ ] No project() command is present. The top-level CMakeLists.txt file must
[ ] contain a literal, direct call to the project() command. Add a line of
[ ] code such as
[ ] project(ProjectName)
[ ] near the top of the file, but after cmake_minimum_required().
[ ] CMake is pretending there is a "project(Project)" command on the first
[ ] line.
[ ] This warning is for project developers. Use -Wno-dev to suppress it.
[ ] CMake Warning at D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
[ ] An old version of CMake is being used that cannot automatically detect
[ ] compiler attributes. Compiler identification is being bypassed. Some
[ ] values may be wrong or missing. Update to CMake 3.19 or newer to use
[ ] CMake's built-in compiler identification.
[ ] Call Stack (most recent call first):
[ ] D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
[ ] D:/Sistema/ADT/sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
[ ] CMake Warning at D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
[ ] An old version of CMake is being used that cannot automatically detect
[ ] compiler attributes. Compiler identification is being bypassed. Some
[ ] values may be wrong or missing. Update to CMake 3.19 or newer to use
[ ] CMake's built-in compiler identification.
[ ] Call Stack (most recent call first):
[ ] D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
[ ]
C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
[ ] C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
[ +2 ms] CMake Warning at D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
[ ] An old version of CMake is being used that cannot automatically detect
[ ] compiler attributes. Compiler identification is being bypassed. Some
[ ] values may be wrong or missing. Update to CMake 3.19 or newer to use
[ ] CMake's built-in compiler identification.
[ ] Call Stack (most recent call first):
[ +1 ms] D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
[ +1 ms]
C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
[ +1 ms] C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
[ ] CMake Warning at D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
[ ] An old version of CMake is being used that cannot automatically detect
[ ] compiler attributes. Compiler identification is being bypassed. Some
[ ] values may be wrong or missing. Update to CMake 3.19 or newer to use
[ ] CMake's built-in compiler identification.
[ ] Call Stack (most recent call first):
[ ] D:/Sistema/ADT/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
[ ]
C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
[ ] C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
[ +1 ms] CMake Error at D:/Sistema/ADT/sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeTestCXXCompiler.cmake:59 (message):
[ ] The C++ compiler
[ ] "D:/Sistema/ADT/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe"
[ ] is not able to compile a simple test program.
[ ] It fails with the following output:
[ ] Change Dir: C:/Users/usert/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.1.0/android/.cxx/Debug/662j542a/arm64-v8a/CMakeFiles/CMakeTmp
[ ] Run Build Command(s):D:\Sistema\ADT\sdk\cmake\3.18.1\bin\ninja.exe cmTC_af1e1 && ninja: fatal: CreateProcess: %1 no es una aplicaci�n Win32 v�lida.
[ +5 ms] CMake will not be able to correctly generate this project.
[ +1 ms] at com.android.builder.errors.IssueReporter.reportError(IssueReporter.kt:109)
[ ] at com.android.builder.errors.IssueReporter.reportError$default(IssueReporter.kt:105)
[ ] at com.android.build.gradle.internal.cxx.logging.IssueReporterLoggingEnvironment.log(IssueReporterLoggingEnvironment.kt:109)
[ ] at com.android.build.gradle.internal.cxx.logging.ThreadLoggingEnvironment$Companion.reportFormattedErrorToCurrentLogger(LoggingEnvironment.kt:210)
[ ] at com.android.build.gradle.internal.cxx.logging.LoggingEnvironmentKt.errorln(LoggingEnvironment.kt:52)
[ ] at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.generate(ExternalNativeJsonGenerator.kt:117)
[ ] at com.android.build.gradle.tasks.ExternalNativeBuildJsonTask.doTaskAction(ExternalNativeBuildJsonTask.kt:67)
[ ] 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.NativeMethodAccessorImpl.invoke0(Native Method)
[ ] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[ ] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ ] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[ ] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)
[ ] 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)
[ +1 ms] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
[ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
[ +1 ms] 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)
[ ] * Get more help at https://help.gradle.org
[ ] BUILD FAILED in 31s
[ ] 119 actionable tasks: 22 executed, 97 up-to-date
[ ] Watched directory hierarchies: [C:\FlutterC\sequentias\android]
[ +515 ms] Running Gradle task 'assembleDebug'... (completed in 32,5s)
[ +2 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +4 ms] "flutter run" took 34.322ms.
[ +5 ms]
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:757:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1336:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:296:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:244:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:91:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>
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 CompileSdkVersion: 31 NdkVersion: 25.1.8937393 Flutter version: 3.10.6 Dart version: 3.0.6
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 flutter run --verbose
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: https://github.com/rive-app/rive-flutter/issues/323#issuecomment-1638880701
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.
Attached the flutter run --verbose output
I have both CMake 3.22.1 and 3.18.1. I have tried to remove 3.18.1, but it install automatically in the build process. Also I have tried removing 3.22.1. It can be removed, but it does not solve the problem.
have the same issue: run on windows... rive 11.14 latest CMake,
here is the debug:
What went wrong: Execution failed for task ':rive_common:buildCMakeDebug[x86]'.
com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\Users\amoyapc\AppData\Local\Pub\Cache\hosted\pub.dev\rive_common-0.2.6\android.cxx\Debug\1j6z3d21\x86' [1/1] Linking CXX shared library E:\Flutter_projects\new_chat\new_chat_app\build\rive_common\intermediates\cxx\Debug\1j6z3d21\obj\x86\librive_text.so FAILED: E:/Flutter_projects/new_chat/new_chat_app/build/rive_common/intermediates/cxx/Debug/1j6z3d21/obj/x86/librive_text.so cmd.exe /C "cd . && C:\Users\amoyapc\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android19 --sysroot=C:/Users/amoyapc/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -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 E:\Flutter_projects\new_chat\new_chat_app\build\rive_common\intermediates\cxx\Debug\1j6z3d21\obj\x86\librive_text.so @CMakeFiles\rive_text.rsp && cd ." ld: error: CMakeFiles/rivetext.dir/C/Users/amoyapc/AppData/Local/Pub/Cache/hosted/pub.dev/rive_common-0.2.6/ios/harfbuzz/src/hb-subset.cc.o: invalid sh_type for string table section [index 1]: expected SHT_STRTAB, but got SHT_NULL clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.
C++ build system [build] failed while executing: @echo off "C:\Users\amoyapc\AppData\Local\Android\sdk\cmake\3.18.1\bin\ninja.exe" ^ -C ^ "C:\Users\amoyapc\AppData\Local\Pub\Cache\hosted\pub.dev\rive_common-0.2.6\android\.cxx\Debug\1j6z3d21\x86" ^ rive_text from C:\Users\amoyapc\AppData\Local\Pub\Cache\hosted\pub.dev\rive_common-0.2.6\android
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.
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:
CMakeFiles/rive_text.dir/Users/ss/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47
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 pubspec.yaml
:
rive:
path: ./rive_flutter
rive_common:
path: ./rive_common
It seems that the problem really lies in paths to package in the user home directory.
Windows
Flutter 3.16.0 • channel stable • git@github.com:flutter/flutter.git
Framework • revision db7ef5bf9f (12 days ago) • 2023-11-15 11:25:44 -0800
Engine • revision 74d16627b9
Tools • Dart 3.2.0 • DevTools 2.28.2
any updates ? I have the same issues
My device: MacOS 14.2.1 (23C71) Build iOS successfully but Android has ERROR
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':rive_common:configureCMakeRelWithDebInfo[arm64-v8a]'.
> [CXX1405] error when building with cmake using /Users/nhanta/.pub-cache/hosted/pub.dev/rive_common-0.2.8/android/CMakeLists.txt: Build command failed.
Error while executing process /Users/nhanta/Library/Android/sdk/cmake/3.18.1/bin/cmake with arguments {-H/Users/nhanta/.pub-cache/hosted/pub.dev/rive_common-0.2.8/android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=19 -DANDROID_PLATFORM=android-19 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=/Users/nhanta/Library/Android/sdk/ndk/25.1.8937393 -DCMAKE_ANDROID_NDK=/Users/nhanta/Library/Android/sdk/ndk/25.1.8937393 -DCMAKE_TOOLCHAIN_FILE=/Users/nhanta/Library/Android/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/nhanta/Library/Android/sdk/cmake/3.18.1/bin/ninja -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/nhanta/Desktop/nexlab/source/nexlab-ai-assistant/apps/main/build/rive_common/intermediates/cxx/RelWithDebInfo/3140s4w6/obj/arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/nhanta/Desktop/nexlab/source/nexlab-ai-assistant/apps/main/build/rive_common/intermediates/cxx/RelWithDebInfo/3140s4w6/obj/arm64-v8a -DCMAKE_BUILD_TYPE=RelWithDebInfo -B/Users/nhanta/.pub-cache/hosted/pub.dev/rive_common-0.2.8/android/.cxx/RelWithDebInfo/3140s4w6/arm64-v8a -GNinja}
-- Configuring incomplete, errors occurred!
See also "/Users/nhanta/.pub-cache/hosted/pub.dev/rive_common-0.2.8/android/.cxx/RelWithDebInfo/3140s4w6/arm64-v8a/CMakeFiles/CMakeOutput.log".
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning at /Users/nhanta/Library/Android/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
An old version of CMake is being used that cannot automatically detect
compiler attributes. Compiler identification is being bypassed. Some
values may be wrong or missing. Update to CMake 3.19 or newer to use
CMake's built-in compiler identification.
Call Stack (most recent call first):
/Users/nhanta/Library/Android/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
/Users/nhanta/Library/Android/sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
CMake Error in CMakeLists.txt:
The CMAKE_C_COMPILER:
/Users/nhanta/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error in CMakeLists.txt:
The CMAKE_CXX_COMPILER:
/Users/nhanta/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
* 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
Latest CMAKE Lastest NDK
Flutter 3.13.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d211f42860 (10 weeks ago) • 2023-10-25 13:42:25 -0700
Engine • revision 0545f8705d
Tools • Dart 3.1.5 • DevTools 2.25.0
@cperisson1 did you find a solution to this?
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 delete the flutter installation folder
and download it manually from the official website. This is a well-known error due to installation by snap, it may not be the best solution for now but it will save you headaches if you are not using the latest versions of both Android Sutido and flutter.
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
Try:
Get more help at https://help.gradle.org
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