大家好,我正在嘗試使用yocto為我的圖像創(chuàng)建一個(gè)應(yīng)用程序,我正在使用介子編譯器,因?yàn)樗谖业膌inux主機(jī)上按預(yù)期處理跨compiling.My應(yīng)用程序編譯。應(yīng)用程序從文件(.bin文件)中讀取輸入數(shù)據(jù)以進(jìn)行編譯。
當(dāng)我試圖修改食譜時(shí)出錯(cuò)了,我試圖修改食譜但沒(méi)有用,有人能告訴我哪里出了錯(cuò)嗎。
/*******************************************************************************/
Initialising tasks: 100% |########################################################################################## ################################################################################| Time: 0:00:00
Sstate summary: Wanted 7 Local 0 Mirrors 0 Missed 7 Current 220 (0% match, 96% complete)
NOTE: Executing Tasks
ERROR: appxyz-0-0 do_package: QA Issue: appxyz: Files/directories were installed but not shipped in any package:
/usr/lib
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
appxyz: 1 installed and not shipped files. [installed-vs-shipped]
ERROR: appxyz-0-0 do_package: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/yocto/build/tmp-glibc/work/riscv64-oe- linux/appxyz/0-0/temp/log.do_package.60686
ERROR: Task (/home/yocto/meta-application/recipes-app_xyz/appxyz/appxyz_0_0.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 973 tasks of which 961 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds
NOTE: Build completion summary:
NOTE: do_populate_sysroot: 0.0% sstate reuse(0 setscene, 1 scratch)
NOTE: do_deploy_source_date_epoch: 0.0% sstate reuse(0 setscene, 1 scratch)
NOTE: do_package: 0.0% sstate reuse(0 setscene, 1 scratch)
NOTE: do_populate_lic: 0.0% sstate reuse(0 setscene, 1 scratch)
Summary: 1 task failed:
/home/yocto/meta-application/recipes-application/appxyz/appxyz_0_0.bb:do_package
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
/***********************************************************/
這是我的配方文件
inherit autotools pkgconfig
inherit meson
PRIORITY = "optional"
SECTION = "examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://appxyz/"
S = "${WORKDIR}"
B = "${WORKDIR}/build_dir"
MESON_SOURCEPATH = "${S}/appxyz"
do_install() {
install -d ${D}${bindir}
install -d ${D}${libdir}
install -m 0755 ${B}/appxyz ${D}${bindir}
}
FILES_${PN} += "${bindir}/ ${bindir}/appxyz"
它正在抱怨
[installed-vs-shipped]
問(wèn)題,因此我假設(shè)解決方案如下:您正在創(chuàng)建
${D}${libdir}
,但在FILES_${PN}
中不存在。嘗試將其從
do_install
中刪除,或?qū)?code>${libdir}添加到FILES_${PN}
。