0

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

Community
  • 1
  • 1
Somasundaram NP
  • 1,018
  • 1
  • 12
  • 36
  • **1.** open cygwin shell window **2.** type `export ndkbuild=/cygdrive/c/android-ndk-r10e/ndk-build.cmd` **3.** type `$ndkbuild`. – Alex Cohn Jan 06 '16 at 13:31
  • I have done it but again I'm getting same issue, please check the screenshot and also I'm new to this. – Somasundaram NP Jan 07 '16 at 04:19
  • You forgot the $ before command. Nevermind. On command line, you can simply type the full path – Alex Cohn Jan 07 '16 at 06:23
  • I have added the $ but now it says that $ $ndkbuild Android NDK: Could not find application project directory ! Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. C:\android-ndk-r10e\build/core/build-local.mk:143: *** Android NDK: Aborting . Stop. – Somasundaram NP Jan 07 '16 at 06:32

1 Answers1

3

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.

Somasundaram NP
  • 1,018
  • 1
  • 12
  • 36