jitpack.io icon indicating copy to clipboard operation
jitpack.io copied to clipboard

CMake '3.31.6' was not found in SDK, PATH, or by cmake.dir property.

Open Kyant0 opened this issue 8 months ago • 8 comments

Please provide:

  • Link to build log https://jitpack.io/com/github/Kyant0/taglib/1.0.1/build.log

  • Does the project build on your machine with the same commands as in the log (e.g. gradle install) ?

Yes

  • What error are you seeing?

JitPack can't build with new CMake.

CMake '3.31.6' was not found in SDK, PATH, or by cmake.dir property.

Kyant0 avatar Mar 24 '25 00:03 Kyant0

I've been getting this too recently. two or three days ago, on Github actions, I was trying to build but I had this error. I didn't know what to do, so I reran the workflow and it decided to work again.

now, it seems to no longer work, no matter how much I re run, hence this comment.

when "gradlew assembleDebug" is run, I get (after other outputs):

> Task :app:configureCMakeRelWithDebInfo[arm64-v8a] FAILED
1 actionable task: 1 executed

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:configureCMakeRelWithDebInfo[arm64-v8a]'.
> [CXX1300] CMake '3.31.6' was not found in SDK, PATH, or by cmake.dir property.

* 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./

AliasAccount avatar Apr 01 '25 21:04 AliasAccount

Hi

JitPack supports custom commands in jitpack.yml so you could install your dependencies before the build.

before_install:
  - sdkmanager "cmake;3.31.6"
build:
  image: latest

jitpack-io avatar Apr 03 '25 14:04 jitpack-io

I did it previously, but it will say something missing in the JDK so that the Android SDK can't be installed. I searched and find you should use JDK8 then use JDK21. But it's still problematic.

Kyant0 avatar Apr 03 '25 14:04 Kyant0

I really hope you could solve the problem, it wasted me a long time.

https://github.com/Kyant0/taglib/commit/260f864486420f77b9bb0bc26e338a7b4572d906

Kyant0 avatar Apr 03 '25 14:04 Kyant0

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 04 '25 02:05 github-actions[bot]

No stale

Kyant0 avatar May 04 '25 02:05 Kyant0

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 04 '25 02:06 github-actions[bot]

Hey, you are so irresponsible

Kyant0 avatar Jun 04 '25 02:06 Kyant0

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 08 '25 02:07 github-actions[bot]

ShitPack

Kyant0 avatar Jul 08 '25 02:07 Kyant0

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 08 '25 02:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Aug 27 '25 02:08 github-actions[bot]