Compile MPlayer Libraries¶
General¶
Here's a rundown on the libraries included with the MPlayer build in MPlayerOSX Extended.
If nothing is noted, then the library compiles fine with the flags and variables set in the Compile MPlayer with static libraries guide:
# Set path and clear pkgconfig export MPPATH="/Users/demo/change/this" export PKG_CONFIG_PATH="" export PATH="$MPPATH:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin" # Set SDK paths export MACOSX_DEPLOYMENT_TARGET=10.4 export CFLAGS="-mmacosx-version-min=10.4 -isystem /Developer/SDKs/MacOSX10.4u.sdk" export LDFLAGS="-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" export CXXFLAGS="-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" # Choose one depending on what you want to compile for: # UNIVERSAL export CFLAGS="$CFLAGS -arch i386 -arch ppc" export LDFLAGS="$LDFLAGS -arch i386 -arch ppc" export CXXFLAGS="$CXXFLAGS -arch i386 -arch ppc" # INTEL (nothing needed) # PPC export CFLAGS="$CFLAGS -arch ppc -faltivec -mcpu=7450" export LDFLAGS="$LDFLAGS -arch ppc" export CXXFLAGS="$CXXFLAGS -arch ppc -faltivec -mcpu=7450" # Paths of the build environment export LDFLAGS="$LDFLAGS -L$MPPATH/usr/local/lib -Wl,-search_paths_first" export CFLAGS="$CFLAGS -I$MPPATH/usr/local/include" export CXXFLAGS="$CXXFLAGS -I$MPPATH/usr/local/include"
And the usual configure call:
./configure --disable-shared --disable-dependency-tracking --path=$MPPATH
ZLIB (1.2.3)¶
UB
Compiles with a straight:
./configure
EXPAT (2.0.1)¶
UB
No _--disable-dependency-tracking_ but compiles fine.
FREETYPE (2.3.7)¶
UB
No _--disable-dependency-tracking_ but compiles fine.
ICONV (1.12)¶
http://www.gnu.org/software/libiconv/
UB
FONTCONFIG (2.6.0)¶
UB
NCURSES (5.6 +patches)¶
http://www.gnu.org/software/ncurses/
UB
The most current version with the patches from:
ftp://invisible-island.net/ncurses/5.6/
Configure needs patching for the [[CompileMPlayerStatic#The_XOPEN_SOURCEissue|_XOPEN_SOURCE issue] [attachmentconfigure_XOPEN_SOURCE_darwinpatch]]
Then compile with:
./configure --without-shared make libs make install.libs
LZO2 (2.03)¶
http://www.oberhumer.com/opensource/lzo/
INTEL & PPC SEPARATE
Configure for PPC:
./configure --disable-shared --disable-dependency-tracking --disable-asm
LIBOGG (SVN:r15377)¶
UB
1.1.3 doesn't compile. SVN does.
LIBVORBIS (1.2.0)¶
UB
LIBTHEORA (1.0beta3)¶
INTEL & PPC SEPARATE
Configure for PPC:
./configure --disable-shared --disable-dependency-tracking --disable-asm
LIBMAD (0.15.1b)¶
http://www.underbit.com/products/mad/
INTEL & PPC SEPARATE
FAAD2 (2.6)¶
http://www.audiocoding.com/faad2.html
UB
LIBDV (1.0.0)¶
UB
Needs additional flags and options:
export LDFLAGS="$LDFLAGS -flat_namespace -undefined suppress" ./configure --disable-shared --disable-xv --disable-gtk --disable-sdl --disable-asm --disable-dependency-tracking
JPEG (6b)¶
UB
Needs the patches from MacPorts: http://trac.macports.org/browser/trunk/dports/graphics/jpeg/files
Only compiles with shared libraries enabled. Remove them after install!
./configure --enable-static --enable-shared
LIBPNG (1.2.32)¶
http://www.libpng.org/pub/png/libpng.html
UB
GIFLIB (4.1.6)¶
http://sourceforge.net/projects/giflib/
UB
LIBDVDCSS (1.2.9)¶
http://www.videolan.org/developers/libdvdcss.html
UB
LIBDVDREAD (SVN:r1153)¶
http://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/
UB
To enable DeCSS, add following line to config.h after configure:
#define HAVE_DVDCSS_DVDCSS_H 1
LIBDVDNAV (SVN:r1153)¶
http://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/
UB
LDFLAGS for libdvdcss:
export LDFLAGS="$LDFLAGS -ldvdcss"
LIBDCA (SVN:r90)¶
http://www.videolan.org/developers/libdca.html
UB