cubieboard源码编译问题汇总

A20板子上lichee源码编译

1、

In file includedfrom clean-temp.h:22:0,

from clean-temp.c:23:

./stdio.h:456:1:error: 'gets' undeclared here (not in a function)

_GL_WARN_ON_USE(gets, "gets is a security hole - use fgets instead");

解决办法:参考链接:https://dev.openwrt.org/attachment/ticket/12005/stdio.patch

进入到目录lichee/out/linux/common/buildroot/build/host-m4-1.4.15/lib对stdio.h和stdio.in.h文件均做如下修改:



2、

conftest.c:14625:must be after `@defmac' to use `@defmacx'

make[3]: ***[autoconf.info] Error 1

make[3]: Leavingdirectory`/home/lei_wang/Realsil/lichee/out/linux/common/buildroot/build/host-autoconf-2.65/doc'

make[2]: ***[install-recursive] Error 1

make[2]: Leavingdirectory`/home/lei_wang/Realsil/lichee/out/linux/common/buildroot/build/host-autoconf-2.65'

make[1]: ***[install] Error 2

make[1]: Leavingdirectory`/home/lei_wang/Realsil/lichee/out/linux/common/buildroot/build/host-autoconf-2.65'

make: ***[/home/lei_wang/Realsil/lichee/out/linux/common/buildroot/build/host-autoconf-2.65/.stamp_host_installed]Error 2

解决办法:参考链接:http://kclin.tw/?p=298

进入到目录lichee/out/linux/common/buildroot/build/host-autoconf-2.65/doc修改autoconf.texi文件,如下:


 

 

A10板子上cubie_android_ics源码编译

其实好多cubie_android_ics源码编译的问题在这个网站http://coldnew.github.io/blog/2013/10/27_46ac36.html上面都可以找到相应的解决办法。

1、fatal error: bits/c++config.h: No such file

http://stackoverflow.com/questions/4643197/missing-include-bits-cconfig-h-when-cross-compiling-64-bit-program-on-32-bit

http://blog.csdn.net/strugglelg/article/details/39207553

http://coldnew.github.io/blog/2013/10/27_46ac36.html


2、

编译lvm时遇到这种错误,可能和系统的gcc参数配置等有关,比较简单的解决方法是编辑

frameworks/compile/slang/Android.mk将第22行“local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror”中-Werror移除并重新编译即可。


3、

在dalvik/vm/native/dalvik_system_Zygote.cpp中添加一个头文件定义即可#include<sys/source.h>


如下:

#include <sys/resource.h>
#include "Dalvik.h"
#include "native/InternalNativePriv.h"
#include <sys/resource.h>

#include <signal.h>
#if (__GNUC__ == 4 && __GNUC_MINOR__ == 7)
#include <sys/resource.h>
#endif

这是由于在我的系统中的gcc版本是4.8的,所以本来#include<sys/resource.h>不会编译进去,所以要手动添加。


lichee SDK中toolchain

首先通过linux-3.3目录下的Makefile找到CROSS_COMPILE,这个CROSS_COMPILE可能来自

1 make CROSS_COMPILE=...命令行,

2 .config文件,

3 环境变量

发现都没有,于是寻找buildroot/script目录下的build_sun7i.sh

找到build_sun7i.sh中CROSS_COMPILE=arm-linux-gnueabi-

回到lichee目录搜索find . -name "arm-linux-gnueabi*",找到编译工具在out/linux/common/buildroot/external-toolchain/bin/arm-limux-gnueabi-?


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
全志R16平台编译linux系统V1.0.txt 2017/4/11 13:36 (编译请使用编译android的lichee的选项编译生成的.config文件,不然直接编译会报错!!!!) rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ tar zxvf lichee_parrotv1.1_20161202.tar.gz rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ cd lichee/ rootroot@cm-System-Product-Name:/home/wwt/linux_r16/lichee$ ./build.sh config Welcome to mkscript setup progress All available chips: 0. sun8iw5p1 Choice: 0 All available platforms: 0. android 1. dragonboard 2. linux 3. tina Choice: 2 All available kernel: 0. linux-3.4 Choice: 0 All available boards: 0. bell-one 1. evb 2. evb-20 3. evb-30 4. evb-rtl8723bs 5. sc3813r Choice: 3 rootroot@cm-System-Product-Name:/home/wwt/linux_r16/lichee$ ./build.sh 错误1: KCONFIG_AUTOCONFIG=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/tristate.config BUILDROOT_CONFIG=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/.config /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/conf --silentoldconfig Config.in # # make dependencies written to .auto.deps # ATTENTION buildroot devels! # See top of this file before playing with this auto-preprequisites! # make[1]:正在离开目录 `/home/wwt/linux_r16/lichee/buildroot' You must install 'makeinfo' on your build machine makeinfo is usually part of the texinfo package in your distribution make: *** [dependencies] 错误 1 make:离开目录“/home/wwt/linux_r16/lichee/buildroot” ERROR: build buildroot Failed rootroot@cm-System-Product-Name:/home/wwt/linux_r16/lichee$ d/buildroot-config/conf.o /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/zconf.tab.o -o /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buil

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

luckywang1103

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值