Can't get motion to run on Raspberry pi OS bookworm #1786
-
Did you read the guide?Yes What is the base version number of Motion being used?4.5.x What was the install method?Installed via package tool What is base architecture?ARM-32bit What is the distro being used?Raspbian Disto version numberDebian GNU/Linux 12 (bookworm) Camera type(s) being used?PI cam via libcamerify Describe the issue/problem and steps to reproduceWhen I start motion I get the error Motion log output at log_level 8Log file was too big to paste here so attached. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Op zaterdag 13 juli 2024 13:02:25 CEST schreef micksulley:
### Did you read the guide?
Yes
### What is the base version number of Motion being used?
4.5.x
### What was the install method?
Installed via package tool
### What is base architecture?
ARM-32bit
### What is the distro being used?
Raspbian
### Disto version number
Debian GNU/Linux 12 (bookworm)
### Camera type(s) being used?
PI cam via libcamerify
### Describe the issue/problem and steps to reproduce
When I start motion I get the error
`ERROR: ld.so: object '/usr/lib/aarch64-linux-gnu/libcamera/v4l2-compat.so'
from LD_PRELOAD cannot be preloaded (cannot open shared object file):
ignored` Motion then appears to run, I can open the web page, but when I
open camera1 it says "UNABLE TO OPEN VIDEO DEVICE" This was installed from
the Raspi distro but I have also tried downloading and installing
bookworm_motion_4.6.0-1_arm64 and bookworm_motion_4.5.1-1_arm64 with
similar results. I have attached my config files (added.txt to get them
loaded)
[camera1.conf.txt](https://github.com/user-attachments/files/16201825/camera
1.conf.txt)
[motion.conf.txt](https://github.com/user-attachments/files/16201826/motion
.conf.txt)
[motion.log](https://github.com/user-attachments/files/16201839/motion.log)
### Motion log output at log_level 8
```shell
Log file was too big to paste here so attached.
```
I faced the same problem and got it solved by changes in the /boot/firmware/
config.txt. When you search in the forum of the raspberry pi you will find
what to change in that file. something with start_x and gui....
…--
fr.gr.
Freek de Kruijf
|
Beta Was this translation helpful? Give feedback.
-
I found a hit suggesting changing /boot/firmware/config.txt to dtoverlay=vc4-kms-v3d
|
Beta Was this translation helpful? Give feedback.
-
With the following config.txt I got it running on a RPi 3. Left out all comment lines.
|
Beta Was this translation helpful? Give feedback.
-
This is a libcamera package/dependency problem and on my PI's it works without any modifications to the config.txt file. Simply ensure that all the packages are installed as listed here i.e.
and also make sure the rest of the system is up to date. i.e.
Making sure to repeat the above as needed multiple time as well as invoking any |
Beta Was this translation helpful? Give feedback.
This is a libcamera package/dependency problem and on my PI's it works without any modifications to the config.txt file.
Simply ensure that all the packages are installed as listed here i.e.
sudo apt-get install autoconf automake autopoint build-essential pkgconf libtool libzip-dev libjpeg-dev git libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev libwebp-dev gettext libmicrohttpd-dev libcamera-tools libcamera-dev libcamera-v4l2
and also make sure the rest of the system is up to date. i.e.
sudo apt update
sudo apt-dist-upgrade
.Making sure to repeat the above as needed multiple time as well as invoking any
remove
packages indicated by apt