libavcodec/mqc.o: relocation r_x86_64_32 against `.rodata‘ can not be used when making a shared obje

ffmpeg4.2 在ubuntu16.04下编译安装动态库出现错误: libavcodec/mqc.o: relocation r_x86_64_32 against `.rodata' can not be used when making a shared obje

解决方法:在配置的时候添加CFLAGS="-O3 -fPIC" ,如下命令:

CFLAGS="-O3 -fPIC" ./configure   --enable-shared  --prefix=/usr/

在 make && make install

猜你喜欢

转载自blog.csdn.net/hyl999/article/details/107889364