Dl_Info 编译失败
我正在尝试使用 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.)知道如何解决吗?
I am trying to use Android NDK Make to build a project but I get the following errors.
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
I am assuming this is coming from dlfcn.h but it isn't like I am getting a file not found so I am guessing it is loading...
1.) Is the problem in dlfcn.h?
2.) any idea how to solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要在Application.mk中使用
APP_PLATFORM := android-8
指定android平台版本。默认情况下,如果使用 android-3 并因此类错误而失败You need to specify android platform version using
APP_PLATFORM := android-8
in Application.mk. By default if uses android-3 and fails with such error修复了它,记不清我到底做了什么,但我认为这与我使用的 Linux 头文件有关,而不是我正在编译的 Android 头文件。
Fixed it, can't remember exactly what I did but I think it had to do with a linux header I was using as opposed to the Android one I was compiling for.