[MPlayer-users] Is there anyway I can compile mplayer with configuration option "--enable-gui" and "--enable-static"

叶远清 yeyuanqing at ict.ac.cn
Tue Sep 4 15:25:24 CEST 2007


Interesting, when I compile mplayer with these two options on RHEL AS4, everything is OK, I don'e
even have to add -lXau and -lXdmcp lib.
but on Debian OS, compile failed, here is the log:

X11 -lXau -lXdmcp  -lpthread  -L/usr/lib -lSDL       vidix/libvidix.a -L/usr/lib -ldl -lartsc
-lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0 -L/usr/lib -lesd -laudiofile -lm
-laudio -lXt  -lXext -lX11 -lXau -lXdmcp  -lpthread    -static
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
/usr/lib/libSDL.a(SDL_x11dyn.o): In function `XAllocColor':
(.text+0x10): multiple definition of `XAllocColor'
/usr/lib/libX11.a(GetHColor.o):/build/buildd/libx11-1.1.1/obj-i486-linux-gnu/src/../../src/GetHColor
.c:38: first defined here
/usr/bin/ld: Warning: size of symbol `XAllocColor' changed from 221 in
/usr/lib/libX11.a(GetHColor.o) to 12 in /usr/lib/libSDL.a(SDL_x11dyn.o)
/usr/lib/libSDL.a(SDL_x11dyn.o): In function `XChangeProperty':
(.text+0x50): multiple definition of `XChangeProperty'
/usr/lib/libX11.a(ChProp.o):/build/buildd/libx11-1.1.1/obj-i486-linux-gnu/src/../../src/ChProp.c:44:
first defined here
/usr/bin/ld: Warning: size of symbol `XChangeProperty' changed from 977 in /usr/lib/libX11.a(ChProp.
o) to 12 in /usr/lib/libSDL.a(SDL_x11dyn.o)

>Hello,
>On Tue, Sep 04, 2007 at 05:11:18PM +0800, ??? wrote:
>> I have tried to ./configure mplayer with option --enable-gui and 
>> --enable-static, but always failed to, even I have install all the 
>> packages needed. I have done apt-get build-dep mplayer on my debian PC.
>> 
>> I can't handle this, help..., thanks.
>> The following is the brief one:
[...]
>> cc -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math 
>> -fomit-frame-pointer  -I/usr/include -static  -o 
>> /tmp/mplayer-conf-23168-20593.o /tmp/mplayer-con f-2510-20593.c 
>> -lXext
>> -lX11 -lpthread

>you must add -lXau -lXdmcp for static linking these days...

Greetings,
Reimar D?ffinger




More information about the MPlayer-users mailing list