OGeek|极客世界-中国程序员成长平台

标题: ios - 为 Mac 构建 libunwind [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 04:37
标题: ios - 为 Mac 构建 libunwind

我正在尝试在 Mac 上为 iOS 和 Mac 构建 libunwind,我能够解决一些编译问题。

在 Mac 上构建

我使用

配置了项目
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"

并从 google 的 breakpad 项目中复制了 elf.h

https://google-breakpad.googlecode.com/svn-history/r1017/trunk/src/common/android/include/elf.h

我现在收到以下错误:

/usr/include/elf.h:58:15: fatal error: 'elf.h' file not found
#include_next <elf.h>

任何人都可以帮我解决这个问题或者还有其他一些构建 libunwind 的程序吗?

我还想知道是否需要做其他事情来为 iOS 构建 libunwind。



Best Answer-推荐答案


libunwind 包含在 clang 中,从 MacOS 10.6 开始支持

https://github.com/llvm/llvm-project/blob/368c02e3ec44e5418626f46abebcc22a69c7f66d/libunwind/include/libunwind.h

关于ios - 为 Mac 构建 libunwind,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27842377/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4