apohl79 / audiogridder

DSP servers using general purpose computers and networks
https://audiogridder.com
MIT License
738 stars 77 forks source link

Provide libav libs on Linux compiled with -fPIC enabled #1235

Closed kcoul closed 1 year ago

kcoul commented 1 year ago

To resolve this linker error:

/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libavcodec.a(lpc.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value

See: https://stackoverflow.com/questions/13812185/how-to-recompile-with-fpic

apohl79 commented 1 year ago

When linking statically, you should link against the libs provided in this repo: https://github.com/apohl79/audiogridder-deps

If you still want to link against the system wide shared ffmpeg libs, try setting the AG_ENABLE_DYNAMIC_LINKING cmake option.