[MPlayer-users] Building MPlayer Fails

Guillaume POIRIER poirierg at gmail.com
Fri Jun 16 07:41:05 CEST 2006


Hi,

On 6/16/06, Ivan Kowalenko <ivan.kowalenko at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Jun 14, 2006, at 02.40, Guillaume POIRIER wrote:
>
> > Hi,
> >
> > On 6/14/06, Ivan Kowalenko <ivan.kowalenko at gmail.com> wrote:
> >> On Jun 14, 2006, at 00.30, Guillaume POIRIER wrote:
> >> I probably should have mentioned this earlier, but I'm attempting to
> >> use GCC 3.4.6, as opposed to the Apple provided GCC 4.0.1. Don't know
> >> if this is an issue, but it's probably worth mentioning.
> >
> > That could indeed be an issue. I don't know OSX enough to be sure, but
> > I'd say that before experienting with exotic setups, you'd be better
> > off trying with the defaults of your platform to confirm that it
> > works.
>
> Figures. I had heard that GCC 3.4 produced code that was, generally,
> better (faster, smaller) than that produced by GCC 4.0.1.

Be carefull, I meant using Apple's GCC instead of a version of GCC
which you have apparently compiled from sources.

What's more, experienced OSX users told me was that apple's gcc is
heavily patched therefore it's not reasonable to compare apple's 4.0
gcc with the one you'd get from gcc.gnu.org.
(so if gnu gcc 4.0 is worse at generating good code than 3.4, it may
not be true for apple's)


> > Once it works, your can do some experiments.
> [snip]
> >
> > No idea, besides the fact that it looks like a problem with the
> > Altivec intrinsics. Better try with Apple's GCC (which is MUCH better
> > with regards to intrinsics than FSF's gcc).
> >
> > Guillaume
>
> I'm now using Apple's GCC 4.0.1. Again, a compile error (yes, I made
> clean, and reconfigured). Another error (It's like I have the
> Dynamically Linked Libraries Of The Damned).
>
> $ make
> gcc-4.0 -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -mcpu=7450 -
> mtune=7450 -pipe -ffast-math -fomit-frame-pointer -faltivec -
> D__APPLE_ALTIVEC__ -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -
> DCONFIG_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -
> D_FILE_OFFSET_BITS=64 -I/sw/include/ -I/opt/local/include/ -I/usr/
> include/ -I/usr/local/include/ -I/Developer/SDKs/MacOSX10.4u.sdk/user/
> include/ -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers -I. -I/
> sw/include/   -I/sw/include/ -I/opt/local/include/ -I/usr/include/ -I/
> usr/local/include/ -I/Developer/SDKs/MacOSX10.4u.sdk/user/include/ -I/
> Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers  -I/opt/local/
> include/freetype2 -I/opt/local/include  -I/opt/local/include/SDL -
> D_THREAD_SAFE -I/usr/X11R6/include   -I./libavutil -I./libavcodec   -
> o mplayer mplayer.o m_property.o mp_msg.o asxparser.o codec-cfg.o
> cpudetect.o edl.o find_sub.o m_config.o m_option.o m_struct.o parser-
> cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o
> vobsub.o  unrarlib.o mixer.o parser-mpcmd.o subopt-helper.o  libvo/
> libvo.a libao2/libao2.a input/libinput.a    libmpcodecs/
> libmpcodecs.a   libaf/libaf.a libmpdemux/libmpdemux.a postproc/
> libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/
> libavcodec.a  libavformat/libavformat.a  libavutil/libavutil.a
> libpostproc/libpostproc.a  -lmad -ldv -I/sw/include  -L/sw/lib -
> ltheora -logg    -llzo -lmp3lame  -lxvidcore  -lpng -lz -lz -ljpeg   -
> lx264  -L/usr/X11R6/lib -lXext -lX11    -lspeex  -ltwolame -lfaac -L/
> opt/local/lib -lfreetype -lz -lncurses     -lgif -framework Carbon -
> framework QuickTime -framework CoreAudio -framework AudioUnit -
> framework AudioToolbox -framework Cocoa -framework QuartzCore -
> framework OpenGL   -lfontconfig   libfaad2/libfaad2.a  mp3lib/
> libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a tremor/libvorbisidec.a  -
> laa -lGL   -lXv  -lXxf86vm -lXinerama -L/usr/X11R6/lib -lXext -
> lX11    -L/opt/local/lib -lSDLmain -lSDL -framework Cocoa -framework
> OpenGL      -L/sw/lib -lcaca -lX11 -L/usr/X11R6/lib -lncurses -
> lncurses   -L/sw/lib -ldl -lartsc -lpthread -L/sw/lib -lgmodule-2.0 -
> lgthread-2.0 -lglib-2.0 -lintl -liconv -L/sw/lib -lesd -laudiofile -
> lm       -L/sw/lib/ -L/opt/local/lib/ -L/usr/lib/ -L/usr/local/lib/ -
> L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/ -L/Developer/SDKs/
> MacOSX10.4u.sdk/System/Library/ -L/Developer/SDKs/MacOSX10.4u.sdk/
> System/Library/Frameworks/    -liconv -lm
> /usr/bin/ld: warning multiple definitions of symbol _aa_render
> /sw/lib/libaa.dylib(aarender.lo) definition of _aa_render
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/
> Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics(single
> module) definition of _aa_render
> /usr/bin/ld: warning multiple definitions of symbol _glPointParameteri
> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/
> libGL.dylib(gll_api.o) definition of _glPointParameteri
> /usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of
> _glPointParameteri
> /usr/bin/ld: warning multiple definitions of symbol _glPointParameteriv
> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/
> libGL.dylib(gll_api.o) definition of _glPointParameteriv
> /usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of
> _glPointParameteriv
> /usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding
> may result in errors or different symbols being used
> /usr/bin/ld: Undefined symbols:
> ___floatditf
> ___gcc_qadd
> ___gcc_qmul
> symbol _aa_render used from dynamic library /sw/lib/libaa.dylib
> (aarender.lo) not from earlier dynamic library /System/Library/
> Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
> CoreGraphics.framework/Versions/A/CoreGraphics(single module)
> symbol _aa_render used from dynamic library /sw/lib/libaa.dylib
> (aarender.lo) not from earlier dynamic library /System/Library/
> Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
> CoreGraphics.framework/Versions/A/CoreGraphics(single module)
> symbol _DrawText used from dynamic library /System/Library/Frameworks/
> ApplicationServices.framework/Versions/A/Frameworks/QD.framework/
> Versions/A/QD(QD.o) not from earlier dynamic library /sw/lib/libgif.
> 4.dylib(gif_font.lo)
> symbol _locale_charset used from dynamic library /sw/lib/
> libiconv.dylib(localcharset.o) not from earlier dynamic library /sw/
> lib/libintl.1.dylib(localcharset.lo)
> collect2: ld returned 1 exit status
> make: *** [mplayer] Error 1

I don't know what this error means. Please make sure you have all dev
headers installed. If you have not forced any flag in configure, you
should have all the required headers, but one never knows...


> Thank you for the help. By now, I'd have given up and waited a month
> or two for a new version of MPlayer to come out on SVN.

ahem... well, if you wait till the next release, I'm afraid that by
the time next release is out, you'd be a grandpa or that you will have
died of old age. ;-)

Ok, now, seriously, if you have hit a bug in MPlayer build system
(quite possible), and other osx users are able to reproduce it, then
we will have a chance to fix it, and everybody wins!! So don't give
up!!

Guillaume

-- 
"Success consists of going from failure to failure without loss of enthusiasm."
 -- Winston Churchill



More information about the MPlayer-users mailing list