Error when compiling plugin with ffmpeg
Added by Jeronimo 17 over 2 years ago
Leaving directory wavpack.
Entering directory ffaudio.
Successfully compiled ffaudio-core.cc (plugin).
Successfully compiled ffaudio-io.cc (plugin).
/usr/bin/ld: /usr/local/lib/libavcodec.a(vc1dsp_mmx.o): relocation R_X86_64_PC32 against symbol `ff_pw_9' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: falló el enlace final: bad value
collect2: error: ld returned 1 exit status
Failed to link ffaudio.so!
make[5]: *** [../../buildsys.mk:228: ffaudio.so] Error 1
make[4]: *** [../../buildsys.mk:134: all] Error 2
make[3]: *** [../buildsys.mk:144: ffaudio] Error 2
make[2]: *** [../buildsys.mk:132: all] Error 2
make[1]: *** [buildsys.mk:144: src] Error 2
make: *** [buildsys.mk:132: all] Error 2
ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration: --enable-gpl --enable-openssl --enable-libaom --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
Linux Mint 20.3
Replies (1)
RE: Error when compiling plugin with ffmpeg - Added by John Lindgren over 2 years ago
It looks like you're trying to link to a static build of FFmpeg that's installed under /usr/local
.
Try uninstalling that version and using the version of FFmpeg provided by Ubuntu instead.