当前位置: 首页 > OpenSource > 正文

liba52在AMD64位机器下的编译问题

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

本文固定链接: https://www.2hei.net/2008/09/18/liba52_compile_in_amd64/ | 2hei.net

该日志由 u2 于2008年09月18日发表在 OpenSource 分类下,
原创文章转载请注明: liba52在AMD64位机器下的编译问题 | 2hei.net
关键字:

报歉!评论已关闭.