meta-raspberrypi icon indicating copy to clipboard operation
meta-raspberrypi copied to clipboard

libcamera-apps: Fix library packaging issues for rpicam_app.so.1.4.2

Open bhargavdas opened this issue 9 months ago • 7 comments

Package rpicam_app.so.1.4.2 library for the default package to fix the following error.

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/build-2/tmp/work/cortexa53-poky-linux/libcamera-apps/1.4.2+git/temp/log.do_package.1110484 ERROR: Task (/home/meta-raspberrypi/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera-apps/libcamera-apps_git.bb:do_package) failed with exit code '1'

The following version expansion is used to make it compatible with future package version changes.

${@d.getVar("PV", False).str().split('+')[0]}"

Fixes: https://github.com/agherzan/meta-raspberrypi/issues/1440

bhargavdas avatar Mar 26 '25 17:03 bhargavdas

After this change I am able to launch rpicam-hello but the application exits with the following error,

ERROR: rpicam-apps currently only supports the Raspberry Pi platforms. Contributions for other platforms are welcome at https://github.com/raspberrypi/rpicam-apps.

Has anyone found a solution for it ?

bhargavdas avatar Mar 26 '25 17:03 bhargavdas

After this change I am able to launch rpicam-hello but the application exits with the following error,

ERROR: rpicam-apps currently only supports the Raspberry Pi platforms. Contributions for other platforms are welcome at https://github.com/raspberrypi/rpicam-apps.

Has anyone found a solution for it ?

somehow its setting Platform = UNKNOWN instead of vc4 or legacy at runtime, hook up gdb and set breakpoint on Options constructor and see where is it getting _platform to populate from

kraj avatar Mar 26 '25 20:03 kraj

@kraj , I see some CI checks failing seems like CI broken or is it something in the PR ?

bhargavdas avatar Mar 27 '25 15:03 bhargavdas

@kraj , I see some CI checks failing seems like CI broken or is it something in the PR ?

yeah perhaps some CI glitch

kraj avatar Mar 27 '25 15:03 kraj

After this change I am able to launch rpicam-hello but the application exits with the following error, ERROR: rpicam-apps currently only supports the Raspberry Pi platforms. Contributions for other platforms are welcome at https://github.com/raspberrypi/rpicam-apps. Has anyone found a solution for it ?

somehow its setting Platform = UNKNOWN instead of vc4 or legacy at runtime, hook up gdb and set breakpoint on Options constructor and see where is it getting _platform to populate from

The reported error appears because the board is not detecting the camera. Here are the additional configs I have added,

ENABLE_UART = "1"
ENABLE_I2C = "1"

LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"
IMAGE_ROOTFS_EXTRA_SPACE = "1000000"
VIDEO_CAMERA = "1"
GPU_FREQ = "250"
GPU_MEM = "128"
IMAGE_INSTALL:append = " libcamera-apps"
IMAGE_INSTALL:append = " libcamera"

IMAGE_INSTALL:append = " strace gdb i2c-tools v4l-utils"

KERNEL_MODULE_AUTOLOAD:rpi += "i2c-dev i2c-bcm2708"

What am I missing here ?

I checked in both rpi3B+ and rpi02w, in both cases the camera is not at all detected.

If this is a genuine bug, shall I create a new issue ?

bhargavdas avatar Mar 27 '25 18:03 bhargavdas

After this change I am able to launch rpicam-hello but the application exits with the following error, ERROR: rpicam-apps currently only supports the Raspberry Pi platforms. Contributions for other platforms are welcome at https://github.com/raspberrypi/rpicam-apps. Has anyone found a solution for it ?

somehow its setting Platform = UNKNOWN instead of vc4 or legacy at runtime, hook up gdb and set breakpoint on Options constructor and see where is it getting _platform to populate from

The reported error appears because the board is not detecting the camera. Here are the additional configs I have added,

ENABLE_UART = "1"
ENABLE_I2C = "1"

LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"
IMAGE_ROOTFS_EXTRA_SPACE = "1000000"
VIDEO_CAMERA = "1"
GPU_FREQ = "250"
GPU_MEM = "128"
IMAGE_INSTALL:append = " libcamera-apps"
IMAGE_INSTALL:append = " libcamera"

IMAGE_INSTALL:append = " strace gdb i2c-tools v4l-utils"

KERNEL_MODULE_AUTOLOAD:rpi += "i2c-dev i2c-bcm2708"

What am I missing here ?

I checked in both rpi3B+ and rpi02w, in both cases the camera is not at all detected.

If this is a genuine bug, shall I create a new issue ?

Perhaps yes.

kraj avatar Mar 27 '25 19:03 kraj

@kraj I rebased the branch from Github UI and looks like auto-merge is disabled, please check.

bhargavdas avatar Apr 21 '25 15:04 bhargavdas

@kraj I have rebased this branch with latest master, please check. Looks like there is some issue with CI, let me know if anything needs to be updated in this PR.

bhargavdas avatar Jul 25 '25 05:07 bhargavdas