全志平台Tina系统yocto编译环境gstreamer编译不过问题
MACHINE=tulip-mozart source setup-environment
bitbake image-tulip-mozart-chromium时报错:
nitialising tasks: 100% |#######################################| Time: 0:00:09 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks NOTE: linux-tina: compiling from external source tree /home1/chenkunyao/worksapce/kirin_yocto/repo/lichee/linux-4.4 NOTE: u-boot-tina: compiling from external source tree /home1/chenkunyao/worksapce/kirin_yocto/repo/lichee/brandy/ ERROR: playready-1.0-r0 do_install: Function failed: do_install (log file is located at /home1/chenkunyao/worksapce/kirin_yocto/build/tmp/work/aarch64-poky-linux/playready/1.0-r0/temp/log.do_install.25279) ERROR: Logfile of failure stored in: /home1/chenkunyao/worksapce/kirin_yocto/build/tmp/work/aarch64-poky-linux/playready/1.0-r0/temp/log.do_install.25279 Log data follows: | DEBUG: Executing python function extend_recipe_sysroot | NOTE: Direct dependencies are ['/home1/chenkunyao/worksapce/kirin_yocto/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_7.2.bb:do_populate_sysroot', '/home1/chenkunyao/worksapce/kirin_yocto/sources/poky/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot', 'virtual:native:/home1/chenkunyao/worksapce/kirin_yocto/sources/poky/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home1/chenkunyao/worksapce/kirin_yocto/sources/poky/meta/recipes-devtools/gcc/gcc-cross_7.2.bb:do_populate_sysroot', '/home1/chenkunyao/worksapce/kirin_yocto/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot'] | NOTE: Installed into sysroot: [] | NOTE: Skipping as already exists in sysroot: ['gcc-runtime', 'glibc', 'pseudo-native', 'gcc-cross-aarch64', 'quilt-native', 'linux-libc-headers', 'libgcc', 'binutils-cross-aarch64', 'mpfr-native', 'xz-native', 'gmp-native', 'libmpc-native', 'texinfo-dummy-native', 'autoconf-native', 'automake-native', 'libtool-native', 'zlib-native', 'gnu-config-native', 'flex-native', 'bison-native', 'gettext-minimal-native', 'm4-native'] | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_install | install: cannot stat ‘/home1/chenkunyao/worksapce/kirin_yocto/build/tmp/work/aarch64-poky-linux/playready/1.0-r0/playready-1.0/lib/aarch64-openwrt-linux-glibc-gcc/*.so’: No such file or directory | WARNING: /home1/chenkunyao/worksapce/kirin_yocto/build/tmp/work/aarch64-poky-linux/playready/1.0-r0/temp/run.do_install.25279:1 exit 1 from 'install -m 0644 /home1/chenkunyao/worksapce/kirin_yocto/build/tmp/work/aarch64-poky-linux/playready/1.0-r0/playready-1.0/lib/aarch64-openwrt-linux-glibc-gcc/*.so /home1/chenkunyao/worksapce/kirin_yocto/build/tmp/work/aarch64-poky-linux/playready/1.0-r0/image/usr/lib/' | ERROR: Function failed: do_install (log file is located at /home1/chenkunyao/worksapce/kirin_yocto/build/tmp/work/aarch64-poky-linux/playready/1.0-r0/temp/log.do_install.25279) ERROR: Task (/home1/chenkunyao/worksapce/kirin_yocto/sources/meta-tina/recipes-security/playready/playready.bb:do_install) failed with exit code '1' ERROR: gstreamer1.0-plugins-aw-1.8.2-r0 do_fetch: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home1/chenkunyao/worksapce/kirin_yocto/repo/dl/ 'http://downloads.yoctoproject.org/mirror/sources/git2_github.com.hglm.gst-fbdev2-plugins.git.tar.gz' (for url http://downloads.yoctoproject.org/mirror/sources/git2_github.com.hglm.gst-fbdev2-plugins.git.tar.gz) ERROR: gstreamer1.0-plugins-aw-1.8.2-r0 do_fetch: Function failed: base_do_fetch ERROR: Logfile of failure stored in: /home1/chenkunyao/worksapce/kirin_yocto/build/tmp/work/aarch64-poky-linux/gstreamer1.0-plugins-aw/1.8.2-r0/temp/log.do_fetch.25302 ERROR: Task (/home1/chenkunyao/worksapce/kirin_yocto/sources/meta-tina/recipes-multimedia/gstreamer/1.14.0/gstreamer1.0-plugins-aw_1.8.2.bb:do_fetch) failed with exit code '1' NOTE: Tasks Summary: Attempted 5103 tasks of which 5096 didn't need to be rerun and 2 failed. Summary: 2 tasks failed: /home1/chenkunyao/worksapce/kirin_yocto/sources/meta-tina/recipes-security/playready/playready.bb:do_install /home1/chenkunyao/worksapce/kirin_yocto/sources/meta-tina/recipes-multimedia/gstreamer/1.14.0/gstreamer1.0-plugins-aw_1.8.2.bb:do_fetch Summary: There were 2 WARNING messages shown. Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
原因:
gstreamer的包没有下到本地,需要开启网络开关,把包下到本地才能编
修改方法:
1.修改
chenkunyao@Exdroid41:~/worksapce/kirin_yocto/sources/base/conf git diff . diff --git a/conf/local_tulip-mozart.conf b/conf/local_tulip-mozart.conf index ebc0f41..aa99618 100644 --- a/conf/local_tulip-mozart.conf b/conf/local_tulip-mozart.conf @@ -18,7 18,7 @@ PACKAGECONFIG_append_pn-qemu-native = " sdl" PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl" CONF_VERSION = "1" -BB_NO_NETWORK = "1" BB_NO_NETWORK = "0" LICENSE_FLAGS_WHITELIST = "commercial" DL_DIR ?= "
2.重新获取环境变量
MACHINE=tulip-mozart source setup-environment
3.可能还是会编不过,把出错的东西的缓存清一下
bitbake playready -c cleansstate
bitbake gstreamer -c cleansstate
4.重新编译
bitbake image-tulip-mozart-chromium
5.编译成功
Initialising tasks: 100% |#######################################| Time: 0:00:09 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks NOTE: linux-tina: compiling from external source tree /home1/chenkunyao/worksapce/kirin_yocto/repo/lichee/linux-4.4 NOTE: u-boot-tina: compiling from external source tree /home1/chenkunyao/worksapce/kirin_yocto/repo/lichee/brandy/ WARNING: kmod-mali-1.0-r0 do_install: Module.symvers not found in /home1/chenkunyao/worksapce/kirin_yocto/build/tmp/work/tulip_mozart-poky-linux/kmod-mali/1.0-r0/kmod-mali-1.0/ WARNING: kmod-mali-1.0-r0 do_install: Please consider setting MODULES_MODULE_SYMVERS_LOCATION to a WARNING: kmod-mali-1.0-r0 do_install: directory below B to get correct inter-module dependencies WARNING: gstreamer1.0-plugins-aw-1.8.2-r0 do_configure: QA Issue: gstreamer1.0-plugins-aw: configure was passed unrecognised options: --without-x --without-libintl-prefix --disable-examples --without-libiconv-prefix --enable-fbdev2sink --disable-debug --enable-sunxifbsink [unknown-configure-option] WARNING: image-tulip-mozart-chromium-1.0-r0 do_rootfs: The license listed BSD-1-Clause was not in the licenses collected for recipe libubox WARNING: image-tulip-mozart-chromium-1.0-r0 do_rootfs: The license listed BSD-1-Clause was not in the licenses collected for recipe libubox WARNING: image-tulip-mozart-chromium-1.0-r0 do_image: version iamge --> tulip-mozart-20181206152310-R1.00 NOTE: Tasks Summary: Attempted 5499 tasks of which 5353 didn't need to be rerun and all succeeded. Summary: There were 30 WARNING messages shown.