Page 1 of 1

Error make-ing 1.8.6: undefined reference av_log_format_line

Posted: Sat Nov 16, 2013 6:41 am
by pjarvi
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?

Re: Error make-ing 1.8.6: undefined reference av_log_format_

Posted: Fri Nov 22, 2013 6:49 pm
by cannon_dt
Yeah, same problem for me too.

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

Re: Error make-ing 1.8.6: undefined reference av_log_format_

Posted: Fri Nov 22, 2013 7:11 pm
by belegdol

Re: Error make-ing 1.8.6: undefined reference av_log_format_

Posted: Mon Nov 25, 2013 4:52 am
by pjarvi
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

Re: Error make-ing 1.8.6: undefined reference av_log_format_

Posted: Wed Nov 27, 2013 10:01 am
by mike admin
You have to configure ffmpeg with pic, there is an option either --enable-pic or --with-pic, or something similar.

Re: Error make-ing 1.8.6: undefined reference av_log_format_

Posted: Sat Jan 31, 2015 10:16 pm
by corleone88
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?

Re: Error make-ing 1.8.6: undefined reference av_log_format_

Posted: Sat Jan 31, 2015 11:10 pm
by corleone88
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