如何解决postinstall 拦截钩子“update_icon_cache”bitbake 构建错误
在我通过运行 $ bitbake -v the-image
进行检查后
NOTE: the-image-1.0-r0 do_rootfs: > Executing update_icon_cache intercept ...
NOTE: the-image-1.0-r0 do_rootfs: Exit code 127. Output:
/home/test/theproject/build/tmp/work/theproject-poky-linux/the-image/1.0-r0/intercept_scripts-175a3292b7ed270c4ebcaa9d3a7e1e5bdcd155249541de38157b37c7a25cc4aa/update_icon_cache: 6: /home/test/theproject/build/tmp/work/theproject-poky-linux/the-image/1.0-r0/intercept_scripts-175a3292b7ed270c4ebcaa9d3a7e1e5bdcd155249541de38157b37c7a25cc4aa/update_icon_cache: /home/test/theproject/build/tmp/work/theproject-poky-linux/the-image/1.0-r0/recipe-sysroot-native//gdk-pixbuf-2.0/gdk-pixbuf-query-loaders: not found
它显示找不到 gdk-pixbuf-query-loaders,因为查找 gdk-pixbuf-query-loaders
的路径被切断了,它是 ${libdir_native}
变量。
在 update_icon_cache shell script below
上,当它执行时,${libdir_native}
根本没有展开。
$STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache
我已经通过运行下面的命令检查了 bitbake 变量,但似乎该变量已正确填充。
$ bitbake -e the-image | grep "^libdir_native"
libdir_native="/usr/lib"
libdir_nativesdk="/usr/lib"
有人能帮我解决这个构建错误吗? 谢谢
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。