0

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

我在安装了 android sdk、android ndk、Xcode 和 eclipse 的 Mac Book Pro 上。以下是我在终端中所做的事情以及我得到的错误..这对我来说都是希腊语。

    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

错误:找不到“制作”程序。请安装 Cygwin make 包或定义 GNUMAKE 变量指向它。BOSelidd196775:tess-两个 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$ 
4

2 回答 2

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 环境变量指向不正确的位置。

于 2013-02-12T02:28:42.760 回答
0

我的路径没有在终端中正确设置

于 2013-02-13T18:59:31.573 回答