Can’t compile motion with RTSP on Raspberry Pi

You want to compile motion with RTSP support on Raspberry Pi, but you can’t.

.configure gives you this message:

* libavcodec.a or or *
* libavformat.a or not found: *
* *
* Please read the Motion Guide for help: *
* *

Which means that  while motion will build, it will be lacking the RTSP support.

Possible reason:

Files do exist, but ./configure just doesn’t find them.


Go to /usr/lib/arm-linux-gnueabihf.

See if there exist the aforementioned files.

If they don’t you need to install extra packages:

  • apt-get install libavformat-dev libavconv-dev libjpeg-dev

If they do, manually soft-link them into /usr/lib and run ./configure again.

If that was the problem, you will see a different message:

checking for ffmpeg autodetecting libraries... found in /usr/lib
checking for ffmpeg headers in /usr... found /usr/include/libavformat/avformat.h

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s