【发布时间】:2012-11-28 12:42:31
【问题描述】:
我试图在我的 ARM Ubuntu 机器上按照guide 重新安装我的 ffmpeg。不幸的是,当我编译一个使用这个库的程序时,我得到了以下失败:
/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
现在我想用-fPIC 重新编译它,就像编译器建议的那样,但我不知道怎么做。任何帮助表示赞赏。
【问题讨论】:
标签: c++ gcc compilation ffmpeg fpic