A20 Board on the Lichee source code compiled
1,
In file Includedfrom clean-temp.h:22:0,
From clean-temp.c:23:
./stdio.h:456:1:error: ' gets ' undeclared here (no in a function)
_gl_warn_on_use (Gets, "gets is a security hole-use fgets instead");
Solution: Reference Link: https://dev.openwrt.org/attachment/ticket/12005/stdio.patch
Access to the directory lichee/out/linux/common/buildroot/build/host-m4-1.4.15/lib the stdio.h and Stdio.in.h files are modified as follows:
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
Solution: Reference Link: http://kclin.tw/?p=298
Go to directory Lichee/out/linux/common/buildroot/build/host-autoconf-2.65/doc modify Autoconf.texi file, as follows:
A10 Board on the Cubie_android_ics source code compiled
In fact, a lot of Cubie_android_ics source code compilation problem in this site http://coldnew.github.io/blog/2013/10/27_46ac36.html above can find the corresponding solution.
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,
When compiling LVM, this error may be related to the system's GCC parameter configuration, and the simpler solution is to edit
Frameworks/compile/slang/android.mk the 22nd line "Local_cflags_for_slang: =-wno-sign-promo-wall-wno-unused-parameter- Werror "-werror removed and recompiled.
3,
Add a header file definition to the Dalvik/vm/native/dalvik_system_zygote.cpp #include<sys/source.h>
As follows:
#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
This is because the GCC version in my system is 4.8, so the original #include<sys/resource.h> will not be compiled, so to manually add.
toolchain in Lichee SDK
First through the linux-3.3 directory of makefile to find Cross_compile, this cross_compile may come from
1 Make cross_compile= ... Command line,
2. config file,
3 Environment variables
Found no, so look for the Buildroot/script directory of build_sun7i.sh
Find cross_compile=arm-linux-gnueabi-in build_sun7i.sh
Back to Lichee directory search find. -name "arm-linux-gnueabi*", find the Compilation tool in out/linux/common/buildroot/external-toolchain/bin/arm-limux-gnueabi-?