当前位置: 首页 > 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

本文固定链接: http://2hei.net/liba52_compile_in_amd64.html | 2hei's site

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

报歉!评论已关闭.