yocto编译常见问题及解决方法

1./opt/yocto-rel/share/downloads/ exists but you do not appear to have write access to it.

这个是没有权限往指定的目录里写,

解决方法:将build目录下对应的工程文件删去(dashboard-lanvender),然后重新init,指定编译时产生文件存放的目录

make DL_DIR=/home/guguangyu/yocto-share-dev/downloads imx6dlwisehmi-lanverder_init

最后再执行make imx6dlwisehmi-lanverder


2.ExpansionError during parsing /home/yangmengkui/yocto/sources/meta-autorock/recipes-autorock/dashboards/dashboard-lavender.bb: Failure expanding variable S: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception MalformedUrl: The URL: '[email protected]/yangmengkui/hengyi.git;branch=master;protocol=ssh' is invalid and cannot be interpreted

解决方法:这个由于是qt项目的代码路径不对导致


3.ExpansionError during parsing /home/yangmengkui/yocto/sources/meta-imx6-autorock/recipes-bsp/u-boot/u-boot-imx6-autorock.bb: Failure expanding variable S: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Fetch command failed with exit code 128, output:
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

解决方法:这个由于[email protected]:yangmengkui/hengyi.git 需要改成[email protected]/yangmengkui/hengyi.git


4.http://download.qt.io.official ...... 5.4.2..... fetch失败

解决方法:1.将路径改成官网正确的路径

2,将可以正常编译项目下的包qtbase-opensource-src-5.4.2.tar.xz       qtbase-opensource-src-5.4.2.tar.xz.done

qtgraphicaleffects-opensource-src-5.4.2.tar.xz       qtgraphicaleffects-opensource-src-5.4.2.tar.xz.done

复制到该项目制定的包下面,由于qtbase-opensource-src-5.4.2.tar.xz.done这个标志位的存在,编译时就不用从官网上fetch了,这样就可以跳过

报URL错误了,复制了,有可能还会报同样的错,这是就需要bitbake -c cleansstate 清楚缓存,这样问题就可以解决了


你可能感兴趣的:(linux基本笔记总结)