liba52在AMD64位机器下的编译问题
作者: 2hei 发表于2008年9月18日 00:43 版权声明: 可以转载, 转载时务必以超链形式标明文章原始出处和作者信息及版权声明
http://www.2hei.net/mt/2008/09/liba52-compile-in-amd64.html
http://liba52.sourceforge.net/
http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
liba52 is a free library for decoding ATSC A/52 streams. It is released under the terms of the GPL license.
The A/52 standard is used in a variety of applications, including digital television and DVD. It is also known as AC-3.
./configure
make
/usr/bin/ld: .libs/imdct.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
.libs/imdct.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [liba52.la] Error 1
make[1]: Leaving directory `/home/buynintw/src/a52dec-0.7.4/liba52'
make: *** [install-recursive] Error 1
This trouble me for a week!!!
Finally I resolve it!
Just do below:
./configure --prefix=/usr --enable-shared 'CFLAGS=-fPIC'
make && make install
http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
liba52 is a free library for decoding ATSC A/52 streams. It is released under the terms of the GPL license.
The A/52 standard is used in a variety of applications, including digital television and DVD. It is also known as AC-3.
./configure
make
/usr/bin/ld: .libs/imdct.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
.libs/imdct.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [liba52.la] Error 1
make[1]: Leaving directory `/home/buynintw/src/a52dec-0.7.4/liba52'
make: *** [install-recursive] Error 1
This trouble me for a week!!!
Finally I resolve it!
Just do below:
./configure --prefix=/usr --enable-shared 'CFLAGS=-fPIC'
make && make install





发表一个评论