DARKMOONlite / ros-image-stream-encoder

a simple ros1 package that allows you to convert an image stream to an mp4 file using ffmpeg
1 stars 0 forks source link

Symbol Relocation, binded externally #1

Closed DARKMOONlite closed 1 month ago

DARKMOONlite commented 1 month ago

This common FFMPEG error msg,

usr/bin/ld: /usr/local/lib/libavutil.a(tx_float_neon.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `ff_tx_tab_2048_float' which may bind externally can not be used when making a shared object; recompile with -fPIC
DARKMOONlite commented 1 month ago

this is an error due to incorrect compiler optimisations that cause some FFMpeg packages to not find the correct Symbols, this can be fixed by disabling compiler optimisations.

Add this to the configuration to resolve.

--disable-asm

Another Solution would be to rebuild the libraries as shared/dynamic libraries instead, however this may run into issues down the line with other packages expecting them to be static.