[MPlayer-cygwin] mplayer and libfontconfig-1.dll

John Brown johnbrown105 at hotmail.com
Tue Oct 23 05:45:45 CEST 2007



On Mon, 22 Oct 2007 21:19:29 -0500, Rafael Mattos wrote:
>
> After one hell of a time trying to compile fontconfig on mingw (and
> actually somehow suceeding), mplayer still won't detect it. Since I'm
> pretty much giving up on it, I checked smplayer's mplayer build (mplayer
> cccp-svn-r23855-3.4.5) and that build has a libfontconfig-1.dll (and
> libexpat-1.dll, libfreetype-6.dll) along with mplayer.exe. Is there any
> way to compile mplayer on mingw while having it use these dlls?
>

I am assuming that you have MSYS properly set up, and that
pkg-config is in your path and works. These packages can be 

The main difficulty is that you need to use "matching" versions of
fontconfig and freetype. Building these packages is straightforward
under MSYS. MPlayer's configure script may use pkg-config to
detect them after they have been installed.

For example, the script may run:
pkg-config --cflags freetype2
On my system, the result is:
-I/usr/local4/include/freetype2 -I/usr/local4/include

To build fontconfig-2.4.2:
LIBS=-liconv CFLAGS=-I/usr/local4/include LDFLAGS=-L/usr/local4/lib \
 ./configure --enable-static --enable-shared --disable-docs  \
--prefix=/usr/local4> BUGREPORT/configure.txt 2>&1
make
make install

To build freetype-2.3.4:
CFLAGS=-I/usr/local4/include LDFLAGS=-L/usr/local4/lib \
 ./configure --enable-static --enable-shared --prefix=/usr/local4 \
> BUGREPORT/configure.txt 2>&1
make
make install


To build expat-2.0.0
CFLAGS=-I/usr/local4/include LDFLAGS=-L/usr/local4/lib \
 ./configure --prefix=/usr/local4 --enable-static --enable-shared \
> BUGREPORT/configure.txt 2>&1
make
make install

I don't remember the order in which they should be built.


Of course, set your include, lib and prefix directories  appropriately.

I always save the output in a file so that I can easily see what was
detected or not.  Then you need to check configure.log to see why
it was not detected. There is no way around it.

_________________________________________________________________
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033


More information about the MPlayer-cygwin mailing list