Giter Club home page Giter Club logo

libcamera's Introduction

libcamera

A complex camera support library for Linux, Android, and ChromeOS

Cameras are complex devices that need heavy hardware image processing operations. Control of the processing is based on advanced algorithms that must run on a programmable processor. This has traditionally been implemented in a dedicated MCU in the camera, but in embedded devices algorithms have been moved to the main CPU to save cost. Blurring the boundary between camera devices and Linux often left the user with no other option than a vendor-specific closed-source solution.

To address this problem the Linux media community has very recently started collaboration with the industry to develop a camera stack that will be open-source-friendly while still protecting vendor core IP. libcamera was born out of that collaboration and will offer modern camera support to Linux-based systems, including traditional Linux distributions, ChromeOS and Android.

Getting Started

To fetch the sources, build and install:

git clone https://git.libcamera.org/libcamera/libcamera.git
cd libcamera
meson setup build
ninja -C build install

Dependencies

The following Debian/Ubuntu packages are required for building libcamera. Other distributions may have differing package names:

A C++ toolchain: [required]
Either {g++, clang}
Meson Build system: [required]

meson (>= 0.56) ninja-build pkg-config

If your distribution doesn't provide a recent enough version of meson, you can install or upgrade it using pip3.

pip3 install --user meson
pip3 install --user --upgrade meson
for the libcamera core: [required]
libyaml-dev python3-yaml python3-ply python3-jinja2
for IPA module signing: [recommended]

Either libgnutls28-dev or libssl-dev, openssl

Without IPA module signing, all IPA modules will be isolated in a separate process. This adds an unnecessary extra overhead at runtime.

for improved debugging: [optional]

libdw-dev libunwind-dev

libdw and libunwind provide backtraces to help debugging assertion failures. Their functions overlap, libdw provides the most detailed information, and libunwind is not needed if both libdw and the glibc backtrace() function are available.

for device hotplug enumeration: [optional]
libudev-dev
for documentation: [optional]
python3-sphinx doxygen graphviz texlive-latex-extra
for gstreamer: [optional]
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
for cam: [optional]

libevent-dev is required to support cam, however the following optional dependencies bring more functionality to the cam test tool:

  • libdrm-dev: Enables the KMS sink
  • libjpeg-dev: Enables MJPEG on the SDL sink
  • libsdl2-dev: Enables the SDL sink
for qcam: [optional]
qtbase5-dev libqt5core5a libqt5gui5 libqt5widgets5 qttools5-dev-tools libtiff-dev
for tracing with lttng: [optional]
liblttng-ust-dev python3-jinja2 lttng-tools
for android: [optional]
libexif-dev libjpeg-dev
for lc-compliance: [optional]
libevent-dev

Basic testing with cam utility

The cam utility can be used for basic testing. You can list the cameras detected on the system with cam -l, and capture ten frames from the first camera and save them to disk with cam -c 1 --capture=10 --file. See cam -h for more information about the cam tool.

In case of problems, a detailed debug log can be obtained from libcamera by setting the LIBCAMERA_LOG_LEVELS environment variable:

:~$ LIBCAMERA_LOG_LEVELS=*:DEBUG cam -l

Using GStreamer plugin

To use GStreamer plugin from source tree, set the following environment so that GStreamer can find it. This isn't necessary when libcamera is installed.

export GST_PLUGIN_PATH=$(pwd)/build/src/gstreamer

The debugging tool gst-launch-1.0 can be used to construct a pipeline and test it. The following pipeline will stream from the camera named "Camera 1" onto the OpenGL accelerated display element on your system.

gst-launch-1.0 libcamerasrc camera-name="Camera 1" ! glimagesink

To show the first camera found you can omit the camera-name property, or you can list the cameras and their capabilities using:

gst-device-monitor-1.0 Video

This will also show the supported stream sizes which can be manually selected if desired with a pipeline such as:

gst-launch-1.0 libcamerasrc ! 'video/x-raw,width=1280,height=720' ! \
      glimagesink

The libcamerasrc element has two log categories, named libcamera-provider (for the video device provider) and libcamerasrc (for the operation of the camera). All corresponding debug messages can be enabled by setting the GST_DEBUG environment variable to libcamera*:7.

Presently, to prevent element negotiation failures it is required to specify the colorimetry and framerate as part of your pipeline construction. For instance, to capture and encode as a JPEG stream and receive on another device the following example could be used as a starting point:

gst-launch-1.0 libcamerasrc ! \
     video/x-raw,colorimetry=bt709,format=NV12,width=1280,height=720,framerate=30/1 ! \
     jpegenc ! multipartmux ! \
     tcpserversink host=0.0.0.0 port=5000

Which can be received on another device over the network with:

gst-launch-1.0 tcpclientsrc host=$DEVICE_IP port=5000 ! \
     multipartdemux ! jpegdec ! autovideosink

Troubleshooting

Several users have reported issues with meson installation, crux of the issue is a potential version mismatch between the version that root uses, and the version that the normal user uses. On calling ninja -C build, it can't find the build.ninja module. This is a snippet of the error message.

ninja: Entering directory `build'
ninja: error: loading 'build.ninja': No such file or directory

This can be solved in two ways:

  1. Don't install meson again if it is already installed system-wide.

2) If a version of meson which is different from the system-wide version is already installed, uninstall that meson using pip3, and install again without the --user argument.

libcamera's People

Contributors

andrey-konovalov avatar christianrauch avatar davidplowman avatar devut avatar djrscally avatar ericcurtin avatar fsylvestre avatar harveychyang avatar helen-fornazier avatar initbasti avatar jhautbois avatar jmondi avatar kaairagupta avatar kbingham avatar martinezjavier avatar naushir avatar neg avatar nfraprado avatar njhollinghurst avatar pbguyen-baylibre avatar pinchartl avatar pobrn avatar qschulz avatar rahi374 avatar ribalda avatar rothn avatar tomba avatar vedantparanjape avatar xroumegue avatar xzz53 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

libcamera's Issues

Libcamera does not start when stopped

After stopping the camera it won't restart (requestCompleted is not emited).

This can be tested with the qcam toolbar actions (stop capture, start capture).

Also it does not matter which renderer is chosen (Qt, OpenGL).

0.0.1: build fails

Looks like it is necessary to add small cleanup

[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ ninja
[2/20] Compiling C++ object src/gstreamer/libgstlibcamera.so.p/gstlibcameraprovider.cpp.o
FAILED: src/gstreamer/libgstlibcamera.so.p/gstlibcameraprovider.cpp.o
/usr/bin/g++ -Isrc/gstreamer/libgstlibcamera.so.p -Isrc/gstreamer -I../src/gstreamer -Iinclude -I../include -Iinclude/libcamera/ipa -Iinclude/libcamera -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Werror -std=c++17 -O0 -Wshadow -include /home/tkloczko/rpmbuild/BUILD/libcamera-0.0.1/x86_64-redhat-linux-gnu/config.h -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fPIC -DLIBCAMERA_BASE_PRIVATE '-DVERSION="0.0.1"' '-DPACKAGE="libcamera"' -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -MD -MQ src/gstreamer/libgstlibcamera.so.p/gstlibcameraprovider.cpp.o -MF src/gstreamer/libgstlibcamera.so.p/gstlibcameraprovider.cpp.o.d -o src/gstreamer/libgstlibcamera.so.p/gstlibcameraprovider.cpp.o -c ../src/gstreamer/gstlibcameraprovider.cpp
../src/gstreamer/gstlibcameraprovider.cpp: In function ‘GList* gst_libcamera_provider_probe(GstDeviceProvider*)’:
../src/gstreamer/gstlibcameraprovider.cpp:175:31: error: unused variable ‘self’ [-Werror=unused-variable]
  175 |         GstLibcameraProvider *self = GST_LIBCAMERA_PROVIDER(provider);
      |                               ^~~~
cc1plus: all warnings being treated as errors

Meson output

+ /usr/bin/meson --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . x86_64-redhat-linux-gnu -D test=false -D v4l2=false -D pycamera=disabled
The Meson build system
Version: 0.63.3
Source dir: /home/tkloczko/rpmbuild/BUILD/libcamera-0.0.1
Build dir: /home/tkloczko/rpmbuild/BUILD/libcamera-0.0.1/x86_64-redhat-linux-gnu
Build type: native build
Project name: libcamera
Project version: 0.0.1
C compiler for the host machine: /usr/bin/gcc (gcc 12.2.1 "gcc (GCC) 12.2.1 20220819 (Red Hat 12.2.1-2)")
C linker for the host machine: /usr/bin/gcc ld.bfd 2.39-3
C++ compiler for the host machine: /usr/bin/g++ (gcc 12.2.1 "g++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-2)")
C++ linker for the host machine: /usr/bin/g++ ld.bfd 2.39-3
Host machine cpu family: x86_64
Host machine cpu: x86_64
Header "unistd.h" has symbol "issetugid" : NO
Header "stdlib.h" has symbol "secure_getenv" : YES
Compiler for C supports arguments -Wno-c99-designator: NO
Found pkg-config: /usr/bin/pkg-config (1.9.3)
Run-time dependency lttng-ust found: YES 2.13.5
Program ./parser.py found: YES (/home/tkloczko/rpmbuild/BUILD/libcamera-0.0.1/utils/ipc/./parser.py)
Program ./generate.py found: YES (/home/tkloczko/rpmbuild/BUILD/libcamera-0.0.1/utils/ipc/./generate.py)
Program ./extract-docs.py found: YES (/home/tkloczko/rpmbuild/BUILD/libcamera-0.0.1/utils/ipc/./extract-docs.py)
Program ./gen-tp-header.py found: YES (/home/tkloczko/rpmbuild/BUILD/libcamera-0.0.1/utils/tracepoints/./gen-tp-header.py)
Configuring version.h using configuration
Program openssl found: YES (/usr/bin/openssl)
Library atomic found: YES
Run-time dependency threads found: YES
Found CMake: /usr/bin/cmake (3.24.2)
Run-time dependency libdw found: NO (tried pkgconfig and cmake)
Run-time dependency libunwind found: NO (tried pkgconfig and cmake)
Header "execinfo.h" has symbol "backtrace" : YES
Library dl found: YES
Run-time dependency libudev found: YES 251
Run-time dependency yaml-0.1 found: YES 0.2.5
Run-time dependency gnutls found: YES 3.7.8
Dependency libexif skipped: feature android disabled
Dependency libjpeg skipped: feature android disabled
Run-time dependency libevent_pthreads found: YES 2.1.12-stable
Run-time dependency GTest found: YES 1.12.1
Dependency libevent_pthreads found: YES 2.1.12-stable (cached)
Run-time dependency libdrm found: YES 2.4.113
Run-time dependency libjpeg found: YES 2.1.4
sdl2-config found: NO
Run-time dependency sdl2 found: NO (tried pkgconfig and config-tool)
Run-time dependency qt5 (modules: Core, Gui, Widgets) found: YES 5.15.6 (pkg-config)
Run-time dependency libtiff-4 found: YES 4.4.0
Header "QOpenGLWidget" has symbol "QOpenGLWidget" with dependencies Qt5Core, Qt5Core, Qt5Gui, Qt5Widgets: YES
Detecting Qt5 tools
Run-time dependency qt5 (modules: Core) found: YES 5.15.6 (pkg-config)
Program /usr/bin/moc found: YES 5.15.6 (/usr/bin/moc)
Program /usr/bin/uic found: YES 5.15.6 (/usr/bin/uic)
Program /usr/bin/rcc found: YES 5.15.6 (/usr/bin/rcc)
Program /usr/bin/lrelease found: NO
Program lrelease5 found: NO
Program lrelease-qt5 found: NO
Program lrelease found: NO
Run-time dependency glib-2.0 found: YES 2.74.0
Run-time dependency gstreamer-video-1.0 found: YES 1.20.4
Run-time dependency gstreamer-allocators-1.0 found: YES 1.20.4
Dependency python3 skipped: feature pycamera disabled
Program doxygen found: YES (/usr/bin/doxygen)
Program dot found: YES (/usr/bin/dot)
Configuring Doxyfile using configuration
Program sphinx-build-3 found: NO
Program sphinx-build found: YES (/usr/bin/sphinx-build)
Configuring config.h using configuration
Program python3 (jinja2, ply, jinja2, yaml) found: YES (/usr/bin/python3) modules: jinja2, ply, jinja2, yaml
Build targets in project: 69

libcamera 0.0.1

  Versions
    Sources                  : 0.0.1

  Paths
    LIBCAMERA_DATA_DIR       : "/usr/share/libcamera"
    LIBCAMERA_SYSCONF_DIR    : "/etc/libcamera"
    IPA_PROXY_DIR            : "/usr/libexec/libcamera"
    IPA_CONFIG_DIR           : "/etc/libcamera/ipa:/usr/share/libcamera/ipa"
    IPA_MODULE_DIR           : "/usr/lib64/libcamera"

  Configuration
    Enabled pipelines        : ipu3
                               raspberrypi
                               rkisp1
                               simple
                               uvcvideo
                               vimc
    Enabled IPA modules      : ipu3
                               raspberrypi
                               rkisp1
                               vimc
    Tracing support          : YES
    Android support          : NO
    GStreamer support        : YES
    Python bindings          : NO
    V4L2 emulation support   : NO
    cam application          : YES
    qcam application         : YES
    lc-compliance application: YES
    Unit tests               : NO

  User defined options
    auto_features            : enabled
    bindir                   : /usr/bin
    buildtype                : plain
    datadir                  : /usr/share
    includedir               : /usr/include
    infodir                  : /usr/share/info
    libdir                   : /usr/lib64
    libexecdir               : /usr/libexec
    localedir                : /usr/share/locale
    localstatedir            : /var
    mandir                   : /usr/share/man
    prefix                   : /usr
    sbindir                  : /usr/sbin
    sharedstatedir           : /var/lib
    sysconfdir               : /etc
    wrap_mode                : nodownload
    pycamera                 : disabled
    test                     : false
    v4l2                     : false

Camera connected, but not available

Just got libcamera working on an RPi4B running Ubuntu 22.04 LTS, but "cam -l" does not list a camera available. (Confirmed the camera and hardware work with RPi OS and libcamera-hello prior to the build.)
From preliminary troubleshooting suspect it has something to do with permissions.

The initial error codes indicate libcamera (or the OS) recognized the camera (imx477), but had problems with dmaHeap.
"ERROR RPI dma_heaps.cpp:53 Could not open any dmaHeap device", and
"ERROR RPI raspberrypi.cpp:1278 Failed to register camera imx477 10-001a: -12"

From reading about dmaHeap issues online I added my username to the 'video' group and no longer get those errors, but still no camera is available. Not sure what to make of the debug output below, other than things generally look good (no errors).

Any recommendations on what else to look into?

luis@RPi4-Ubuntu:~$ LIBCAMERA_LOG_LEVELS=*:DEBUG cam -l
[0:10:29.031297600] [3202] DEBUG IPAModule ipa_module.cpp:329 ipa_rkisp1.so: IPA module /usr/local/lib/aarch64-linux-gnu/libcamera/ipa_rkisp1.so is signed
[0:10:29.031920457] [3202] DEBUG IPAManager ipa_manager.cpp:245 Loaded IPA module '/usr/local/lib/aarch64-linux-gnu/libcamera/ipa_rkisp1.so'
[0:10:29.033633179] [3202] DEBUG IPAModule ipa_module.cpp:329 ipa_rpi.so: IPA module /usr/local/lib/aarch64-linux-gnu/libcamera/ipa_rpi.so is signed
[0:10:29.034040170] [3202] DEBUG IPAManager ipa_manager.cpp:245 Loaded IPA module '/usr/local/lib/aarch64-linux-gnu/libcamera/ipa_rpi.so'
[0:10:29.034515567] [3202]  INFO Camera camera_manager.cpp:299 libcamera v0.0.4+17-3f8bcc1a
[0:10:29.034992705] [3205] DEBUG Camera camera_manager.cpp:108 Starting camera manager
[0:10:29.052254924] [3205] DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "bcm2835-codec" created from /dev/media2
[0:10:29.052679674] [3205] DEBUG DeviceEnumerator device_enumerator_udev.cpp:95 Defer media device /dev/media2 due to 5 missing dependencies
[0:10:29.058059409] [3205] DEBUG DeviceEnumerator device_enumerator_udev.cpp:320 All dependencies for media device /dev/media2 found
[0:10:29.058322440] [3205] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media2: bcm2835-codec
[0:10:29.060125198] [3205] DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "bcm2835-isp" created from /dev/media0
[0:10:29.060326675] [3205] DEBUG DeviceEnumerator device_enumerator_udev.cpp:95 Defer media device /dev/media0 due to 4 missing dependencies
[0:10:29.061321116] [3205] DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "bcm2835-isp" created from /dev/media3
[0:10:29.061479539] [3205] DEBUG DeviceEnumerator device_enumerator_udev.cpp:95 Defer media device /dev/media3 due to 4 missing dependencies
[0:10:29.065747705] [3205] DEBUG DeviceEnumerator device_enumerator_udev.cpp:320 All dependencies for media device /dev/media0 found
[0:10:29.065879906] [3205] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media0: bcm2835-isp
[0:10:29.069546567] [3205] DEBUG DeviceEnumerator device_enumerator_udev.cpp:320 All dependencies for media device /dev/media3 found
[0:10:29.069689675] [3205] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media3: bcm2835-isp
[0:10:29.070569564] [3205] DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "unicam" created from /dev/media1
[0:10:29.071008221] [3205] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media1: unicam
[0:10:29.072645574] [3205] DEBUG Camera camera_manager.cpp:151 Found registered pipeline handler 'PipelineHandlerISI'
[0:10:29.073274987] [3205] DEBUG Camera camera_manager.cpp:151 Found registered pipeline handler 'PipelineHandlerRPi'
[0:10:29.073481056] [3205] DEBUG DeviceEnumerator device_enumerator.cpp:312 Successful match for media device "unicam"
[0:10:29.073627035] [3205] DEBUG DeviceEnumerator device_enumerator.cpp:312 Successful match for media device "bcm2835-isp"
[0:10:29.073813771] [3205] DEBUG Camera camera_manager.cpp:151 Found registered pipeline handler 'PipelineHandlerRkISP1'
[0:10:29.074557088] [3205] DEBUG Camera camera_manager.cpp:151 Found registered pipeline handler 'SimplePipelineHandler'
[0:10:29.074890711] [3205] DEBUG Camera camera_manager.cpp:151 Found registered pipeline handler 'PipelineHandlerUVC'
Available cameras:
luis@RPi4-Ubuntu:~$ 

slots() and emit() functions conflict with Qt keywords

slots andemit are keywords for Qt, and also functions in the SignalBase class (signal.h:31).

Thus, when trying to use libcamera in a Qt application, it will throw errors, as moc generator will try to convert them to macros.

Would it be possible to rename those functions, so it won't conflict the QT keywords?

As a workaround the QT_NO_KEYWORDS compile flag can be specified and the keywords changed to Q_SLOTS, Q_EMIT etc., but it's quite confusing.

Unhandled python exception This is a Meson bug and should be reported!

Total newbie here. "Simply" attempting to build/install libcamera on a Raspberry Pi 4B (8 GB) and Ubuntu 22.04 LTS (for the second time, this time taking notes…) For whatever it's worth, this is new hardware, new image…

Confirmed the HQ camera and hardware work as expected using an SD card with a Raspberry PI OS image and running libcamera-hello successfully.

Used a new SD card to load Ubuntu 22.04 LTS, ran sudo apt update, upgrade, and rebooted. Installed G++, PIP3, meson, libyaml-dev, python3-yaml, python3-ply, python-jinja2, libgnutls-28-dev, libdw-dev, libunwind-dev and attempted start the build when got an error to install git, which I then did.

Ran "git clone https:…" successfully and changed directories to libcamera. Attempted to run "meson setup build" and got an error to install meson (so I ran "sudo apt install meson"). Attempting to build again gave, "Error: Unable to find CMake".

Looking at the log file, among other things, meson-logs.txt said,
"Running compile:
Working directory: /home/luis/libcamera/build/meson-private/tmp4l161z6z
Command line: cc /home/luis/libcamera/build/meson-private/tmp4l161z6z/testfile.c -o /home/luis/libcamera/build/meson-private/tmp4l161z6z/output.obj -c -D_FILE_OFFSET_BITS=64 -O0

Compiler stderr:
/home/luis/libcamera/build/meson-private/tmp4l161z6z/testfile.c: In function 'main':
/home/luis/libcamera/build/meson-private/tmp4l161z6z/testfile.c:6:17: error: 'issetugid' undeclared (first use in this function); did you mean 'setegid'?
6 | issetugid;
| ^~~~~~~~~
| setegid
/home/luis/libcamera/build/meson-private/tmp4l161z6z/testfile.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
…"
--> Not sure why the compiler threw the undeclared identifier error.

--> Further down in meson-logs.txt it looks like pkg-config was missing
"Trying a default Pkg-config fallback at pkg-config
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Pkg-config binary for machine 1 not found. Giving up.
CMake binary for 1 is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Did not find CMake 'cmake'
Found CMake: NO
CMake binary for machine 1 not found. Giving up."

Ran "sudo apt install pkg-config" and tried another "meson setup build", which seems to have completed.

Tried running "cam -l" and got "Command 'cam' not found, but can be installed with: "sudo apt install libcamera-tools". Installed libcamera-tools.

Realized I missed a step and ran "ninja -C build install"

  • Near the end I was prompted for a password, which I entered
  • Got an error,
    "ERROR: Unhandled python exception
    This is a Meson bug and should be reported!
    FAILED: meson-internal__install
    /usr/bin/meson install --no-rebuild
    ninja: build stopped: subcommand failed.

Reran "ninja -C build install" and got,

  • "ninja: Entering directory 'build'
  • [1/2] Installing files.
    Installation failed due to insufficient permissions…"

Reran command with sudo, "sudo ninja -C build install" and got same error

Tried "cam -l" and got "Segmentation fault (core dumped) and an Ubuntu error.

One last time and then I plead uncle...

"luis@Ubuntu-RPi4:/libcamera$ sudo ninja -C build install
ninja: Entering directory `build'
[1/2] Installing files.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 146, in run
return options.run_func(options)
File "/usr/lib/python3/dist-packages/mesonbuild/minstall.py", line 811, in run
installer.do_install(datafilename)
File "/usr/lib/python3/dist-packages/mesonbuild/minstall.py", line 564, in do_install
d = self.check_installdata(pickle.load(ifile))
AttributeError: Can't get attribute 'OptionString' on <module 'mesonbuild.interpreter.primitives.string' from '/usr/lib/python3/dist-packages/mesonbuild/interpreter/primitives/string.py'>
ERROR: Unhandled python exception
This is a Meson bug and should be reported!
FAILED: meson-internal__install
/usr/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.
luis@Ubuntu-RPi4:
/libcamera$"

I give. (Not sure why the text above is crossed out). Can anyone offer some insight on what might be going on?
Luis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.