为Mac构建libunwind [英] Building libunwind for Mac

查看:501
本文介绍了为Mac构建libunwind的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to build libunwind on Mac for both iOS and Mac, I was able to resolve few of the compilation problem.

在Mac上构建

我使用

./configure CC="cc -Ae -D_XOPEN_SOURCE=500"

并复制 elf。 h 来自Google的破解版项目。

And copied elf.h from google's breakpad project.

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的程序吗?

Can anybody help me in solving this problem Or there is some other procedure for build libunwind?

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

I would also like to know if something else has to be done to build libunwind for iOS.

推荐答案

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

I got an answer from libunwind developer forum.

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。

这篇关于为Mac构建libunwind的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆