cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chen1021110
Participant
Participant
2,452 Views
Registered: ‎02-11-2019

petalinux :Prebuilt Libraries do_package_qa error

Jump to solution

 Hi,

        I have added two Prebuilt Libraries (libpzcamera.so and libtof.so) into my petalinux project according to ug1144. When I compiled the project wtih the cmd "petalinux-build -c rootfs", the result is successful.

$ petalinux-build -c rootfs
[INFO] building rootfs
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image -c do_image_complete
Loading cache: 100% |###############################################################################| Time: 0:00:00
Loaded 3448 entries from dependency cache.
Parsing recipes: 100% |#############################################################################| Time: 0:00:11
Parsing of 2574 .bb files complete (2540 cached, 34 parsed). 3450 targets, 149 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##########################################################################| Time: 0:00:05
Checking sstate mirror object availability: 100% |##################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2284 tasks of which 2276 didn't need to be rerun and all succeeded.
INFO: Copying Images from deploy to images
NOTE: copy to TFTP-boot directory is not enabled !!
[INFO] successfully built rootfs

But when I compile the project wtih the cmd "petalinux-build", There are some mistakes:

Checking sstate mirror object availability: 100% |###########################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: libpzcamera-1.0-r0 do_package_qa: QA Issue: /usr/lib/libpzcamera.so contained in package libpzcamera        
requires libtof.so, but no providers found in RDEPENDS_libpzcamera? [file-rdeps] ERROR: libpzcamera-1.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them. ERROR: libpzcamera-1.0-r0 do_package_qa: Function failed: do_package_qa ERROR: Logfile of failure stored in: /home/sheva/share/petalinux_project/adi_tof/build/tmp/work/cortexa9hf-n
eon-xilinx-linux-gnueabi/libpzcamera/1.0-r0/temp/log.do_package_qa.10720 ERROR: Task (/home/sheva/share/petalinux_project/adi_tof/project-spec/meta-user/recipes-apps/libpzcamera/lib
pzcamera.bb:do_package_qa) failed with exit code '1' WARNING: petalinux-user-image-1.0-r0 do_rootfs: [log_check] petalinux-user-image: found 1 warning message in
the logfile: [log_check] warning: %post(sysvinit-inittab-2.88dsf-r10.plnx_zynq7) scriptlet failed, exit status 1 NOTE: Tasks Summary: Attempted 3057 tasks of which 3053 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/sheva/share/petalinux_project/adi_tof/project-spec/meta-user/recipes-apps/libpzcamera/libpzcamera.bb
:do_package_qa Summary: There was 1 WARNING message shown. Summary: There were 3 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build project

     What could be the cause of the error?

 

 

libpzcamera.bb:

SUMMARY = "Simple libpzcamera application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://libpzcamera.so \
	"

S = "${WORKDIR}"

TARGET_CC_ARCH += "${LDFLAGS}"

do_install() {
	     install -d ${D}/${libdir}
	     install -m 0655 ${S}/libpzcamera.so ${D}/${libdir}
}

FILES_${PN} += "${libdir}"
FILES_SOLIBSDEV = ""

libtof.bb:

SUMMARY = "Simple libtof application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://libtof.so \
	"

S = "${WORKDIR}"

TARGET_CC_ARCH += "${LDFLAGS}"

do_install() {
	     install -d ${D}/${libdir}
	     install -m 0655 ${S}/libtof.so ${D}/${libdir}
}

FILES_${PN} += "${libdir}"
FILES_SOLIBSDEV = ""
0 Kudos
1 Solution

Accepted Solutions
chen1021110
Participant
Participant
2,438 Views
Registered: ‎02-11-2019
SUMMARY = "Simple libpzcamera application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://libpzcamera.so \
	"

S = "${WORKDIR}"

TARGET_CC_ARCH += "${LDFLAGS}"

do_install() {
	     install -d ${D}/${libdir}
	     install -m 0655 ${S}/libpzcamera.so ${D}/${libdir}
}

FILES_${PN} += "${libdir}"
RDEPENDS_${PN} = " libtof"
FILES_SOLIBSDEV = ""

View solution in original post

1 Reply
chen1021110
Participant
Participant
2,439 Views
Registered: ‎02-11-2019
SUMMARY = "Simple libpzcamera application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://libpzcamera.so \
	"

S = "${WORKDIR}"

TARGET_CC_ARCH += "${LDFLAGS}"

do_install() {
	     install -d ${D}/${libdir}
	     install -m 0655 ${S}/libpzcamera.so ${D}/${libdir}
}

FILES_${PN} += "${libdir}"
RDEPENDS_${PN} = " libtof"
FILES_SOLIBSDEV = ""

View solution in original post