首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为Mac构建libunwind

为Mac构建libunwind
EN

Stack Overflow用户
提问于 2015-01-08 14:24:21
回答 2查看 2.9K关注 0票数 2

我试图在Mac上为iOS和Mac构建libunwind,我解决了很少的编译问题。

基于Mac的大楼

我使用以下方法配置了项目

代码语言:javascript
复制
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"

并从谷歌的断续板项目中复制了elf.h

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

我现在得到以下错误:

代码语言:javascript
复制
/usr/include/elf.h:58:15: fatal error: 'elf.h' file not found
#include_next <elf.h>

有人能帮我解决这个问题吗,或者还有其他一些程序来构建libunwind?

我还想知道是否还需要做些什么来为iOS构建libunwind。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-01-09 03:34:29

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

代码语言:javascript
复制
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不支持

票数 1
EN

Stack Overflow用户

发布于 2019-11-05 09:48:34

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27842377

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档