Skip to content

Meson-Ninja Build Install Error on Raspberry Pi 4/Ubuntu22.04 #247

Open
@ARLunan

Description

@ARLunan

Installed Meson (1.7.0) and colcon-meson (0.4.5) as root, all prescribed Dependancies. Following Getting Started: $ meson setup ....completed resulting in libcamera 0.4.0 , found ninja-1.10.1 at /usr/bin/ninja.

ubuntu@rp4-ub22h-mt:/libcamera$ which ninja
/usr/bin/ninja
**ubuntu@rp4-ub22h-mt:
/libcamera$** which meson
/home/ubuntu/.local/bin/meson

Ninja Build ERROR: (See below transcript)

Installation failed due to insufficient permissions.
ModuleNotFoundError: No module named 'mesonbuild'
FAILED: meson-internal__install


MESON
ubuntu@rp4-ub22h-mt:~/libcamera$ meson setup build --buildtype=release -Dpipelines=rpi/vc4,rpi/pisp -Dipas=rpi/vc4,rpi/pisp -Dv4l2=true -Dgstreamer=enabled -Dtest=false -Dlc-compliance=disabled -Dcam=disabled -Dqcam=disabled -Ddocumentation=disabled -Dpycamera=enabled
The Meson build system
Version: 1.7.0
Source dir: /home/ubuntu/libcamera
Build dir: /home/ubuntu/libcamera/build
Build type: native build
Project name: libcamera
Project version: 0.4.0
C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu122.04) 11.4.0")
C linker for the host machine: cc ld.bfd 2.38
C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1
22.04) 11.4.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Host machine cpu family: aarch64
Host machine cpu: aarch64
.
.
[220/221] Installing files
Installing include/libcamera/ipa/core_ipa_interface.h to /usr/local/include/libcamera/libcamera/ipa
Installation failed due to insufficient permissions.
Attempt to use /usr/bin/sudo to gain elevated privileges? [y/n] I selected Y
ubuntu@rp4-ub22h-mt:~/libcamera$

RESTART

ubuntu@rp4-ub22h-mt:/libcamera$ ninja -C build install
ninja: Entering directory `build'
[1/2] Installing files
Installing include/libcamera/ipa/core_ipa_interface.h to /usr/local/include/libcamera/libcamera/ipa
Installation failed due to insufficient permissions.
Attempt to use /usr/bin/sudo to gain elevated privileges? [y/n] y
[sudo] password for ubuntu:
Traceback (most recent call last):
File "/home/ubuntu/.local/bin/meson", line 5, in
from mesonbuild.mesonmain import main
ModuleNotFoundError: No module named 'mesonbuild'
FAILED: meson-internal__install
/home/ubuntu/.local/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.
**ubuntu@rp4-ub22h-mt:
/libcamera$**


ubuntu@rp4-ub22h-mt:~/libcamera$ which meson
/home/ubuntu/.local/bin/meson
ubuntu@rp4-ub22h-mt:~/libcamera$ which ninja
/usr/bin/ninja

Appreciate suggested troubleshooting

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions