我试图在我的ARM Ubuntu机器上按照本指南重新安装我的ffmpeg .不幸的是,当我编译一个使用这个lib的程序时,我得到以下失败:
/usr/bin/ld: /usr/local/lib/libavcodec.a(amrnbdec.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)
现在我想像-fPIC编译器建议的那样重新编译它,但我不知道如何.任何帮助表示赞赏.
当我尝试在64位FreeBSD中编译C应用程序时出现以下错误:
在制作共享对象时不能使用重定位R_X86_64_32S; 用-fPIC重新编译
什么是R_X86_64_32S搬迁,什么是R_X86_64_64?
我已经用Google搜索了错误,这可能是原因 - 如果有人能说出R_X86_64_32S的真正意义,那就太好了.