libvpx编译

最近再用ffmpeg,进行音视频的处理。最初采用了 ffmpeg yum安装了。后面会涉及到自己动手开发。所以就把ffmpeg重头到尾编译了一次。

其中再加载ilibvpx的时候遇到了问题。

/usr/bin/ld: /usr/local/lib/libvpx.a(vpx_codec.c.o): relocation R_X86_64_32 against `.rodata.str1.1‘ can not be used when making a shared object; recompile with -fPIC

啥意思??? 需要一个sharded object..建议我重新编译libvpx.好吧。。。

 

回到libvpx目录。添加选项:

./configure --enable-pic --enable-static  --enable-shared --as=yasm --target=generic-gnu

make clean

make

make install

 完成!!!!

 

libvpx 从哪儿下载>>> https://gitee.com/caas2/libvpx.git (我已经将其同步到国内了,可以从这儿下载)

 

libvpx编译

上一篇:文件的读写


下一篇:C#中await/async闲说