我正在尝试使用Android NDK Make构建项目,但出现以下错误。

In file included from /home/jackie/Development/Code/GnuStep/core/base/Source/objc-load.m:44:0:
/home/jackie/Development/Code/GnuStep/core/base/Source/dynamic-load.h: In function '__objc_dynamic_get_symbol_path':
/home/jackie/Development/Code/GnuStep/core/base/Source/dynamic-load.h:127:3: error: unknown type name 'Dl_info'
/home/jackie/Development/Code/GnuStep/core/base/Source/objc-load.m: In function 'GSPrivateSymbolPath':
/home/jackie/Development/Code/GnuStep/core/base/Source/objc-load.m:263:2: error: unknown type name 'Dl_info'
make: *** [/home/jackie/Development/Code/GnuStep/core/base/Source/obj/local/armeabi/objs/gnumake/objc-load.o] Error 1


我以为这是来自dlfcn.h的信息,但这并不是我找不到文件,因此我猜它正在加载...

1.)dlfcn.h中有问题吗?
2.)知道如何解决吗?

最佳答案

您需要在Application.mk中使用APP_PLATFORM := android-8指定android平台版本。默认情况下,如果使用android-3并失败,并显示此类错误

07-27 15:32