-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication error with ninja -C build install #46
Comments
You are trying to install libcamera with the default installation paths i.e. installation to This failed as well (did you not have a root password? Did you not type it in correctly? Either way, this is a matter of polkit permissions, not meson and not libcamera specifically). Since that failed,
Try making the entire console paste go inside triple backticks:
|
When the request came up for password I did enter the correct root password. |
Actually I think it's /your/ password not the root password, and your account should have permission to have sudo access I expect. Indeed this is a meson/ninja issue - not a libcamera issue. |
polkit can be configured all different ways, e.g. you can choose to auth as the current user, or as the root user, or choose a random other user with privileges and auth as that user. At the end of the day, it very much boils down to polkit authentication failing. If you prefer to use sudo instead of polkit you can of course do that too :) |
I'm logged in as the default ubuntu user and am a member of the sudo group |
polkit may or may not be configured to care about the sudo group. Either way, the point is that this will work if and only if polkit (not sudo) is successfully authenticated. As I said above, you can run the installation with sudo yourself rather than having Meson internally re-run itself with the authentication mechanism that doesn't work for you.
|
`Following from:
https://libcamera.org/getting-started.html
and
https://www.raspberrypi.com/documentation/accessories/camera.html#libcamera-and-libcamera-apps
Skip over Getting Started to install dependencies first
Check for C++
ubuntu@ubuntu:~$ g++ --version
g++ (Ubuntu 11.2.0-19ubuntu1) 11.2.0
ubuntu@ubuntu:
$ pip3 install --user meson$ pip3 install --user --upgrade mesonubuntu@ubuntu:
ubuntu@ubuntu:~/libcamera$ pip3 install ninja
Being unclear as to which of the optional dependencies may be needed
install then all. Respond “y” when asked.
ubuntu@ubuntu:
$ sudo apt install libyaml-dev python3-yaml python3-ply python3-jinja2/libcamera$ sudo apt install libgnutls28-devubuntu@ubuntu:
ubuntu@ubuntu:
/libcamera$ sudo apt install libdw-dev libunwind-dev/libcamera$ sudo apt install libudev-devubuntu@ubuntu:
ubuntu@ubuntu:
/libcamera$ sudo apt install python3-sphinx doxygen graphviz texlive-latex-extra/libcamera$ sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-devubuntu@ubuntu:
ubuntu@ubuntu:
/libcamera$ sudo apt install libevent-dev/libcamera$ sudo apt install libdrm-devubuntu@ubuntu:
ubuntu@ubuntu:
/libcamera$ sudo apt install libjpeg-dev/libcamera$ sudo apt install libsdl2-devubuntu@ubuntu:
ubuntu@ubuntu:
/libcamera$ sudo apt install qtbase5-dev libqt5core5a libqt5gui5 libqt5widgets5 qttools5-dev-tools libtiff-dev/libcamera$ sudo apt install liblttng-ust-dev python3-jinja2 lttng-toolsubuntu@ubuntu:
Configure /boot/firmware/config.txt
ubuntu@ubuntu:~$ cd /boot/firmware/
ubuntu@ubuntu:/boot/firmware$ sudo nano config.txt
camera_auto_detect=0 [change existing line =1 > =0]
dtoverlay=imx219 [add new line at bottom for Picamera driver]
start_x=1 [may also be needed at end to enable camera]
Now to the Getting Started part:
ubuntu@ubuntu:
$ git clone https://git.libcamera.org/libcamera/libcamera.git$ cd libcameraubuntu@ubuntu:
ubuntu@ubuntu:
/libcamera$ meson build/libcamera$ ninja -C build installubuntu@ubuntu:
very long install...then -
[424/425] Installing files.
Installation failed due to insufficient permissions.
Attempting to use polkit to gain elevated privileges...
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/python3' as the super user
Authenticating as: Ubuntu (ubuntu)
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
FAILED: meson-internal__install
/home/ubuntu/.local/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.`
What's going on here and how to fix it?
Thanks!
Jim Phelan
PS pardon the weird formatting. Don't know why it's making strikeouts.
The text was updated successfully, but these errors were encountered: