YOCTO - A Issue: nativesdk-qtbase: Files/directories were installed but not shipped in any package

懵懂的女人 提交于 2021-02-11 15:29:56

问题


I m building my own Yocto distro based on i.MX6 using Yocto 4.14-sumo and QT5.12 recipe. The embedded Yocto build works well.

But when I generate sdk, by launching :

bitbake abl-image-qt5 -c populate_sdk

I get the following error output on nativesdk-qtbase recipe :

ERROR: nativesdk-qtbase-5.12.0+gitAUTOINC+13ed06640c-r0 do_package: QA Issue: nativesdk-qtbase: Files/directories were installed but not shipped in any package:
  /opt/abl-imx-fb/4.14-sumo/sysroots/x86_64-ablsdk-linux/usr/share
  /opt/abl-imx-fb/4.14-sumo/sysroots/x86_64-ablsdk-linux/usr/share/cmake
  /opt/abl-imx-fb/4.14-sumo/sysroots/x86_64-ablsdk-linux/usr/share/cmake/OEToolchainConfig.cmake.d
  /opt/abl-imx-fb/4.14-sumo/sysroots/x86_64-ablsdk-linux/usr/share/cmake/OEToolchainConfig.cmake.d/OEQt5Toolchain.cmake
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
nativesdk-qtbase: 4 installed and not shipped files. [installed-vs-shipped]
ERROR: nativesdk-qtbase-5.12.0+gitAUTOINC+13ed06640c-r0 do_package: Fatal QA errors found, failing task.
ERROR: nativesdk-qtbase-5.12.0+gitAUTOINC+13ed06640c-r0 do_package: Function failed: do_package
ERROR: Logfile of failure stored in: /home/pierre/repo/claas/build/tmp/work/x86_64-nativesdk-ablsdk-linux/nativesdk-qtbase/5.12.0+gitAUTOINC+13ed06640c-r0/temp/log.do_package.16550
ERROR: Task (/home/pierre/repo/claas/sources/meta-qt5/recipes-qt/qt5/nativesdk-qtbase_git.bb:do_package) failed with exit code '1'

Can anyone help?

Thanks for your time


回答1:


So you used meta-qt5 from version warrior? The message says that the recipie installs the files using do_install but does not add them to FILES or any package.

You could add the following bbappend in your layer which should work

recipes-qt/qt5/nativesdk-qtbase_git.bbappend:

FILES_${PN} += "${datadir}/cmake/OEToolchainConfig.cmake.d/"

or ignore the problem

INSANE_SKIP_nativesdk-qtbase = "installed-vs-shipped"


来源:https://stackoverflow.com/questions/59666034/yocto-a-issue-nativesdk-qtbase-files-directories-were-installed-but-not-ship

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!