Ios 为Mac构建libunwind

Ios 为Mac构建libunwind,ios,macos,ios5,libunwind,Ios,Macos,Ios5,Libunwind,我正在尝试在Mac上为iOS和Mac构建Libundwind,我能够解决一些编译问题 在Mac上构建 我使用 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" 并从谷歌的breakpad项目中复制了elf.h 我现在得到以下错误: /usr/include/elf.h:58:15: fatal error: 'elf.h' file not found #include_next <elf.h> /usr/include/elf.h:58:

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

在Mac上构建

我使用

./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
并从谷歌的breakpad项目中复制了
elf.h

我现在得到以下错误:

/usr/include/elf.h:58:15: fatal error: 'elf.h' file not found
#include_next <elf.h>
/usr/include/elf.h:58:15:致命错误:“未找到elf.h”文件
#下一步包括
有人能帮我解决这个问题吗?或者有其他的构建libunwind的过程吗


我还想知道是否还需要做些别的事情来构建iOS版的libunwind。

我从libunwind开发者论坛得到了答案

I don't think it will work. There's no OS X support in libunwind at the moment, 
and the platform is quite different.

There is a sort of a libunwind (which has little or nothing to do with this one) in the  
OS itself though. See http://opensource.apple.com/source/libunwind/

There's also some sort of symbolization library for post-processing. IIRC 
you more or less want to use the tools that ship with base OS or at least Xcode, 
otherwise you are up against writing quite a lot of tooling yourself.

简而言之,Mac OS X不支持libunwind。

libunwind包含在clang中,MacOS 10.6支持libunwind


为什么不使用内置的
backtrace
/
backtrace\u符号
?嘿,史蒂文,谢谢你抽出时间来帮助我。你能发布论坛链接吗?它是关于OSX(桌面)、iOS(移动)还是两者都有?这两种平台上都没有。这是我收到的关于我在邮件帖子上发布的问题的答案。苹果有自己的版本的libunwind(苹果的libunwind)可供mac os使用,但它没有提供libunwind提供的大部分功能;你至少应该给出归因。邮件列表是什么?你什么时候做的?在comp.lib.unwind.devel上发表的文章的作者是拉西·图拉;2015年1月8日,由于它目前使用的是私有功能
\u dyld\u find\u unwind\u sections
,如果您将其提交到应用商店,它将被拒绝。