Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

lsplant build error with AndroidStudio #126

Closed
DysaniazzZ opened this issue Dec 26, 2024 · 3 comments
Closed

lsplant build error with AndroidStudio #126

DysaniazzZ opened this issue Dec 26, 2024 · 3 comments

Comments

@DysaniazzZ
Copy link

AndroidStudio:

Android Studio Ladybug | 2024.2.1 Patch 3
Build #AI-242.23339.11.2421.12700392, built on November 23, 2024
Runtime version: 21.0.3+-79915917-b509.11 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.1.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
  ide.experimental.ui=true
  i18n.locale=
  terminal.new.ui=true
Non-Bundled Plugins:
  org.jf.smalidea (0.06-dev)
  idea.plugin.protoeditor (242.23339.11)

NDK: 27.0.12077973
CMake: 3.31.0

ErrorLog:

[CXX1429] error when building with cmake using /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/src/main/jni/CMakeLists.txt: -- The C compiler identification is Clang 18.0.1
-- The CXX compiler identification is Clang 18.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building lsplant as a shared library
-- Configuring incomplete, errors occurred!

C++ build system [configure] failed while executing:
    /Users/xxx/Library/Android/sdk/cmake/3.31.0/bin/cmake \
      -H/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/src/main/jni \
      -DCMAKE_SYSTEM_NAME=Android \
      -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
      -DCMAKE_SYSTEM_VERSION=21 \
      -DANDROID_PLATFORM=android-21 \
      -DANDROID_ABI=arm64-v8a \
      -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
      -DANDROID_NDK=/Users/xxx/Library/Android/sdk/ndk/27.0.12077973 \
      -DCMAKE_ANDROID_NDK=/Users/xxx/Library/Android/sdk/ndk/27.0.12077973 \
      -DCMAKE_TOOLCHAIN_FILE=/Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake \
      -DCMAKE_MAKE_PROGRAM=/Users/xxx/Library/Android/sdk/cmake/3.31.0/bin/ninja \
      "-DCMAKE_C_FLAGS=-std=c2x -Wall -Qunused-arguments -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fno-stack-protector -fomit-frame-pointer -Wno-builtin-macro-redefined -Wno-unused-value -D__FILE__=__FILE_NAME__ -Werror -Wno-gnu-string-literal-operator-template" \
      "-DCMAKE_CXX_FLAGS=-std=c++2b -Wall -Qunused-arguments -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fno-stack-protector -fomit-frame-pointer -Wno-builtin-macro-redefined -Wno-unused-value -D__FILE__=__FILE_NAME__ -Werror -Wno-gnu-string-literal-operator-template" \
      -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/build/intermediates/cxx/Debug/6w6e2w5y/obj/arm64-v8a \
      -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/build/intermediates/cxx/Debug/6w6e2w5y/obj/arm64-v8a \
      -DCMAKE_BUILD_TYPE=Debug \
      -DCMAKE_FIND_ROOT_PATH=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/prefab/arm64-v8a/prefab \
      -B/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a \
      -GNinja \
      -DCMAKE_CXX_FLAGS_DEBUG=-Og \
      -DCMAKE_C_FLAGS_DEBUG=-Og \
      -DANDROID_STL=c++_shared \
      -DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON \
      -DDEBUG_SYMBOLS_PATH=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/build/symbols/debug
  from /Users/xxx/AndroidStudioProjects/LSPlant/lsplant
CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/Library/Android/sdk/cmake/3.31.0/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:55 (include)
  /Users/xxx/Library/Android/sdk/cmake/3.31.0/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/3.31.0-g356e6de/CMakeSystem.cmake:6 (include)
  CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/3.31.0-g356e6de/CMakeSystem.cmake:6 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-uQl35N/CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:55 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/3.31.0-g356e6de/CMakeSystem.cmake:6 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-uQl35N/CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/3.31.0-g356e6de/CMakeSystem.cmake:6 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-mOJCkm/CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:55 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/3.31.0-g356e6de/CMakeSystem.cmake:6 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-mOJCkm/CMakeLists.txt:2 (project)


CMake Error at CMakeLists.txt:25 (add_subdirectory):
  The source directory

    /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/src/main/jni/external/dex_builder

  does not contain a CMakeLists.txt file. : com.android.ide.common.process.ProcessException: -- The C compiler identification is Clang 18.0.1
-- The CXX compiler identification is Clang 18.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building lsplant as a shared library
-- Configuring incomplete, errors occurred!

C++ build system [configure] failed while executing:
    /Users/xxx/Library/Android/sdk/cmake/3.31.0/bin/cmake \
      -H/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/src/main/jni \
      -DCMAKE_SYSTEM_NAME=Android \
      -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
      -DCMAKE_SYSTEM_VERSION=21 \
      -DANDROID_PLATFORM=android-21 \
      -DANDROID_ABI=arm64-v8a \
      -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
      -DANDROID_NDK=/Users/xxx/Library/Android/sdk/ndk/27.0.12077973 \
      -DCMAKE_ANDROID_NDK=/Users/xxx/Library/Android/sdk/ndk/27.0.12077973 \
      -DCMAKE_TOOLCHAIN_FILE=/Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake \
      -DCMAKE_MAKE_PROGRAM=/Users/xxx/Library/Android/sdk/cmake/3.31.0/bin/ninja \
      "-DCMAKE_C_FLAGS=-std=c2x -Wall -Qunused-arguments -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fno-stack-protector -fomit-frame-pointer -Wno-builtin-macro-redefined -Wno-unused-value -D__FILE__=__FILE_NAME__ -Werror -Wno-gnu-string-literal-operator-template" \
      "-DCMAKE_CXX_FLAGS=-std=c++2b -Wall -Qunused-arguments -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fno-stack-protector -fomit-frame-pointer -Wno-builtin-macro-redefined -Wno-unused-value -D__FILE__=__FILE_NAME__ -Werror -Wno-gnu-string-literal-operator-template" \
      -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/build/intermediates/cxx/Debug/6w6e2w5y/obj/arm64-v8a \
      -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/build/intermediates/cxx/Debug/6w6e2w5y/obj/arm64-v8a \
      -DCMAKE_BUILD_TYPE=Debug \
      -DCMAKE_FIND_ROOT_PATH=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/prefab/arm64-v8a/prefab \
      -B/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a \
      -GNinja \
      -DCMAKE_CXX_FLAGS_DEBUG=-Og \
      -DCMAKE_C_FLAGS_DEBUG=-Og \
      -DANDROID_STL=c++_shared \
      -DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON \
      -DDEBUG_SYMBOLS_PATH=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/build/symbols/debug
  from /Users/xxx/AndroidStudioProjects/LSPlant/lsplant
CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/Library/Android/sdk/cmake/3.31.0/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:55 (include)
  /Users/xxx/Library/Android/sdk/cmake/3.31.0/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/3.31.0-g356e6de/CMakeSystem.cmake:6 (include)
  CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/3.31.0-g356e6de/CMakeSystem.cmake:6 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-uQl35N/CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:55 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/3.31.0-g356e6de/CMakeSystem.cmake:6 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-uQl35N/CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/3.31.0-g356e6de/CMakeSystem.cmake:6 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-mOJCkm/CMakeLists.txt:2 (project)


CMake Deprecation Warning at /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake:55 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/3.31.0-g356e6de/CMakeSystem.cmake:6 (include)
  /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-mOJCkm/CMakeLists.txt:2 (project)


CMake Error at CMakeLists.txt:25 (add_subdirectory):
  The source directory

    /Users/xxx/AndroidStudioProjects/LSPlant/lsplant/src/main/jni/external/dex_builder

  does not contain a CMakeLists.txt file.
	at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:288)
	at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:108)
	at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:106)
	at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32)
	at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess(ExecuteProcess.kt:106)
	at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess$default(ExecuteProcess.kt:85)
	at com.android.build.gradle.tasks.CmakeQueryMetadataGenerator.executeProcess(CmakeFileApiMetadataGenerator.kt:59)
	at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:247)
	at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:247)
	at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32)
	at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configureOneAbi(ExternalNativeJsonGenerator.kt:247)
	at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configure(ExternalNativeJsonGenerator.kt:113)
	at com.android.build.gradle.tasks.ExternalNativeBuildJsonTask.doTaskAction(ExternalNativeBuildJsonTask.kt:89)
	at com.android.build.gradle.internal.tasks.UnsafeOutputsTask$taskAction$$inlined$recordTaskAction$1.invoke(BaseTask.kt:78)
	at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:51)
	at com.android.build.gradle.internal.tasks.UnsafeOutputsTask.taskAction(UnsafeOutputsTask.kt:81)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
	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:244)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
	at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:229)
	at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:212)
	at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:195)
	at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:162)
	at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
	at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
	at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
	at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:209)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
	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:166)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56)
	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
	at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:42)
	at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:75)
	at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
	at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:50)
	at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:28)
	at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
	at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
	at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:61)
	at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:26)
	at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:69)
	at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:46)
	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
	at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:189)
	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:62)
	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:46)
	at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:35)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:75)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:53)
	at java.base/java.util.Optional.orElseGet(Unknown Source)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:53)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:35)
	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.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:49)
	at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:27)
	at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:71)
	at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:39)
	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)
	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)
	at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:107)
	at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:56)
	at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:64)
	at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:43)
	at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.executeWithNonEmptySources(AbstractSkipEmptyWorkStep.java:125)
	at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:56)
	at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:36)
	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
	at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:75)
	at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:41)
	at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.lambda$execute$0(AssignMutableWorkspaceStep.java:35)
	at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:289)
	at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:31)
	at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:22)
	at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:40)
	at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:23)
	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:67)
	at java.base/java.util.Optional.orElseGet(Unknown Source)
	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:67)
	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:39)
	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:46)
	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:34)
	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:48)
	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:35)
	at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:61)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:127)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:116)
	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:74)
	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:209)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
	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:166)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
	at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:85)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:459)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:376)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: com.android.ide.common.process.ProcessException: Error while executing process /Users/xxx/Library/Android/sdk/cmake/3.31.0/bin/cmake with arguments {-H/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/src/main/jni -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=21 -DANDROID_PLATFORM=android-21 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=/Users/xxx/Library/Android/sdk/ndk/27.0.12077973 -DCMAKE_ANDROID_NDK=/Users/xxx/Library/Android/sdk/ndk/27.0.12077973 -DCMAKE_TOOLCHAIN_FILE=/Users/xxx/Library/Android/sdk/ndk/27.0.12077973/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/xxx/Library/Android/sdk/cmake/3.31.0/bin/ninja -DCMAKE_C_FLAGS=-std=c2x -Wall -Qunused-arguments -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fno-stack-protector -fomit-frame-pointer -Wno-builtin-macro-redefined -Wno-unused-value -D__FILE__=__FILE_NAME__ -Werror -Wno-gnu-string-literal-operator-template -DCMAKE_CXX_FLAGS=-std=c++2b -Wall -Qunused-arguments -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fno-stack-protector -fomit-frame-pointer -Wno-builtin-macro-redefined -Wno-unused-value -D__FILE__=__FILE_NAME__ -Werror -Wno-gnu-string-literal-operator-template -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/build/intermediates/cxx/Debug/6w6e2w5y/obj/arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/build/intermediates/cxx/Debug/6w6e2w5y/obj/arm64-v8a -DCMAKE_BUILD_TYPE=Debug -DCMAKE_FIND_ROOT_PATH=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/prefab/arm64-v8a/prefab -B/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/.cxx/Debug/6w6e2w5y/arm64-v8a -GNinja -DCMAKE_CXX_FLAGS_DEBUG=-Og -DCMAKE_C_FLAGS_DEBUG=-Og -DANDROID_STL=c++_shared -DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON -DDEBUG_SYMBOLS_PATH=/Users/xxx/AndroidStudioProjects/LSPlant/lsplant/build/symbols/debug}
	at com.android.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:73)
	at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:48)
	at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:277)
	... 139 more
Caused by: org.gradle.process.internal.ExecException: Process 'command '/Users/xxx/Library/Android/sdk/cmake/3.31.0/bin/cmake'' finished with non-zero exit value 1
	at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:442)
	at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:46)
	... 140 more
@lbwengineer
Copy link

好好学习,多学习,Cmake语法

@dailybaldman
Copy link

你是不是用的win系统, 然后as无法直接拉取这个工程,然后手动下载了压缩包导入工程,然后dex_builder、parallel-hashmap这两个子目录是空的?回去看下这两个目录:
①LSPlant-master\lsplant\src\main\jni\external\dex_builder
②LSPlant-master\lsplant\src\main\jni\external\dex_builder\external\parallel_hashmap
如果是空的,使用同样的方法下载这两个包填回去就可以了

最后告诉你,还是编译失败.我的电脑上提示ninja当前版本1.8.2太低了, 请使用1.12以上的版本,该版本支持c++ modules.
仔细阅读配置文件后,发现这个工程的生产环境是ubuntu,看来我太菜了,搞不定. 有在win上面跑成功的大佬记得告诉我,谢谢!

@vvb2060
Copy link
Member

vvb2060 commented Jan 6, 2025

https://github.com/LSPosed/LSPlant/actions/runs/11706236661
CI builds fine: windows-latest, ubuntu-latest, macos-14

@vvb2060 vvb2060 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants