Closed gwvr closed 7 months ago
You also need to "sudo apt install pybind11-dev"
I posted a patch to libcamera (https://patchwork.libcamera.org/patch/18856/) to add documentation about this but it didn't get merged yet. It's not controversial - I'll just merge it.
Thanks @kbingham. I did have pybind11-dev
installed, and it is in the README.rst for v0.2.0 (I haven't checked other branches).
I've also attempted and failed to build libcamera v0.1.0
, v0.1.0+rpt20231122
, v0.2.0+rpt20240215
& main
(075b54d5).
I don't know what I'm doing, but I'll have a dig and see if I can find clues in the codebase.
@gwvr I can only see your call to 'meson --reconfigure' ... what's your original meson configuration command?
https://github.com/raspberrypi/libcamera/blob/main/meson_options.txt#L55 shows that by default pycamera is disabled and must be explicitly enabled to be built.
'meson setup build --reconfigure -Dpycamera=enabled' or such.
@kbingham thanks, I just worked that out for myself - I found a clue in one of the files in the repo, but for reasons I can't explain I can't find that file now.
I originally ran meson setup build
, then installed additional apt packages and ran meson setup build --reconfigure
.
I can confirm that both
meson setup build --reconfigure -Dpycamera=auto
&
meson setup build --reconfigure -Dpycamera=enabled
seem to give the desired outcome.
I have been able to build libcamera v0.2.0, but without Python bindings. Perhaps there is an omission in the readme?
I have installed the dependencies as follows (on Raspberry Pi OS Bookworm)
meson setup build --reconfigure
output: