0

我运行了 NDK 项目,然后键入命令。它会产生错误。我不知道如何解决它。

这是命令。

hieund@hieund:~/Programs/AndroidNDK/samples/hello-gl2$ $NDK_HOME/ndk-gdb
/home/hieund/Programs/AndroidNDK/build/core/build-local.mk:40: build/core/init.mk: No such file or directory
/home/hieund/Programs/AndroidNDK/build/core/build-local.mk:166: /add-application.mk: No such file or directory
/home/hieund/Programs/AndroidNDK/build/core/build-local.mk:174: /setup-imports.mk: No such file or directory
/home/hieund/Programs/AndroidNDK/build/core/build-local.mk:191: /build-all.mk: No such file or directory
make: *** No rule to make target `/build-all.mk'.  Stop.
ERROR: The device does not support the application's targetted CPU ABIs!
       Device supports:  armeabi-v7a armeabi
       Package supports:

我检查了make的版本,没问题。

hieund@hieund:~/Programs/AndroidNDK/samples/hello-gl2$ make -version
GNU Make version 3.75, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96
    Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-gnu-utils@prep.ai.mit.edu>.
4

3 回答 3

1

The device does not support the application's targetted CPU ABIs!您正在构建您的设备不支持的库。检查您的设备CPU ABI

String abi=Build.CPU_ABI;
Toast.makeText(CpuinfoActivity.this, "CPU ABI is :::"+abi, Toast.LENGTH_LONG).show();
于 2012-10-29T06:21:04.690 回答
1

我认为问题是 ndk-gdb 找不到最新的品牌。此命令修复了问题:

export GNUMAKE=/usr/bin/make
于 2012-11-27T08:52:13.013 回答
0

ndk-gdb期望 Linux 上的特定环境。我按如下方式运行它:

 >ANDROID_NDK_ROOT=/etc/android-ndk-r8b GNUMAKE=/etc/android-ndk-r8b/prebuilt/linux-x86/bin/make ndk-gdb

/usr/bin/make如果您愿意,可以使用。

于 2012-10-29T14:40:52.720 回答