简体   繁体   English

使用NDK在Cygwin中构建项目

[英]Using NDK to build Project in cygwin

Here is the whole procedure that i have followed to configure my project: 这是配置项目所遵循的整个过程:

-downloaded android-ndk-r8b -下载的android-ndk-r8b

-imported my project to eclipse workspace that is tesseract-ocr -将我的项目导入到tesseract-ocr的Eclipse工作区中

-imported tess-two project into eclipse that contains native code. -将tess-两个项目导入包含本机代码的eclipse中。 It has some folders one being jni that has android.mk and application.mk 它有一些文件夹是jni,它包含android.mk和application.mk

-downloaded and installed cygwin with requirements for ndk usage. -下载并安装了cygwin,其中包含对ndk使用的要求。

My EclipseProjects workspace is present in drive c and android-ndk-r8b is also in c drive i open cygwin. 我的EclipseProjects工作区位于驱动器c中,而我打开cygwin的c驱动器中也有android-ndk-r8b。 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: 从我的角度来看,我认为仍然是cygwin终端的一切都说:

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

instead of building myproject! 而不是构建myproject! andbody please tell me if am missing something and what would i do after building the project! andbody请告诉我是否缺少某些东西,以及在构建项目后该怎么办!

It's probably pointing to another bash.exe in your PATH environment variable. 它可能指向PATH环境变量中的另一个bash.exe。 Check your PATH environment variable for possible bash.exe includes like a git installation. 检查您的PATH环境变量,以查找可能的bash.exe包括git安装在内。 cygwin\\bin should come first. cygwin \\ bin应该是第一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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