[Libav-user] ffmpeg compilation failing when trying to build shared lib

David Rappo davidr at lens-immersive.com
Wed Mar 24 23:48:02 EET 2021


Not sure if it will make a difference but you could try adding
--disable-static.

On Thu, Mar 25, 2021 at 8:32 AM Kumar, Abhijeet <amk7371 at psu.edu> wrote:

> hi, i'm trying to build as a dynamic library but compilation fails can you
> help??
>
> [amk7371 at e5-cse-204-02 FFmpeg]$ ./configure
> --prefix=/home/mdl/amk7371/video_analytics/FFmpeg_x64 --enable-shared
> --disable-x86asm --enable-gpl --enable-pic
>
>      ^
> GEN libavdevice/libavdevice.ver
> GEN libavfilter/libavfilter.ver
> AR libavdevice/libavdevice.a
> GEN libswscale/libswscale.ver
> GEN libavutil/libavutil.ver
> GEN libpostproc/libpostproc.ver
> GEN libavformat/libavformat.ver
> GEN libavcodec/libavcodec.ver
> GEN libswresample/libswresample.ver
> AR libswresample/libswresample.a
> MAN doc/ffprobe-all.1
> AR libavcodec/libavcodec.a
> LD libavutil/libavutil.so.56
> LD libswscale/libswscale.so.5
> LD libpostproc/libpostproc.so.55
> LD libswresample/libswresample.so.3
> LD libavcodec/libavcodec.so.58
> /usr/bin/ld: libavcodec/mqc.o: relocation R_X86_64_32 against `.rodata'
> can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: libavcodec/mqcdec.o: relocation R_X86_64_32S against
> undefined symbol `ff_mqc_qe' can not be used when making a shared object;
> recompile with -fPIC
> /usr/bin/ld: libavcodec/svq13.o: relocation R_X86_64_32S against `.rodata'
> can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: error: ld returned 1 exit status
> make: *** [libavcodec/libavcodec.so.58] Error 1
> make: *** Waiting for unfinished jobs....
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20210325/96a46593/attachment.html>


More information about the Libav-user mailing list