码迷,mamicode.com
首页 > 移动开发 > 详细

【记录一个问题】libtask无法在android下编译通过

时间:2019-07-31 23:52:45      阅读:241      评论:0      收藏:0      [点我收藏+]

标签:user   error:   task   class   错误   oid   error   mem   include   

源码来自: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下编译通过

标签:user   error:   task   class   错误   oid   error   mem   include   

原文地址:https://www.cnblogs.com/ahfuzhang/p/11279733.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!