1

I have a camera module connected to my raspberry pi and have followed these instructions to make it work for a stream:

Installation guide

I type this command to test it:

./motion -n -c motion-mmalcam.conf

But I get this error :

./motion: error while loading shared libraries: libavformat.so.53: cannot open shared object file: No such file or directory

And yes I have installed libjpeg62. The package for libavformat53 doesn't even exist. There seems to be no resolution to this problem.

EDIT: output for ldd motion Shows:

libpq.so.5 => not found

libavformat.so.53 => not found

libavcodec.so.53 => not found

libavtil.so.51 => not found

migrated from stackoverflow.com Mar 24 '16 at 14:36

This question came from our site for professional and enthusiast programmers.

2

Try install this package:

sudo apt-get install libavformat-dev

More details about your problem you can find at: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=123397

  • Tried it but didn't work. – DorianT Mar 24 '16 at 16:09
0

Using apt-cache search XXXX, you can find which package the dependencies are included in.

For example:

apt-cache search libavformat
-1

I had the same problem, and i used the command bellow:

sudo apt-get install libpq-dev

Tell us what you've got!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.