Search code examples
androidandroid-ndkcygwintelegram

Telegram NDK build : Command not found


I have followed the steps mention in this link to run the Telegram github project in android studio 1.5.1. When I try to run the ndkbuild command in cygwin terminal but I got command not found message in the cygwin terminal, Please check the screenshot of my cygwin terminal and I'm able to list the file in jni folder also I have added the below command in the bashrc file

export ndkbuild=/cygdrive/c/android-ndk-r10e/ndk-build.cmd

but it's not working, Please let me know where I have done wrong.

enter image description here

enter image description here

enter image description here


Solution

  • Finally I have found the answer after referring many stackoverflow link

    I have downloaded the ndk and extract it in the folder.

    And opened the android studio terminal, navigated to ndk folder.

    finally I ran the following command ndk-build -C xxxxxxx\Telegram-master\TMessagesProj\jni

    and it gets compiled and I have executed the github telegram project.