常见问答

常见问答

Yocto 的 Bitbake nvt-image-qt5 指令执行失败   日期:2025-03-03

错误讯息 :

/meta-qt5/recipes-qt/qt5/qtquickcontrols2_git.bb:do_compile) failed with exit code '1' when bitbake nvt-image-qt5 in Yocto.

显示如下:
make[2]: *** [Makefile:479: ../../lib/libQt5QuickTemplates2.so.5.14.2] Error 1
make[2]: Leaving directory '/home/user/shared/yocto/build/tmp-glibc/work/aarch64-poky-linux/qtquickcontrols2/5.14.2+gitAUTOINC+bb2b1adffe-r0/build/src/quicktemplates2'
make[1]: *** [Makefile:49: sub-quicktemplates2-make_first] Error 2
make[1]: Leaving directory '/home/user/shared/yocto/build/tmp-glibc/work/aarch64-poky-linux/qtquickcontrols2/5.14.2+gitAUTOINC+bb2b1adffe-r0/build/src'
make: *** [Makefile:49: sub-src-make_first] Error 2
WARNING: exit code 1 from a shell command.

ERROR: Task (/home/user/shared/yocto/sources/meta-qt5/recipes-qt/qt5/qtquickcontrols2_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2709 tasks of which 2704 didn't need to be rerun and 1 failed.
由于下载不完整导致编译错误,请执行以下命令进行清理并重新编译:
 $ bitbake qtquickcontrols2 -c cleanall
 
 $ bitbake qtquickcontrols2
 
然后编译 nvt-image-qt5。
产品: 微处理器 ,Arm Cortex-A35 微处理器
应用:
功能: Others,Boot source,Yocto