1. 静态库没有fPIC编译, 只要在configure时加上--enable-shared即可, 即: ./configure --enable-shared
2. 版本号问题, 参考 gcc linker error: version node not found for symbol
/usr/bin/ld: libgetfea.so: @LIBAVCODEC_55
/usr/bin/ld: failed to set dynamic section sizes: Bad value
解决: ./configure --disable-symver
3. libavcodec.a: relocation R_X86_64_PC32 against symbol `ff_pw_9' can not be used when making a shared object; recompile with -fPIC, 参考problem compiling statically to make a shared lib
在编译自己程序时, 链接过程中加入 Wl,-Bsymbolic
4. undefined reference to 'av_open_input_file',由于版本问题新版本的API接口已换, 具体例子参考: ffmpeg 解码视频小例子