[Libav-user] ffmpeg compilation failing when trying to build shared lib
Kumar, Abhijeet
amk7371 at psu.edu
Wed Mar 24 23:31:49 EET 2021
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....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20210324/92b97480/attachment.html>
More information about the Libav-user
mailing list