4

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,119
  • 5
  • 24
  • 33

1 Answers1

7

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
  • 6
  • 4
    This, BTW, is a general naming pattern for Debian packages, which is inherited by Ubuntu: packages containing primarily libraries for programmatic use rather than applications / scripts / programs for human use are named `lib*`, and packages containing files for developing with rather than using a package are named `*-dev`. So, whenever you search for the development headers of a library named `foo`, they are likely to be in `libfoo-dev`. – Jörg W Mittag Nov 17 '16 at 12:28
  • Great addition, @JörgWMittag. – trinaldi Nov 17 '16 at 12:32
  • 3
    You can also look for packages containing `avcodec.h` by executing `apt-file search avcodec.h`… – wb9688 Nov 17 '16 at 13:29