分页: 1 / 1

加了参数 --enable-static 后,编译mplayer出错

发表于 : 2007-06-26 21:10
IamLarry
libmpcodecs/libmpcodecs.a(ad_realaud.o): In function `preinit':
ad_realaud.c:(.text+0x3b2): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
stream/stream.a(network.o): In function `check4proxies':
network.c:(.text+0x193): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
stream/stream.a(tcp.o): In function `connect2Server_with_af':
tcp.c:(.text+0xd4): warning: Using 'gethostbyname2' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/libaudio.a(ConnSvr.o): In function `GetAuthorization':
/build/buildd/nas-1.8/lib/audio/ConnSvr.c:1990: undefined reference to `XauDisposeAuth'
/build/buildd/nas-1.8/lib/audio/ConnSvr.c:1841: undefined reference to `XauGetBestAuthByAddr'
collect2: ld returned 1 exit status
make: *** [mplayer] 错误 1

有兄弟碰到这个问题吗?怎么解决阿,在网上也没有找到什么信息。
仅有的一些信息也好像是我说因为系统有了问题了。

Re: 加了参数 --enable-static 后,编译mplayer出错

发表于 : 2009-08-20 15:33
vcvc
那是因为libaudio.a中的XauDisposeAuth等函数是在X11其中一个动态库文件libXau.a提供的,mplayer的makefile文件中没有给出。
可以修改config.mak中的LIBS相关选项,添加-lXau就可以了。

Re: 加了参数 --enable-static 后,编译mplayer出错

发表于 : 2009-08-20 15:46
wangdu2002
楼上的头贴技术含量较高啊,虽然我比你多了几千贴,不过水平差远了。 :em11