小编use*_*085的帖子

如何使用-fPIC重新编译

我试图在我的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编译器建议的那样重新编译它,但我不知道如何.任何帮助表示赞赏.

c++ gcc ffmpeg compilation fpic

56
推荐指数
5
解决办法
9万
查看次数

标签 统计

c++ ×1

compilation ×1

ffmpeg ×1

fpic ×1

gcc ×1