记录一个问题libtask无法在android下编译通过
Posted ahfuzhang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了记录一个问题libtask无法在android下编译通过相关的知识,希望对你有一定的参考价值。
源码来自:https://github.com/msteinert/libtask
首先是asm.S无法编译通过。
其次,编译context.c出现这些错误:
.//context.c:124:19: error: no member named 'gregs' in 'struct sigcontext'; did you mean 'regs'?
uc->uc_mcontext.gregs[i] = va_arg(arg, uint);
^~~~~
regs
/Users/ahfu/code/android/android-ndk-r14b/platforms/android-21/arch-arm64/usr/include/asm/sigcontext.h:25:8: note: 'regs' declared here
__u64 regs[31];
^
.//context.c:127:18: error: no member named 'gregs' in 'struct sigcontext'; did you mean 'regs'?
uc->uc_mcontext.gregs[13] = (uint)sp;
^~~~~
regs
/Users/ahfu/code/android/android-ndk-r14b/platforms/android-21/arch-arm64/usr/include/asm/sigcontext.h:25:8: note: 'regs' declared here
__u64 regs[31];
^
.//context.c:128:18: error: no member named 'gregs' in 'struct sigcontext'; did you mean 'regs'?
uc->uc_mcontext.gregs[14] = (uint)fn;
^~~~~
regs
/Users/ahfu/code/android/android-ndk-r14b/platforms/android-21/arch-arm64/usr/include/asm/sigcontext.h:25:8: note: 'regs' declared here
__u64 regs[31];
^
3 errors generated.
以上是关于记录一个问题libtask无法在android下编译通过的主要内容,如果未能解决你的问题,请参考以下文章
在fedora25x86下编译opencv的Android版本的过程记录
Docker环境下编译android源码|编译可运行xposed
为啥以下无法在 Visual Studio 2010 C++ 下编译?