麻烦运行android ndk-build

时间:2013-02-11 18:35:38

标签: macos android-ndk terminal gnu-make

我正在尝试从github创建一个google的tesserac库。

我在Mac Book Pro上安装了android sdk,android ndk,Xcode和eclipse。下面是我在终端做的事情和我得到的错误..这对我来说都是希望。

    Last login: Mon Feb 11 11:57:51 on ttys000
BOSelidd196775:~ elidd1$ cd /Users/elidd1/Documents/libraries/Tesseract\ Optical\ Character\ Recognition/tess-two-master/tess-two 
BOSelidd196775:tess-two elidd1$ ndk-build

错误:找不到'make'程序。请安装Cygwin make package     或定义GNUMAKE变量以指向它。     BOSelidd196775:tess-two elidd1 $

好的,问题已解决,我没有安装xcode命令行工具..只是xcode。无论如何,解决了这个问题后,我得到了以下错误:

Last login: Mon Feb 11 14:35:59 on ttys000
BOSelidd196775:tess-two elidd1$ cd /Users/elidd1/Documents/libraries/TesseractOpticalCharacterRecognition/tess-two-master/tess-two
BOSelidd196775:tess-two elidd1$ ndk-build
make: /Users/elidd1/SDKS/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc: Command not found
make: /Users/elidd1/SDKS/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc: Command not found
make: /Users/elidd1/SDKS/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc: Command not found
make: /Users/elidd1/SDKS/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc: Command not found
make: /Users/elidd1/SDKS/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc: Command not found
make: /Users/elidd1/SDKS/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc: Command not found
make: /Users/elidd1/SDKS/android-ndk-r6b/toolchains/x86-4.4.3/prebuilt/darwin-x86/bin/i686-android-linux-gcc: Command not found
make: /Users/elidd1/SDKS/android-ndk-r6b/toolchains/x86-4.4.3/prebuilt/darwin-x86/bin/i686-android-linux-gcc: Command not found
make: /Users/elidd1/SDKS/android-ndk-r6b/toolchains/x86-4.4.3/prebuilt/darwin-x86/bin/i686-android-linux-gcc: Command not found
Compile thumb  : lept <= adaptmap.c
/bin/sh: /Users/elidd1/SDKS/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc: No such file or directory
make: *** [/Users/elidd1/Documents/libraries/TesseractOpticalCharacterRecognition/tess-two-master/tess-two/obj/local/armeabi/objs/lept/src/src/adaptmap.o] Error 127
BOSelidd196775:tess-two elidd1$ 

2 个答案:

答案 0 :(得分:1)

'ls /Users/elidd1/SDKS/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc的输出是什么'? 听起来你的ndk安装不正确或者ANDROID_NDK_ROOT环境变量指向的位置不正确。

答案 1 :(得分:0)

我的路径未在终端

中正确设置