I am trying to build libunwind on Mac for both iOS and Mac, I was able to resolve few of the compilation problem.
Building on Mac
I configured the project using
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
And copied elf.h
from google's breakpad project.
https://google-breakpad.googlecode.com/svn-history/r1017/trunk/src/common/android/include/elf.h
I get the following error now:
/usr/include/elf.h:58:15: fatal error: 'elf.h' file not found
#include_next <elf.h>
Can anybody help me in solving this problem Or there is some other procedure for build libunwind?
I would also like to know if something else has to be done to build libunwind for iOS.
backtrace
/backtrace_symbols
? – Ers