5

I'm compiling a source code that generates following error:

checking for avcodec.h... no
checking for libavcodec/avcodec.h... no
checking for ffmpeg/avcodec.h... no
checking for libav/avcodec.h... no
checking for ffmpeg/libavcodec/avcodec.h... no
checking for libav/libavcodec/avcodec.h... no
configure: error: avcodec headers not found! Install FFmpeg or Libav.

Installing ffmpeg package didn't help me. Which package should be installed?

SuB
  • 4,419

1 Answers1

8

As you can see here on packages.ubuntu.com, avcodec.h is in the libavcodec-dev package. Use following command to install it:

sudo apt-get install libavcodec-dev
Carrosive
  • 147