Error make-ing 1.8.6: undefined reference av_log_format_line

The place to discuss linux version of MakeMKV
Post Reply
Message
Author
pjarvi
Posts: 30
Joined: Sat Nov 16, 2013 6:34 am

Error make-ing 1.8.6: undefined reference av_log_format_line

#1 Post by pjarvi » Sat Nov 16, 2013 6:41 am

I ran the codec installs and also ran an update check just to be sure. When I attempt to do "make -f makefile.linux" on makemkv-oss-1.8.6, I get the following error:

Code: Select all

/tmp/ccJEzDbV.o: In function `static_log_callback':
ffabi.c:(.text+0x38): undefined reference to `av_log_format_line'
collect2: error: ld returned 1 exit status
make: *** [out/libmakemkv.so.1.full] Error 1
Never had a problem compiling previous versions.

OS is Ubuntu 13.04 64-Bit.

Any help?

cannon_dt
Posts: 1
Joined: Fri Nov 22, 2013 6:47 pm

Re: Error make-ing 1.8.6: undefined reference av_log_format_

#2 Post by cannon_dt » Fri Nov 22, 2013 6:49 pm

Yeah, same problem for me too.

Can someone help please? I am trying this on Linux Mint Olivia


pjarvi
Posts: 30
Joined: Sat Nov 16, 2013 6:34 am

Re: Error make-ing 1.8.6: undefined reference av_log_format_

#4 Post by pjarvi » Mon Nov 25, 2013 4:52 am

Ran the new installer, did the ./configure first, upon running make I get a different error, should I run it with the -fPIC mentioned?

Code: Select all

/usr/bin/ld: /usr/local/lib/libavcodec.a(allcodecs.o): relocation R_X86_64_32 against `ff_a64multi_encoder' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [out/libmakemkv.so.1.full] Error 1

mike admin
Posts: 4075
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Error make-ing 1.8.6: undefined reference av_log_format_

#5 Post by mike admin » Wed Nov 27, 2013 10:01 am

You have to configure ffmpeg with pic, there is an option either --enable-pic or --with-pic, or something similar.

corleone88
Posts: 5
Joined: Sun Jan 05, 2014 10:25 am

Re: Error make-ing 1.8.6: undefined reference av_log_format_

#6 Post by corleone88 » Sat Jan 31, 2015 10:16 pm

Hello,

I have Opensuse 13.2 and I have the same problem when compiling the 1.9.1 version.
As mentionned, I added pic option like this in the makefile:
FFMPEG_CFLAGS=-I/usr/local/include
FFMPEG_LIBS=-L/usr/local/lib -lavcodec -ldl -lva -ljack -lasound -lm -pthread -lz -lavutil -lm -fPIC
But I still have the same error:
.../usr/local/lib/libavcodec.a: error adding symbols...
Can anyone help me, please?

corleone88
Posts: 5
Joined: Sun Jan 05, 2014 10:25 am

Re: Error make-ing 1.8.6: undefined reference av_log_format_

#7 Post by corleone88 » Sat Jan 31, 2015 11:10 pm

I found the solution: I downloaded ffmpeg sources, compile them with pic enable (./configure --enable-pic, make, sudo make install).
Then I recompiled makemkv-oss and the rest followed...
:D :D :D :D

Post Reply