009全志R16平台tinav3.0下编译不过的问题

2018/11/13 11:39

版本:V1.0

开发板:SC3817R

SDK:tina v3.0

1、01原始编译全志r16平台tinav3.0系统:

[email protected]:~$ cd /home/wwt

[email protected]:/home/wwt$

[email protected]:~$ cd /home/wwt

[email protected]:/home/wwt$

[email protected]:/home/wwt$

[email protected]:/home/wwt$ md5sum tina_v3.0_20180606_1711git.tar.gz

ebf7ea460473f13a7f64248ed61cf998  tina_v3.0_20180606_1711git.tar.gz

[email protected]:/home/wwt$

[email protected]:/home/wwt$ tar zxvf tina_v3.0_20180606_1711git.tar.gz

[email protected]:/home/wwt$

[email protected]:/home/wwt$ cd tina_v3.0/

[email protected]:/home/wwt/tina_v3.0$

[email protected]:/home/wwt/tina_v3.0$

[email protected]:/home/wwt/tina_v3.0$ source build/envsetup.sh

(请严重注意:lunch之后的选项是环境依赖的,请选择astar_parrot-tina前的实际数值!)

[email protected]:/home/wwt/tina_v3.0$ lunch

You‘re building on Linux

Lunch menu... pick a combo:

5. astar_parrot-tina

Which would you like?5

[email protected]:/home/wwt/tina_v3.0$ make -j12

[email protected]:/home/wwt/tina_v3.0$ pack -d

2、起因:服务器上最初是可以编译全志R系列的tina/Android系统的。但是突然编译不了tina v3.0的SDK了(tina v2.5也异常),但是可以编译tina v2.1和Android。

出错现象:

[email protected]:/home/wwt/tina_v3.0.4$ make -j12

[ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestVC.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesStringWidget.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackTarBZip2Generator.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGlobalVC.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestCVS.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSVN.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackTarCompressGenerator.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestBZR.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGIT.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesWidget.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackZIPGenerator.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestHG.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestP4.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPack7zGenerator.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackDebGenerator.cxx.o

[ 99%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackRPMGenerator.cxx.o

[ 99%] Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o

[ 99%] Linking CXX static library libCTestLib.a

[100%] Linking CXX executable ../bin/ccmake

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

[100%] Built target CTestLib

make[6]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

Scanning dependencies of target ctest

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

make[6]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

[100%] Building CXX object Source/CMakeFiles/ctest.dir/ctest.cxx.o

[100%] Linking CXX static library libCPackLib.a

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

[100%] Built target CPackLib

make[6]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

Scanning dependencies of target cpack

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

make[6]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

[100%] Building CXX object Source/CMakeFiles/cpack.dir/CPack/cpack.cxx.o

[100%] Linking CXX executable ../bin/ctest

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

[100%] Built target ccmake

[100%] Linking CXX executable ../bin/cpack

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

[100%] Built target ctest

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

[100%] Built target cpack

make[5]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

make[4]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3‘

touch /home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3/.built

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/cmake‘

make[2]: Leaving directory `/home/wwt/tina_v3.0.4‘

make[1]: *** [/home/wwt/tina_v3.0.4/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2

make[1]: Leaving directory `/home/wwt/tina_v3.0.4‘

Build failed - please re-run with -j1 to see the real error message

make: *** [world] 错误 1

#### make failed to build some targets (03:37 (mm:ss)) ####

[email protected]:/home/wwt/tina_v3.0.4$

[email protected]:/home/wwt/tina_v3.0.4$ make -j1

make[4]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8‘

Making all in src

make[5]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/src‘

x86_64-linux-gnu-g++ -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.8\" -DPACKAGE_STRING=\"patchelf\ 0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.8\" -I.   -I/home/wwt/tina_v3.0.4/out/host/include -I/home/wwt/tina_v3.0.4/out/host/usr/include   -g -O2 -MT patchelf.o -MD -MP -MF .deps/patchelf.Tpo -c -o patchelf.o patchelf.cc

mv -f .deps/patchelf.Tpo .deps/patchelf.Po

x86_64-linux-gnu-g++  -g -O2  -L/home/wwt/tina_v3.0.4/out/host/lib -L/home/wwt/tina_v3.0.4/out/host/usr/lib  -o patchelf patchelf.o

make[5]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/src‘

Making all in tests

make[5]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/tests‘

make[5]: Nothing to be done for `all‘.

make[5]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/tests‘

make[5]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8‘

make[5]: Nothing to be done for `all-am‘.

make[5]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8‘

make[4]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8‘

touch /home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/.built

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/patchelf‘

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/patchelf‘

install -d -m0755 /home/wwt/tina_v3.0.4/out/host/bin

install -m0755 /home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/src/patchelf /home/wwt/tina_v3.0.4/out/host/bin/patchelf

mkdir -p /home/wwt/tina_v3.0.4/out/host/stamp

touch /home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/.built

touch /home/wwt/tina_v3.0.4/out/host/stamp/.patchelf_installed

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/patchelf‘

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/mtools‘

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/mtools‘

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/mtools‘

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/mtools‘

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/dosfstools‘

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/dosfstools‘

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/dosfstools‘

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/dosfstools‘

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/lzma‘

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/lzma‘

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/lzma‘

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/lzma‘

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/squashfs4‘

make -C /home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/squashfs4.3/squashfs-tools CC="gcc" XZ_SUPPORT=1 LZMA_XZ_SUPPORT=1 XATTR_SUPPORT=1 SELINUX_SUPPORT=0 LZMA_LIB="/home/wwt/tina_v3.0.4/out/host/lib/liblzma.a" EXTRA_CFLAGS="-I/home/wwt/tina_v3.0.4/out/host/include -I/home/wwt/tina_v3.0.4/out/host/usr/include" LDFLAGS="-L/home/wwt/tina_v3.0.4/out/host/lib -L/home/wwt/tina_v3.0.4/out/host/usr/lib " mksquashfs unsquashfs

make[4]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/squashfs4.3/squashfs-tools‘

gcc  -I/home/wwt/tina_v3.0.4/out/host/include -I/home/wwt/tina_v3.0.4/out/host/usr/include -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT   -c -o gzip_wrapper.o gzip_wrapper.c

gzip_wrapper.c:38:13: error: ‘Z_FIXED‘ undeclared here (not in a function)

{ "fixed", Z_FIXED, 0 },

^

make[4]: *** [gzip_wrapper.o] Error 1

make[4]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/squashfs4.3/squashfs-tools‘

make[3]: *** [/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/squashfs4.3/.built] Error 2

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/squashfs4‘

make[2]: *** [tools/squashfs4/compile] Error 2

make[2]: Leaving directory `/home/wwt/tina_v3.0.4‘

make[1]: *** [/home/wwt/tina_v3.0.4/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2

make[1]: Leaving directory `/home/wwt/tina_v3.0.4‘

make: *** [world] 错误 2

#### make failed to build some targets (07:00 (mm:ss)) ####

[email protected]:/home/wwt/tina_v3.0.4$

就算你找到这个文件:

[email protected]:/home/wwt/tinav3.0$ find . -name gzip_wrapper.c

./out/astar-parrot/compile_dir/host/squashfs4.3/squashfs-tools/gzip_wrapper.c

[email protected]:/home/wwt/tinav3.0$

static struct strategy strategy[] = {

{ "default", Z_DEFAULT_STRATEGY, 0 },

{ "filtered", Z_FILTERED, 0 },

{ "huffman_only", Z_HUFFMAN_ONLY, 0 },

{ "run_length_encoded", Z_RLE, 0 },

{ "fixed", Z_FIXED, 0 },

{ NULL, 0, 0 }

};

修改为:

static struct strategy strategy[] = {

{ "default", Z_DEFAULT_STRATEGY, 0 },

{ "filtered", Z_FILTERED, 0 },

{ "huffman_only", Z_HUFFMAN_ONLY, 0 },

{ "run_length_encoded", Z_RLE, 0 },

{ "fixed", 4, 0 },

{ NULL, 0, 0 }

};

(来不及分清楚具体是哪个定义了,直接修改Z_FIXED为4了!^_)

[email protected]:/home/wwt/pugongying_tinav3.0.6$ grep Z_FIXED . -R

./lichee/brandy/u-boot-2011.09/include/u-boot/zlib.h:#define Z_FIXED               4

./lichee/brandy/u-boot-2014.07/include/u-boot/zlib.h:#define Z_FIXED               4

./package/allwinner/liballwinner_tina/liballwinner/LIBRARY/EXTERNAL/include/zlib/zlib.h:#define Z_FIXED               4

./package/allwinner/tina_multimedia/libcedarx/external/include/zlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/Python-2.7.11/Modules/zlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/zlib-1.2.8/contrib/pascal/zlibpas.pas:  Z_FIXED               = 4;

./out/astar-parrot/compile_dir/target/zlib-1.2.8/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/zlib-1.2.8/ipkg-install/usr/include/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/host/Python-2.7.11/Modules/zlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/libcedarx/libcedarx/external/include/zlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/gdb-7.10.1/zlib/contrib/pascal/zlibpas.pas:  Z_FIXED               = 4;

./out/astar-parrot/compile_dir/target/gdb-7.10.1/zlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/host/u-boot-2014.10/include/u-boot/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/host/cmake-3.4.3/Utilities/cmzlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/staging_dir/target/usr/include/zlib.h:#define Z_FIXED               4

你编译的话,还是会继续出问题的,错误欠奉。

排查了很久,后来同事说是因为他安装了miniGUI的模拟器,其中的glibc库导致的问题。最后他自己还原了,具体方法未知。

原文地址:https://www.cnblogs.com/wb4916/p/10035411.html

时间: 2024-11-10 16:13:44

009全志R16平台tinav3.0下编译不过的问题的相关文章

20171128客户在全志R16平台的问题合集

客户在全志R16平台的问题合集20171128 2017/10/19 16:41 版本:V1.0 W工,您好! 问题1: 我是XXXXXX科技有限公司的陈工,在调试贵公司的R16开发板(系统为安卓4.4)的LVDS屏的时,你们的屏幕是1280x800,18位的屏,我们的是(分辨率为)1024x600.18位的屏,我修改了下面的信息,但是开机后整体画面有偏移,画面偏左而且没有占满整个屏(附件图中红框部分属于屏幕正常显示区域),下方的几个虚拟按键也没有显示出来.我修改行后沿时间跟场后沿时间并没有效果

51全志R58平台Android4.4下Camera的HAL层修改

51全志R58平台Android4.4下Camera的HAL层修改 2018/11/7 15:20 版本:V1.0 开发板:SC5806 1.系统编译: (略) 2.全志R58平台Android4.4下Camera的HAL层在这个目录: /home/wwt/r58_android_v4.4/android/device/softwinner/octopus-common/hardware/camera 可以使用mm编译: BuildImg 0 Dragon execute image.cfg S

在高通平台Android环境下编译内核模块【转】

本文转载自:http://blog.xeonxu.info/blog/2012/12/04/zai-gao-tong-ping-tai-androidhuan-jing-xia-bian-yi-nei-he-mo-kuai/ 高通Android环境中Linux内核会作为Android的一部分进行编译,直接使用make即可一次性从头编到尾.而有的平台比如Marvell,内核的编译操作相对比较独立,必须使用标准的内核编译命令进行单独编译.一般来说,用高通的这种方式比较傻瓜化,一步到底的感觉:而用Ma

在SoCEDS环境下编译和更新preloader和uboot程序的方法

在SoCEDS环境下编译和更新preloader和uboot程序的方法 前面有介绍preloader在HPS boot过程中的的作用,接下来讲述下用户在SoCEDS环境下改如何编译preloader和uboot程序!以及如何去更新BOOT SD卡中的preloader和uboot! 从Terasic网站下下载的SD image是在13.1环境下编译出来的preloader和u-boot,这里会在14.0环境下重新编译并更新到SD卡中!并在inux系统下更新preloader和u-boot到SD卡

linux下编译qt5.6.0静态库——configure配置

 随笔 - 116  文章 - 4  评论 - 7 linux下编译qt5.6.0静态库--configure配置 linux下编译qt5.6.0静态库 linux下编译qt5.6.0静态库 configure生成makefile 安装选项 Configure选项 第三方库: 附加选项: QNX/Blackberry选项: Android 选项: 生成makefile 遇到链接检查失败的情况 生成makefile后进行编译 编译时的错误 多重定义'QT_MODBUS()'和'QT_MODBU

Linux下编译Android平台的ffmpeg库

在Linux平台下编译要方便些,我这里使用的环境是openSUSE,用Ubutunu也是一样的. 首先你需要Android-NDK 和ffmpeg源码,不同的版本里的文件结构有所差别,编译环境也有所不同.我这里使用的是以下两个版本: android-ndk-r8-linux-x86.tar.bz2 ffmpeg-0.7.17.tar.gz 1. 解压 android-ndk-r8-linux-x86.tar.bz2 cd ~ tar xvf android-ndk-r8-linux-x86.ta

linux 6下编译安装配置LAMP平台

LAMP(Linux- Apache-MySQL-PHP)网站架构是目前国际流行的Web框架,该框架包括:Linux操作系统,Apache网络服务器,MySQL数据库,Perl.PHP或者Python编程语言,所有组成产品均是开源软件,是国际上成熟的架构框架,很多流行的商业应用都是采取这个架构,和Java/J2EE架构相比,LAMP具有Web资源丰富.轻量.快速开发等特点,微软的.NET架构相比,LAMP具有通用.跨平台.高性能.低价格的优势,因此LAMP无论是性能.质量还是价格都是企业搭建网站

Win10 + VS2015 下编译 Qt5.6.0

近期由于另外一个项目需要用 vs2015 ,于是把 Qt 也升级到了 5.6.0 .由于项目需要兼容 Windows xp ,所以需要自己编译 Qt .这里大致整理一下编译的过程. 安装 ActivePerl / Python / Ruby .ActivePerl: http://www.activestate.com/activeperl/downloads .我用的版本是 ActivePerl-5.22.1.2201-MSWin32-x64-299574 .Python: https://w

linux下编译qt5.6.0——configure配置

linux下编译qt5.6.0 首先下载源码包qt-everywhere-opensource-src-5.6.0.7z 然后解压 7z x -o/home/o/qt-src/qt-opensource-src-5.6.0 qt-everywhere-opensource-src-5.6.0.7z cd /home/o/qt-src/qt-opensource-src-5.6.0 我这里解压到/home/o/qt-src/qt-opensource-src-5.6.0中,解压后进入这个目录. c