简体   繁体   中英

Using NDK to build Project in cygwin

Here is the whole procedure that i have followed to configure my project:

-downloaded android-ndk-r8b

-imported my project to eclipse workspace that is tesseract-ocr

-imported tess-two project into eclipse that contains native code. It has some folders one being jni that has android.mk and application.mk

-downloaded and installed cygwin with requirements for ndk usage.

My EclipseProjects workspace is present in drive c and android-ndk-r8b is also in c drive i open cygwin. write the following command on terminal

/cygdrive/c/EclipseProjects/tess-two-master/tess-two/jni

this gets me into this directory:

Haris Riaz@HarisRiaz-PC /cygdrive/c/EclipseProjects/tess-two-master/tess-two/jni

Now i write the following command:

$ /cygdrive/c/android-ndk-r8b/ndk-build

From my point of view everything i think is pin point still cygwin terminal says:

-bash: /cygdrive/c/android-ndk-r8b/ndk-build: No such file or directory

instead of building myproject! andbody please tell me if am missing something and what would i do after building the project!

It's probably pointing to another bash.exe in your PATH environment variable. Check your PATH environment variable for possible bash.exe includes like a git installation. cygwin\\bin should come first.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM