CentOS 7 LIBAVCODEC_VERSION_MAJOR is not known

The place to discuss linux version of MakeMKV
Post Reply
boogy886
Posts: 17
Joined: Mon Mar 23, 2015 10:06 pm

CentOS 7 LIBAVCODEC_VERSION_MAJOR is not known

Post by boogy886 » Wed Sep 23, 2015 12:47 pm

I cannot find a solution to this problem on my CentOS 7 install. I can proceed with the make and then sudo make install, but upon launching MakeMKV, I get an error "Application Failed to Initialize"

Any ideas for a solution?

PKG_CONFIG_PATH=/tmp/ffmpeg/lib/pkgconfig ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for -objcopy... no
checking for objcopy... objcopy
checking for -ld... no
checking for ld... ld
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compress2 in -lz... yes
checking openssl/opensslconf.h usability... yes
checking openssl/opensslconf.h presence... yes
checking for openssl/opensslconf.h... yes
checking for AES_encrypt in -lcrypto... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ParserCreate in -lexpat... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ffmpeg... yes
checking whether LIBAVCODEC_VERSION_MAJOR is declared... yes
checking LIBAVCODEC_VERSION_MAJOR... failed
configure: error: in `/home/bher/Downloads/makemkv-oss-1.9.5':
configure: error: LIBAVCODEC_VERSION_MAJOR is not known at compile time in libavcodec.h
See `config.log' for more details


Thanks!

simpz
Posts: 3
Joined: Wed Sep 23, 2015 8:17 pm

Re: CentOS 7 LIBAVCODEC_VERSION_MAJOR is not known

Post by simpz » Wed Sep 23, 2015 8:36 pm

I just way building makemkv today on Centos 7. I saw this error when I was using fdk-aac with ffmpeg. The ffmpeg test doesn't find the fdk-aac library, when it's shared (and probably can't use it if it could). The only way to tell if you have the same error as me is digging through config.log

I cleaned all my trees (totally deleted), ffmpeg seems very keen to try and used the shared lib version of fdk-aac, so there needs to be no trace of it.

How I got this to work, if you have the same error as me.

Code: Select all

cd /home/simpz/Download

mkdir makemkvbuild

cd makemkvbuild 

Untarring an ffmpeg source from:
http://ffmpeg.org/download.html

Sources came out at ffmpeg-2.8 under /home/simpz/Download/makemkvbuild

mkdir ffmpeg

FDK-AAC
=======
Downloaded from https://github.com/mstorsjo/fdk-aac/tarball/master

wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master

tar xvf fdk-aac-0.1.0.tar.gz 

cd fdk-aac-0.1.0/
autoreconf -fiv

./configure --prefix=/home/simpz/Download/makemkvbuild/ffmpeg --disable-shared --with-pic

make
make install

FFMPEG
======
cd ../ffmpeg-2.8

PKG_CONFIG_PATH=/home/simpz/Download/makemkvbuild/ffmpeg/lib/pkgconfig ./configure --pkg-config-flags="--static" --prefix=/home/simpz/Download/makemkvbuild/ffmpeg --enable-static --disable-shared --enable-pic --disable-yasm --enable-libfdk-aac

make
make install

My configure line for makemkv-oss compile was then just (I wanted it all to end up in /usr/local):

PKG_CONFIG_PATH=/home/simpz/Download/makemkvbuild/ffmpeg/lib/pkgconfig ./configure --prefix=/usr/local


Hope this helps you in some way

boogy886
Posts: 17
Joined: Mon Mar 23, 2015 10:06 pm

Re: CentOS 7 LIBAVCODEC_VERSION_MAJOR is not known

Post by boogy886 » Tue Oct 06, 2015 9:08 pm

Bingo, worked like a charm! Thanks!
simpz wrote:I just way building makemkv today on Centos 7. I saw this error when I was using fdk-aac with ffmpeg. The ffmpeg test doesn't find the fdk-aac library, when it's shared (and probably can't use it if it could). The only way to tell if you have the same error as me is digging through config.log

I cleaned all my trees (totally deleted), ffmpeg seems very keen to try and used the shared lib version of fdk-aac, so there needs to be no trace of it.

How I got this to work, if you have the same error as me.

Code: Select all

cd /home/simpz/Download

mkdir makemkvbuild

cd makemkvbuild 

Untarring an ffmpeg source from:
http://ffmpeg.org/download.html

Sources came out at ffmpeg-2.8 under /home/simpz/Download/makemkvbuild

mkdir ffmpeg

FDK-AAC
=======
Downloaded from https://github.com/mstorsjo/fdk-aac/tarball/master

wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master

tar xvf fdk-aac-0.1.0.tar.gz 

cd fdk-aac-0.1.0/
autoreconf -fiv

./configure --prefix=/home/simpz/Download/makemkvbuild/ffmpeg --disable-shared --with-pic

make
make install

FFMPEG
======
cd ../ffmpeg-2.8

PKG_CONFIG_PATH=/home/simpz/Download/makemkvbuild/ffmpeg/lib/pkgconfig ./configure --pkg-config-flags="--static" --prefix=/home/simpz/Download/makemkvbuild/ffmpeg --enable-static --disable-shared --enable-pic --disable-yasm --enable-libfdk-aac

make
make install

My configure line for makemkv-oss compile was then just (I wanted it all to end up in /usr/local):

PKG_CONFIG_PATH=/home/simpz/Download/makemkvbuild/ffmpeg/lib/pkgconfig ./configure --prefix=/usr/local


Hope this helps you in some way

Post Reply