building Android Project - unable to find "Ninja"

1,242 views
Skip to first unread message

mjkuwp94

unread,
Mar 9, 2021, 7:20:48 AM3/9/21
to openthread-users
Hello,

after having completed the native build successfully
https://openthread.io/guides/commissioner/build

 I am following
openthread/ot-commissioner/blob/main/android/BUILDING.md


pretty much the first step is to run the script
ANDROID_ABI=arm64-v8a ANDROID_NDK_HOME=$HOME/Library/Android/sdk/ndk-bundle ./build-commissioner-libs.sh

it fails with this message

CMake Error at /usr/share/cmake-3.16/Modules/CMakeDetermineSystem.cmake:99 (message):
  Could not find toolchain file:
  /home/mark/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake
Call Stack (most recent call first):
  CMakeLists.txt:30 (project)


CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!


My build computer is Ubuntu 20.04.2.0 LTS on x64 (mac mini) just to do these OpenThread projects so it is pretty fresh.

does anyone know the problem?


thanks!

Mark


Kangping Dong

unread,
Mar 9, 2021, 7:27:37 AM3/9/21
to mjkuwp94, openthread-users
Hi,

You need an Android NDK to build the  example App.
You can find more information about Android NDK CMake toolchain at https://developer.android.com/ndk/guides/cmake.

BRs,
Kangping



--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/9c58bcd3-c1aa-4fcd-bb14-eca095afc518n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages