[MPlayer-dev-eng] Compiling under OS X

Marc Jaeckle mplayer at openmac.de
Sun Jul 27 23:31:24 CEST 2003


I've been trying to compile MPlayer under OS X for last two weeks and  
the only way to actually succeed is taking the source provided by the  
fink team and change the configure settings as needed. The problem is  
that the fink team only offers version 0.90 which doesn't really work  
with the the Live.com libraries :-(.

Can anyone post the versions or cvs snapshot dates of the libraries and  
configure options needed to compile under OS X? (--disable-qtx or  
--disable-macosx alone doesn't work). Currently I have the following  
libraries installed (mostly via fink):
aalib    1.4rc5-2
freetype2    2.1.3-1
libavcodec current cvs snapshot
giflib    4.1.0-7
lame    3.93.1-1
libdv4    0.99-2
libdvdcss    1.2.1-1
libdvdread4    0.9.4-2
libfame1    0.9.0-2
libjpeg    6b-6
libmad    0.15.0b-1
libogg    1.0.0-1
libpng3    1.2.5-4
libvorbis0    1.0-1
mpeg2dec    0.3.1-2
mpg123    pre0.59s-8
sdl    1.2.5-1
xmms    1.2.7-3
xvidcore    0.9.1-1

I also attached some more information on my system and the last  
configure options I tried out together with the corresponding make  
failure.

Gruß
Marc

--
Operating System:
     OS X 10.2.6

kernel version:
     Darwin bob22.local. 6.6 Darwin Kernel Version 6.6: Thu May  1  
21:48:54 PDT 2003;
     root:xnu/xnu-344.34.obj~1/RELEASE_PPC  Power Macintosh powerpc

libc-version:
     lrwxr-xr-x    1 root     wheel          15 Jul 15 22:59  
/usr/lib/libc.dylib -> libSystem.dylib

X version:
     XFree86 Version 4.3.0 / X Window System
     (protocol Version 11, revision 0, vendor release 6600)
     Release Date: 27 February 2003
             If the server is older than 6-12 months, or if your  
hardware is
             newer than the above date, look for a newer version before
             reporting problems.  (See http://www.XFree86.Org/FAQ)
     Operating System: Darwin Apple Computer, Inc.

gcc version:
     Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
     Thread model: posix
     Apple Computer, Inc. GCC version 1175, based on gcc version 3.1  
20020420 (prerelease)

ld version:
     ld: unknown flag: -v

binutils version:
     Apple Computer, Inc. version cctools-446.1.obj~1, GNU assembler  
version 1.38

Last configure options:
./configure --enable-altivec --disable-x11 --disable-aa  
--with-sdl-config=/sw/bin/sdl-config --disable-menu  
--with-extraincdir=/sw/include --with-extralibdir=/sw/lib  
--disable-divx4linux --enable-live  
--with-livelibdir=/Users/mrrivers/Documents/DIPLOMARBEIT/developer/ 
Projects/live-2003-07-07 --enable-macosx --disable-png  
--with-freetype-config=/sw/bin/freetype-config --enable-freetype   
--enable-largefiles --disable-gif --disable-jpeg --disable-qtx

Last compilation failed with;
gcc -O4   -pipe -ffast-math -fomit-frame-pointer -no-cpp-precomp  
-DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
-Ilibmpdemux -Iloader -Ilibvo -I/sw/include/freetype2 -I/sw/include  
-I/sw/include   -I/sw/include/SDL -D_THREAD_SAFE    -faltivec -o  
mplayer mplayer.o mp_msg.o cpudetect.o codec-cfg.o cfgparser.o  
my_profile.o spudec.o playtree.o playtreeparser.o asxparser.o vobsub.o  
subreader.o sub_cc.o find_sub.o m_config.o m_option.o parser-cfg.o  
m_struct.o unrarlib.o mixer.o parser-mpcmd.o libvo/libvo.a  
libao2/libao2.a    libmpcodecs/libmpcodecs.a mp3lib/libMP3.a  
liba52/liba52.a libmpeg2/libmpeg2.a   libaf/libaf.a  
libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a  
osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a   
-lmad -lvorbis -logg -ldv     -lxvidcore  -lz      -L/sw/lib -lfreetype  
-ltermcap   
/Users/mrrivers/Documents/DIPLOMARBEIT/developer/Projects/live-2003-07- 
07/liveMedia/libliveMedia.a  
/Users/mrrivers/Documents/DIPLOMARBEIT/developer/Projects/live-2003-07- 
07/groupsock/libgroupsock.a  
/Users/mrrivers/Documents/DIPLOMARBEIT/developer/Projects/live-2003-07- 
07/UsageEnvironment/libUsageEnvironment.a  
/Users/mrrivers/Documents/DIPLOMARBEIT/developer/Projects/live-2003-07- 
07/BasicUsageEnvironment/libBasicUsageEnvironment.a -lstdc++    
-framework Carbon -framework QuickTime -framework CoreAudio     -lmad   
-L/sw/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL        
-L/sw/lib -ldl -lartsc -lpthread -Xlinker -framework -Xlinker CoreAudio  
-L/sw/lib -lesd -laudiofile -lm   -L/sw/lib    -ldl  -liconv -lintl -lm
ld: warning multiple definitions of symbol _locale_charset
/sw/lib/libiconv.dylib(localcharset.lo) definition of _locale_charset
/sw/lib/libintl.dylib(localcharset.lo) definition of _locale_charset
ld: warning dynamic shared library:  
/System/Library/Frameworks/OpenGL.framework/OpenGL not made a weak  
library in output with MACOSX_DEPLOYMENT_TARGET environment variable  
set to: 10.1
ld: warning dynamic shared library: /sw/lib/libdl.dylib not made a weak  
library in output with MACOSX_DEPLOYMENT_TARGET environment variable  
set to: 10.1
gcc -c -O4   -pipe -ffast-math -fomit-frame-pointer -no-cpp-precomp  
-DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
-Ilibmpdemux -Iloader -Ilibvo -I/sw/include/freetype2 -I/sw/include  
-I/sw/include   -I/sw/include/SDL -D_THREAD_SAFE    -faltivec -o  
mencoder.o mencoder.c
mencoder.c: In function `main':
mencoder.c:419: warning: passing arg 2 of `m_config_register_options'  
from incompatible pointer type
gcc -c -O4   -pipe -ffast-math -fomit-frame-pointer -no-cpp-precomp  
-DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
-Ilibmpdemux -Iloader -Ilibvo -I/sw/include/freetype2 -I/sw/include  
-I/sw/include   -I/sw/include/SDL -D_THREAD_SAFE    -faltivec -o  
mp_msg-mencoder.o mp_msg-mencoder.c
gcc -c -O4   -pipe -ffast-math -fomit-frame-pointer -no-cpp-precomp  
-DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
-Ilibmpdemux -Iloader -Ilibvo -I/sw/include/freetype2 -I/sw/include  
-I/sw/include   -I/sw/include/SDL -D_THREAD_SAFE    -faltivec -o  
divx4_vbr.o divx4_vbr.c
gcc -c -O4   -pipe -ffast-math -fomit-frame-pointer -no-cpp-precomp  
-DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
-Ilibmpdemux -Iloader -Ilibvo -I/sw/include/freetype2 -I/sw/include  
-I/sw/include   -I/sw/include/SDL -D_THREAD_SAFE    -faltivec -o  
xvid_vbr.o xvid_vbr.c
gcc -c -O4   -pipe -ffast-math -fomit-frame-pointer -no-cpp-precomp  
-DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
-Ilibmpdemux -Iloader -Ilibvo -I/sw/include/freetype2 -I/sw/include  
-I/sw/include   -I/sw/include/SDL -D_THREAD_SAFE    -faltivec -o  
parser-mecmd.o parser-mecmd.c
./darwinfixlib.sh mencoder.o mp_msg-mencoder.o cpudetect.o codec-cfg.o  
cfgparser.o my_profile.o spudec.o playtree.o playtreeparser.o  
asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o m_config.o  
m_option.o parser-cfg.o m_struct.o unrarlib.o libao2/afmt.o divx4_vbr.o  
libvo/aclib.o libvo/osd.o libvo/sub.o libvo/font_load.o  
libvo/font_load_ft.o xvid_vbr.o parser-mecmd.o     
libavcodec/libavcodec.a libmpdemux/libmpdemux.a  
libmpcodecs/libmpcodecs.a libao2/libao2.a liba52/liba52.a  
mp3lib/libMP3.a libmpeg2/libmpeg2.a osdep/libosdep.a  
postproc/libswscale.a input/libinput.a libvo/libvo.a libaf/libaf.a  
libmpdvdkit2/libmpdvdkit.a libmpcodecs/libmpencoders.a
Fixing libs with ranlib for Darwin (MacOSX)
ranlib libavcodec/libavcodec.a
ranlib libmpdemux/libmpdemux.a
ranlib libmpcodecs/libmpcodecs.a
ranlib libao2/libao2.a
ranlib liba52/liba52.a
ranlib mp3lib/libMP3.a
ranlib libmpeg2/libmpeg2.a
ranlib osdep/libosdep.a
ranlib postproc/libswscale.a
ranlib input/libinput.a
ranlib libvo/libvo.a
ranlib libaf/libaf.a
ranlib libmpdvdkit2/libmpdvdkit.a
ranlib libmpcodecs/libmpencoders.a
gcc -O4   -pipe -ffast-math -fomit-frame-pointer -no-cpp-precomp  
-DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
-Ilibmpdemux -Iloader -Ilibvo -I/sw/include/freetype2 -I/sw/include  
-I/sw/include   -I/sw/include/SDL -D_THREAD_SAFE    -faltivec -o  
mencoder mencoder.o mp_msg-mencoder.o cpudetect.o codec-cfg.o  
cfgparser.o my_profile.o spudec.o playtree.o playtreeparser.o  
asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o m_config.o  
m_option.o parser-cfg.o m_struct.o unrarlib.o libao2/afmt.o divx4_vbr.o  
libvo/aclib.o libvo/osd.o libvo/sub.o libvo/font_load.o  
libvo/font_load_ft.o xvid_vbr.o parser-mecmd.o  
libmpcodecs/libmpencoders.a -lmp3lame -lvorbis -logg  
libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a  
libmpeg2/libmpeg2.a   libaf/libaf.a libmpdemux/libmpdemux.a  
input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2  
-lmpdvdkit libavcodec/libavcodec.a  -lmad -lvorbis -logg -ldv      
-lxvidcore  -lz      -L/sw/lib -lfreetype -ltermcap   
/Users/mrrivers/Documents/DIPLOMARBEIT/developer/Projects/live-2003-07- 
07/liveMedia/libliveMedia.a  
/Users/mrrivers/Documents/DIPLOMARBEIT/developer/Projects/live-2003-07- 
07/groupsock/libgroupsock.a  
/Users/mrrivers/Documents/DIPLOMARBEIT/developer/Projects/live-2003-07- 
07/UsageEnvironment/libUsageEnvironment.a  
/Users/mrrivers/Documents/DIPLOMARBEIT/developer/Projects/live-2003-07- 
07/BasicUsageEnvironment/libBasicUsageEnvironment.a -lstdc++    
-framework Carbon -framework QuickTime -framework CoreAudio   -L/sw/lib  
    -ldl  -liconv -lintl -lm
ld: warning multiple definitions of symbol _locale_charset
/sw/lib/libiconv.dylib(localcharset.lo) definition of _locale_charset
/sw/lib/libintl.dylib(localcharset.lo) definition of _locale_charset



More information about the MPlayer-dev-eng mailing list