jitpack.io
jitpack.io copied to clipboard
CMake '3.31.6' was not found in SDK, PATH, or by cmake.dir property.
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.
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./
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
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.
I really hope you could solve the problem, it wasted me a long time.
https://github.com/Kyant0/taglib/commit/260f864486420f77b9bb0bc26e338a7b4572d906
This issue is stale because it has been open for 30 days with no activity.
No stale
This issue is stale because it has been open for 30 days with no activity.
Hey, you are so irresponsible
This issue is stale because it has been open for 30 days with no activity.
ShitPack
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.