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 libavcodec.so or *
* libavformat.a or libavformat.so not found: *
* ALL FFMPEG FEATURES DISABLED *
* *
* Please read the Motion Guide for help: *
* http://motion.sourceforge.net *
**********************************************

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.

Solution:

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
Advertisements


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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