petalinux 报错总结

Failed to menu config project component....

image-20240122120852271

解决办法
此处是由于Terminal(终端)的界面太窄导致的,把Terminal(终端)界面拉宽即可;重新执行命令【 petalinux-config --get-hw-description=*.xsa “path”】后,可以看到配置界面弹出来了,且没有了刚刚的错误。

do_rootfs:The postinstall intercept hook 'update_gio_module_cache' failed

方案一

报错一,update_pixbuf_cache

打开 ... / prj / build / misc / rootfs_config , 查找到 pixbuf ,定位在UI中的位置,也可以根据下面的UI路径进行查找

image-20240120223717705

image-20240120224832109

报错二,update_font_cache

image-20240120225835963

image-20240120230939120

image-20240120231251242

这里要注意的就是这里有两处地方有fonts,所以要修改两处!!!!!(参考rong晔up的)

报错三,update_icon_cache

image-20240120231019529

image-20240120231746314

方案二

这个方案就是方案一解决不了的时候,比如下面这个,"update_gio_module" 这个在config文件里面根本就找到。

image-20240120230551573

再例如下面这个报错(莫名其妙的报错捅了一遍)

image-20240120231959779

这个时候,我们定位到“/home/user/petalinux/components/yocto/source/arm/layers/core/scripts/postinst-intercepts”这个文件里面

image-20240120230135779

我们会发现这里就是文件的报错所指示的文件了,可能配置文件里没有对应的吧,但是这里有,笔者跟其他博主一样,将报错对应文件的移动到其他地方,最后编译就通过了,可能是魔法问题:D

转载

petalinux 报错, do_rootfs:The postinstall intercept hook 'update_xxxx_cache' failed_the postinstall intercept hook 'update_font_cache'-CSDN博客

【yocto】do_rootfs: The postinstall intercept hook ‘update_desktop_database‘ failed_the postinstall intercept hook 'update_desktop_dat-CSDN博客

posted @ 2024-01-24 19:22  QM1412  阅读(747)  评论(0)    收藏  举报