Skip to content

Conversation

mcbullisisu
Copy link

@mcbullisisu mcbullisisu commented Feb 22, 2025

- What I did
Added python3-picamera2 recipe. Picamera2, https://github.com/raspberrypi/picamera2, is the libcamera based replacement for picamera, which used the legacy precompiled camera stack.

This was also recommended by @kraj in #1298 (comment)

- How I did it

TODO:

  • In progress - Install on Pi
  • Test with a couple different camera hardware variants. I have a Pi Camera 3 wide & Pi Camera V2. I haven't tried either yet.

@mcbullisisu mcbullisisu marked this pull request as draft February 22, 2025 16:16
@mcbullisisu mcbullisisu changed the title Add recipe for python3-picamera2 python3-picamera2: add picamera2 library Feb 22, 2025
@mcbullisisu mcbullisisu marked this pull request as ready for review February 22, 2025 16:22
@mcbullisisu mcbullisisu changed the title python3-picamera2: add picamera2 library python3-picamera2: add Picamera2 library Feb 22, 2025
picamera-libs \
"

SRC_URI = "git://[email protected]/raspberrypi/picamera2.git;protocol=ssh;branch=main"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it have to use ssh protocol for SRC_URI, can we use https instead? something like
git://github.com/raspberrypi/picamera2.gitprotocol=https;branch=main

inherit setuptools3

COMPATIBLE_HOST = "null"
COMPATIBLE_HOST:rpi:libc-glibc = "(arm.*)-linux"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about 64-bit rpi ? maybe you want

COMPATIBLE_HOST = "null"
COMPATIBLE_HOST:rpi = "(.*)"

Copy link
Owner

@agherzan agherzan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the comments from @kraj, please take a look at our contribution guidelines to tweak the commit accordingly: https://meta-raspberrypi.readthedocs.io/en/latest/contributing.html

Thanks!

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.

3 participants