linux vlc编译问题汇总

1.编译liba52时遇到下面错误

/usr/bin/ld: imdct.lo: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC

imdct.lo: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [liba52.la] 错误 1
make[1]: 离开目录“/home/mice/下载/a52dec-0.7.4/liba52”

make: *** [all-recursive] 错误 1

方法参考http://www.cnblogs.com/mashuaimama/archive/2012/04/11/2442594.html

配置的时候加上 --disable-shared --with-pic 就没错误了

./configure --disable-shared --with-pic 

虽然说错误没了,但是vlc在make的时候仍然有个相似的错误.

你可能感兴趣的:(编译问题)