Error Compiling FFMPEG
by tdmsoares from LinuxQuestions.org on (#544DK)
Trying to make my firefox recognizes some videos, I downloaded ffmpeg 4.2 from the official website. I unpack it and tried to compile. First I entered
Code:./configure --disable-static --enable-nonfree --enable-shared --enable-gpl --enable-version3 --libdir=/usr/local/lib64 --enable-lto --enable-pic -fPICThen I tried:
Code:makeIt was working untill the last lines:
Code:/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: libavcodec/mqc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
libavcodec/mqc.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
ffbuild/library.mak:102: recipe for target 'libavcodec/libavcodec.so.58' failed
make: *** [libavcodec/libavcodec.so.58] Error 1


Code:./configure --disable-static --enable-nonfree --enable-shared --enable-gpl --enable-version3 --libdir=/usr/local/lib64 --enable-lto --enable-pic -fPICThen I tried:
Code:makeIt was working untill the last lines:
Code:/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: libavcodec/mqc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
libavcodec/mqc.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
ffbuild/library.mak:102: recipe for target 'libavcodec/libavcodec.so.58' failed
make: *** [libavcodec/libavcodec.so.58] Error 1