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

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/fslc-framebuffer/2.5/sysroots/x86_64-fslcsdk-linux/usr/share
  /opt/fslc-framebuffer/2.5/sysroots/x86_64-fslcsdk-linux/usr/share/cmake
  /opt/fslc-framebuffer/2.5/sysroots/x86_64-fslcsdk-linux/usr/share/cmake/OEToolchainConfig.cmake.d
  /opt/fslc-framebuffer/2.5/sysroots/x86_64-fslcsdk-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: /work/tmp/wpwork/csz_yocto_sumo_git/build_qt5.12.0_toolchain/tmp/work/x86_64-nativesdk-fslcsdk-linux/nativesdk-qtbase/5.12.0+gitAUTOINC+13ed06640c-r0/temp/log.do_package.19619
ERROR: Task (/work/tmp/wpwork/csz_yocto_sumo_git/sources/meta-qt5/recipes-qt/qt5/nativesdk-qtbase_git.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4500 tasks of which 4420 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /work/tmp/wpwork/csz_yocto_sumo_git/sources/meta-qt5/recipes-qt/qt5/nativesdk-qtbase_git.bb:do_package
Summary: There was 1 WARNING message shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

 

用Yocto2.5編譯qt編譯工具鏈,出現以上錯誤。大概意思是說 使用 do_install 來安裝文件但是沒有將其添加到任何文件或者package中。

在 recipes-qt/qt5/nativesdk-qtbase_git.bbappend 中

解決辦法1添加:

FILES_${PN} += "${datadir}/cmake/OEToolchainConfig.cmake.d/" (親測有效)

解決辦法2(忽略該警告):

INSANE_SKIP_nativesdk-qtbase = "installed-vs-shipped"

 

 

 

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

 

(這個網站的名字很有意思,當發生“stack overflow” 就來這裏)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章