Dl_Info 编译失败

发布于 2024-12-20 11:04:12 字数 816 浏览 1 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

万劫不复 2024-12-27 11:04:12

您需要在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

小鸟爱天空丶 2024-12-27 11:04:12

修复了它,记不清我到底做了什么,但我认为这与我使用的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文