Skip to content

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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bhargavdas
Copy link

@bhargavdas bhargavdas commented Mar 26, 2025

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: #1440

@bhargavdas
Copy link
Author

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 ?

@kraj kraj enabled auto-merge (rebase) March 26, 2025 20:19
@kraj
Copy link
Collaborator

kraj commented Mar 26, 2025

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

@bhargavdas
Copy link
Author

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

@kraj
Copy link
Collaborator

kraj commented Mar 27, 2025

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

yeah perhaps some CI glitch

@bhargavdas
Copy link
Author

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 ?

@kraj
Copy link
Collaborator

kraj commented Mar 27, 2025

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.

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: agherzan#1440

Signed-off-by: Bhargav Das <bhargavdas100@gmail.com>
auto-merge was automatically disabled April 21, 2025 15:28

Head branch was pushed to by a user without write access

@bhargavdas
Copy link
Author

bhargavdas commented Apr 21, 2025

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

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

Successfully merging this pull request may close these issues.

RPI machines' builds fail while installing libcamera-apps
2 participants