Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sacrthgap : pi zero v2 : licamera-apps build fails with rpicam_app.so.1.4.2 error #1393

Open
UmonDaisuke opened this issue Dec 9, 2024 · 1 comment

Comments

@UmonDaisuke
Copy link

Hello,

I'm trying to add libcamera-apps to pi zero v2 64 bit but i didn't succeed to find a solution for the problem mentioned below. It seems close from this one reported and solved #1273

here is my setup:
ubuntu 22.04

bblayers.conf
BLAYERS ?= "
/home/dingo/scarthgap/poky/meta
/home/dingo/scarthgap/poky/meta-poky
/home/dingo/scarthgap/poky/meta-yocto-bsp
/home/dingo/scarthgap/poky/meta-raspberrypi
/home/dingo/scarthgap/poky/meta-openembedded/meta-oe
/home/dingo/scarthgap/poky/meta-openembedded/meta-python
/home/dingo/scarthgap/poky/meta-openembedded/meta-networking
/home/dingo/scarthgap/poky/meta-openembedded/meta-multimedia
"
Local.conf
MACHINE = "raspberrypi0-2w-64"
IMAGE_ROOTFS_EXTRA_SPACE = "10000"
EXTRA_IMAGE_FEATURES += " package-management ssh-server-dropbear debug-tweaks"
PACKAGE_CLASSES = "package_ipk"
IMAGE_INSTALL:append = " libcamera-apps"

Here is the error message
ERROR: libcamera-apps-1.4.2+git-r0 do_package: QA Issue: libcamera-apps: Files/directories were installed but not shipped in any package:
/usr/lib/rpicam_app.so.1.4.2
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
libcamera-apps: 1 installed and not shipped files. [installed-vs-shipped]
ERROR: libcamera-apps-1.4.2+git-r0 do_package: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/dingo/scarthgap/poky/build/tmp/work/cortexa53-poky-linux/libcamera-apps/1.4.2+git/temp/log.do_package.5878
ERROR: Task (/home/dingo/scarthgap/poky/meta-raspberrypi/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera-apps/libcamera-apps_git.bb:do_package) failed with exit code '1'

Attempts
befor creating a bbappend, I tried several options by updating libcamera-apps_git.bb but it fails everytime. Eithet i didn't compil or libcamera-apps didn't work

d```
o_install:append() {
rm -v ${D}/${bindir}/camera-bug-report
rm -v ${D}${libdir}/rpicam_app.so.1.4.2
}

not picked automatically, because it's missing common 'lib' prefix

FILES:${PN}-dev += "${libdir}/rpicam_app.so"
#FILES:${PN} += "${libdir}/rpicam_app.so.1.4.2"

#FILES_${PN} += "${libdir}/"
#FILES_${PN}-dev = "${libdir}/
${includedir}"

#FILES:${PN}-dev += "${libdir}/rpicam_app.so*"
#FILES:${PN} += "${libdir}/rpicam_app.so*"

Would you have ay idea how to solve this?
Many thanks for your support
Michael
@OldManYellsAtCloud
Copy link

I would expect that FILES:${PN} += "${libdir}/rpicam_app.so.1.4.2" would allow it work, at least to create the package successfully. What do you mean by "libcamera-apps didn't work"? Do you get any errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants