when I run ndk-build, it fails complaining from the following errors:
当我运行ndk-build时,它会因以下错误而抱怨:
$ ndk-build
make: /…/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found
Compile arm : jpeg <= jcapimin.c
make: /…/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found
make: *** [obj/local/armeabi/objs/jpeg/jcapimin.o] Error 127
The problem is that although it says "command not found", "arm-linux-androideabi-gcc" exists in the above path. Even when I run "arm-linux-androideabi-gcc" directly from /…/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/ it gives the same error of "command not found"
问题是虽然它说“命令未找到”,但上面的路径中存在“arm-linux-androideabi-gcc”。即使我直接从/.../toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/运行“arm-linux-androideabi-gcc”,也会出现“未找到命令”的相同错误
I also added ./toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin to my PATH but still getting the same error. Even I tried different versions of ndk (7, 7b, 6b) still same error! seems to me the above gcc is meant for 32bit machines whereas my machine is "Linux 2.6.32-37-server x86_64". but I guess the ndk package should work for both 32 and 64bit. am I right? do I need to compile or build ndk before using it? I assume downloading and unpacking is all I have to do. right? how about sdk? I just downloaded and unpacked it at the same folder that I have my ndk. do I need to configure them to work with each other
我还将./toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin添加到我的PATH中,但仍然遇到同样的错误。即使我尝试了不同版本的ndk(7,7b,6b)仍然是同样的错误!在我看来,上面的gcc适用于32位机器,而我的机器是“Linux 2.6.32-37-server x86_64”。但我想ndk包应该适用于32位和64位。我对吗?在使用之前我需要编译或构建ndk吗?我假设下载和解包是我所要做的。对?怎么样sdk?我刚下载并将其解压缩到我的ndk所在的文件夹中。我是否需要将它们配置为相互协作
1 个解决方案
#1
4
I ran into the same problem. You are right, the problem is due to trying to run a 32-bit binary on a 64-bit kernel.
我遇到了同样的问题。你是对的,问题是由于尝试在64位内核上运行32位二进制文件。
I solved it on Ubuntu 11.10 by installing the 32-bit compatibility libs:
我通过安装32位兼容性库在Ubuntu 11.10上解决了它:
sudo apt-get install ia32-libs
#1
4
I ran into the same problem. You are right, the problem is due to trying to run a 32-bit binary on a 64-bit kernel.
我遇到了同样的问题。你是对的,问题是由于尝试在64位内核上运行32位二进制文件。
I solved it on Ubuntu 11.10 by installing the 32-bit compatibility libs:
我通过安装32位兼容性库在Ubuntu 11.10上解决了它:
sudo apt-get install ia32-libs