<< return to Vizycam.com

Camera class source code

Hi,

Could you share the source code of the Camera class (kcamera.cpython-37m-arm-linux-gnueabihf.so)?

Thank you

Hello,
You can find the kcamera source here:

Edward

I am trying to build kcamera on Bullseye…

However there’s not much instruction and I am stuck with a missing file during compile:

kcameramodule.c:345:5: note: (near initialization for ‘cameraType.tp_setattro’)
In file included from run.cpp:5:
libcamera_app.hpp:26:10: fatal error: libcamera/formats.h: No such file or directory
   26 | #include <libcamera/formats.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

How I tried:

  1. cloned kcamera repo
  2. installed build deps for libcamera
  3. tried running sudo python setup.py install
  4. also tried compiling the libcamera lib inside its folder (which worked) but there is still no libcamera/formats.h file available…

It would be great if the README could be updated with a little more advice on compilation of kcamera, thanks!

note there is a file called ./libcamera/include/libcamera/internal/formats.h