Skip to content

The detected version of Ninja () is less than the version of Ninja required by CMake  #4

@sebasira

Description

@sebasira

I was using https://github.com/jangrewe/gitlab-ci-android and switch to this image to try it out.

I'm getting this error, and I do not know how to solve it:

218 > Build command failed.
219  Error while executing process /sdk/cmake/3.6.4111459/bin/cmake with arguments {-H/builds/sebasira/android-module-boilerplate/app/src/main/cpp -B/builds/sebasira/android-module-boilerplate/app/.cxx/cmake/release/armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-19 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/builds/sebasira/android-module-boilerplate/app/build/intermediates/cmake/release/obj/armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=/sdk/ndk/21.3.6528147 -DCMAKE_CXX_FLAGS=-frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=/sdk/ndk/21.3.6528147/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/sdk/cmake/3.6.4111459/bin/ninja -GAndroid Gradle - Ninja}
220  -- Check for working C compiler: /sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
221  -- Check for working C compiler: /sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- broken
222  -- Configuring incomplete, errors occurred!
223  See also "/builds/sebasira/android-module-boilerplate/app/.cxx/cmake/release/armeabi-v7a/CMakeFiles/CMakeOutput.log".
224  See also "/builds/sebasira/android-module-boilerplate/app/.cxx/cmake/release/armeabi-v7a/CMakeFiles/CMakeError.log".
225  
226  CMake Error:
227    The detected version of Ninja () is less than the version of Ninja required
228    by CMake (1.3).
229  
230Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
231Use '--warning-mode all' to show the individual deprecation warnings.
232See https://docs.gradle.org/5.6.4/userguide/command_line_interface.html#sec:command_line_warnings
233  
234  CMake Error: Internal CMake error, TryCompile generation of cmake failed
235  CMake Error at /sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:61 (message):
236    The C compiler
237    "/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/bin/clang" is
238    not able to compile a simple test program.
239  
240    It fails with the following output:
241  
242     
243  
244    
245  
246    CMake will not be able to correctly generate this project.
247  Call Stack (most recent call first):
248    CMakeLists.txt

Which I do not have with the jangrewe image and the project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions