Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

Issue when building gradle #1

Description

@TheOneMonkey

I have read many comments regarding your project using CMake in other blogs. So, I have downloaded to have the clear look of your project. When I am trying to build the gradle for the first time I got errors. I have downloaded CMake in SDK Manager.

Build command failed.

Error while executing process C:\Users\Surya Achyuta\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HC:\Users\Surya Achyuta\Pictures\programming\Android\AndroidNDKDemos-master\nativeconstants -BC:\Users\Surya Achyuta\Pictures\programming\Android\AndroidNDKDemos-master\nativeconstants.externalNativeBuild\cmake\debug\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-14 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Surya Achyuta\Pictures\programming\Android\AndroidNDKDemos-master\nativeconstants\build\intermediates\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=C:\Users\Surya Achyuta\AppData\Local\Android\Sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=C:\Users\Surya Achyuta\AppData\Local\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=C:\Users\Surya Achyuta\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}

-- Check for working C compiler: C:/Users/Surya Achyuta/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe

-- Check for working C compiler: C:/Users/Surya Achyuta/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken

/Users/Surya Achyuta/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" is not able to compile a simple test program.
Open File

It fails with the following output:

Change Dir: C:/Users/Surya Achyuta/Pictures/programming/Android/AndroidNDKDemos-master/nativeconstants/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeTmp

Run Build Command:"C:/Users/Surya

Achyuta/AppData/Local/Android/Sdk/cmake/3.6.4111459/bin/ninja.exe"

"cmTC_97263"

[1/2] Building C object CMakeFiles/cmTC_97263.dir/testCCompiler.c.o

FAILED:

C:\Users\SURYAA1\AppData\Local\Android\Sdk\NDK-BU1\TOOLCH1\llvm\prebuilt\WINDOW1\bin\clang.exe

--target=armv7-none-linux-androideabi --gcc-toolchain="C:/Users/Surya

Achyuta/AppData/Local/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64"

--sysroot="C:/Users/Surya

Achyuta/AppData/Local/Android/Sdk/ndk-bundle/sysroot" -isystem

C:/Users/Surya

Achyuta/AppData/Local/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi

-D__ANDROID_API__=14 -g -DANDROID -ffunction-sections -funwind-tables

-fstack-protector-strong -no-canonical-prefixes -march=armv7-a

-mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat

-Werror=format-security -o CMakeFiles/cmTC_97263.dir/testCCompiler.c.o -c

"C:\Users\Surya

Achyuta\Pictures\programming\Android\AndroidNDKDemos-master\nativeconstants.externalNativeBuild\cmake\debug\armeabi-v7a\CMakeFiles\CMakeTmp\testCCompiler.c"

error: no such file or directory:

'Achyuta/AppData/Local/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi'

ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt

-- Configuring incomplete, errors occurred!

See also "C:/Users/Surya Achyuta/Pictures/programming/Android/AndroidNDKDemos-master/nativeconstants/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeOutput.log".

See also "C:/Users/Surya Achyuta/Pictures/programming/Android/AndroidNDKDemos-master/nativeconstants/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeError.log".

Build command failed.

Error while executing process C:\Users\Surya Achyuta\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HC:\Users\Surya Achyuta\Pictures\programming\Android\AndroidNDKDemos-master\nativeconstants -BC:\Users\Surya Achyuta\Pictures\programming\Android\AndroidNDKDemos-master\nativeconstants.externalNativeBuild\cmake\release\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-14 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Surya Achyuta\Pictures\programming\Android\AndroidNDKDemos-master\nativeconstants\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=C:\Users\Surya Achyuta\AppData\Local\Android\Sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=C:\Users\Surya Achyuta\AppData\Local\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=C:\Users\Surya Achyuta\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}

-- Check for working C compiler: C:/Users/Surya Achyuta/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe

-- Check for working C compiler: C:/Users/Surya Achyuta/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken

/Users/Surya Achyuta/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" is not able to compile a simple test program.
Open File

It fails with the following output:

Change Dir: C:/Users/Surya Achyuta/Pictures/programming/Android/AndroidNDKDemos-master/nativeconstants/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeTmp

Run Build Command:"C:/Users/Surya

Achyuta/AppData/Local/Android/Sdk/cmake/3.6.4111459/bin/ninja.exe"

"cmTC_96c73"

[1/2] Building C object CMakeFiles/cmTC_96c73.dir/testCCompiler.c.o

FAILED:

C:\Users\SURYAA1\AppData\Local\Android\Sdk\NDK-BU1\TOOLCH1\llvm\prebuilt\WINDOW1\bin\clang.exe

--target=armv7-none-linux-androideabi --gcc-toolchain="C:/Users/Surya

Achyuta/AppData/Local/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64"

--sysroot="C:/Users/Surya

Achyuta/AppData/Local/Android/Sdk/ndk-bundle/sysroot" -isystem

C:/Users/Surya

Achyuta/AppData/Local/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi

-D__ANDROID_API__=14 -g -DANDROID -ffunction-sections -funwind-tables

-fstack-protector-strong -no-canonical-prefixes -march=armv7-a

-mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat

-Werror=format-security -o CMakeFiles/cmTC_96c73.dir/testCCompiler.c.o -c

"C:\Users\Surya

Achyuta\Pictures\programming\Android\AndroidNDKDemos-master\nativeconstants.externalNativeBuild\cmake\release\armeabi-v7a\CMakeFiles\CMakeTmp\testCCompiler.c"

error: no such file or directory:

'Achyuta/AppData/Local/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi'

ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt

-- Configuring incomplete, errors occurred!

See also "C:/Users/Surya Achyuta/Pictures/programming/Android/AndroidNDKDemos-master/nativeconstants/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeOutput.log".

See also "C:/Users/Surya Achyuta/Pictures/programming/Android/AndroidNDKDemos-master/nativeconstants/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeError.log".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions