我试图在Mac上为iOS和Mac构建libunwind,我解决了很少的编译问题。
基于Mac的大楼
我使用以下方法配置了项目
./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
我现在得到以下错误:
/usr/include/elf.h:58:15: fatal error: 'elf.h' file not found
#include_next <elf.h>有人能帮我解决这个问题吗,或者还有其他一些程序来构建libunwind?
我还想知道是否还需要做些什么来为iOS构建libunwind。
发布于 2015-01-09 03:34:29
我从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不支持。
发布于 2019-11-05 09:48:34
libunwind包含在clang中,并由MacOS 10.6支持。
https://stackoverflow.com/questions/27842377
复制相似问题