

- #ANDROID GRADLE CMAKE INSTALL HOW TO#
- #ANDROID GRADLE CMAKE INSTALL FOR ANDROID#
- #ANDROID GRADLE CMAKE INSTALL ANDROID#
Variant=debug ABI=armeabi-v7a : Command:“C:\Users\bea034\AppData\Local\Android\sdk\cmake\560\bin\ninja.exe” Variant=debug ABI=armeabi-v7a : Run Build

Variant=debug ABI=armeabi-v7a : Change Dir: C:/GAME-ENGINES/Urho3D-gradle-kotlin/android/urho3d-lib/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeTmp Variant=debug ABI=armeabi-v7a : It fails with the following output: Variant=debug ABI=armeabi-v7a : is not able to compile a simple test program. Variant=debug ABI=armeabi-v7a : “C:/Users/bea034/AppData/Local/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe” Variant=debug ABI=armeabi-v7a : The C compiler Variant=debug ABI=armeabi-v7a :CMake Error at C:/Users/bea034/AppData/Local/Android/sdk/cmake/560/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:61 (message): Variant=debug ABI=armeabi-v7a :- Check for working C compiler: C:/Users/bea034/AppData/Local/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe – broken Variant=debug ABI=armeabi-v7a :- Check for working C compiler: C:/Users/bea034/AppData/Local/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe Task :android:urho3d-lib:generateJsonModelDebug So, user needs to either:ī) adjust the PATH env var to include the path to SDK embedded “ninja” command, orĬ) change the default make program to GNU Make, this require modifying the provided though.Įdit: this prerequisite is not needed anymore as the new build script will automatically pass along the path to embedded “ninja” when invoking CMake in external child process. It does not cater for any “external” invocation indirectly done by our CMake scripts and therefore the overall CMake configuration ends up with a failure because of “ninja” command is not found. This is fine for CMakeLists.txt file that the plugin invokes directly. However, it is done by specifying a hard-coded path to the SDK embedded “ninja” command.
#ANDROID GRADLE CMAKE INSTALL ANDROID#
The Android plugin has opinionated to use “ninja” build (not surprising as it was created by Google too) instead of the usual GNU Make. In the process I found out one more thing user need to do in order to build successfully. Just managed to get the Android CI build run successfully this morning. Before building the project, press Ctrl+Alt+S and type “configure on demand” in the search box, locate the option and deselect it. It should prompt you to auto-import the Gradle project. gradlew buildįor Android Studio user, open the project using the IDE. You have been warned.įor CLI user, after checking out the development branch, cd to the Urho3D project root and run. Please test the build system on Urho3D project only, or if you want to try it on your own project then make sure you have a proper backup plan due to symlink bug. However, if you don’t modify the gradle build script in Android Studio editor then you should not see the problem at all.
#ANDROID GRADLE CMAKE INSTALL HOW TO#
The workaround only works when invoking gradle wrapper from the CLI (Still haven’t figured out how to prevent the Android plugin bug to manifest itself during Android Studio “gradle sync”).

I have only tested it on Linux host system with symlink workaround I mentioned in.

#ANDROID GRADLE CMAKE INSTALL FOR ANDROID#
I haven’t finished clean up the CMake build script to remove now old and redundant fixtures for Android build. I have pushed the initial Gradle build system for Android to gradle-kotlin-dsl development branch.
