[MPlayer-users] 1.0rc2 on osx: unable to load subfonts
Krzysztof Duchnowski
amidk75 at gmail.com
Sun Nov 11 08:54:59 CET 2007
William Xu pisze:
>> The same ttf file you metioned works for me, so probably it's your
>> build of mplayer's problem, such as, compiled with no freetype
>> supported or bad version... So, also check your configure.log, to see
>> the freetype part and post it here.
> As mentioned previously, i compiled with `--prefix=$HOME
> --enable-menu'. Now if i tried compiling it with `--enable-menu
> --enable-freetype', during configure, looks like freetype is correctly
> recognized:
> ,----
> | Checking for bitmap font support ... yes
> | Checking for freetype >= 2.0.9 ... yes
> | Checking for fontconfig ... no
> | Checking for SSA/ASS support ... no (FreeType >= 2.1.8 needed)
> | Checking for fribidi with charsets ... no
> `----
First of all - don't force "--enable-freetype" to "./configure"
Second - you don't have "fontconfig"
Thrid - you was asked to check "configure.log" but not "./configure"
<stdout> as you included.
Here my part configure.log:
============ Checking for freetype >= 2.0.9 ============
#include <stdio.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#if ((FREETYPE_MAJOR < 2) || ((FREETYPE_MINOR == 0) && (FREETYPE_PATCH <
9)))
#error "Need FreeType 2.0.9 or newer"
#endif
int main()
{
FT_Library library;
FT_Int major=-1,minor=-1,patch=-1;
int err=FT_Init_FreeType(&library);
if(err){
printf("Couldn't initialize freetype2 lib, err code: %d\n",err);
exit(err);
}
FT_Library_Version(library,&major,&minor,&patch); // in v2.1.0+
only :(((
printf("freetype2 header version: %d.%d.%d library version:
%d.%d.%d\n",
FREETYPE_MAJOR,FREETYPE_MINOR,FREETYPE_PATCH,
(int)major,(int)minor,(int)patch );
if(major!=FREETYPE_MAJOR || minor!=FREETYPE_MINOR){
printf("Library and header version mismatch! Fix it in your
distribution!\n");
exit(1);
}
return 0;
}
cc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=k8
-mtune=k8 -pipe -ffast-math -fomit-frame-pointer
-I/usr/include/directfb -I/usr/include/SDL -D_REENTRANT
-lncurses -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -ldvdread
-lcdda_interface -lcdda_paranoia -ldirectfb -lXext -lX11 -lpthread
-lXv -lXinerama -lXxf86vm -lXxf86dga -L/usr/lib -lSDL -laudio -lXt
-L/usr/lib -lesd -laudiofile -lm -ljack -o
/tmp/mplayer-conf-16435-20664 /tmp/mplayer-conf-20539-20664.c
-I/usr/local/include/freetype2 -I/usr/local/include -L/usr/local/lib
-Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz
freetype2 header version: 2.3.1 library version: 2.3.1
Result is: yes
##########################################
============ Checking for fontconfig ============
#include <stdio.h>
#include <fontconfig/fontconfig.h>
int main()
{
int err = FcInit();
if(err == FcFalse){
printf("Couldn't initialize fontconfig lib\n");
exit(err);
}
return 0;
}
cc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=k8
-mtune=k8 -pipe -ffast-math -fomit-frame-pointer
-I/usr/include/directfb -I/usr/include/SDL -D_REENTRANT
-I/usr/local/include/freetype2 -I/usr/local/include -lncurses -lpng
-lz -ljpeg -lungif -lasound -ldl -lpthread -ldvdread -lcdda_interface
-lcdda_paranoia -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
-lfreetype -lz -ldirectfb -lXext -lX11 -lpthread -lXv -lXinerama
-lXxf86vm -lXxf86dga -L/usr/lib -lSDL -laudio -lXt -L/usr/lib -lesd
-laudiofile -lm -ljack -o /tmp/mplayer-conf-16435-20664
/tmp/mplayer-conf-20539-20664.c -lfontconfig
/tmp/mplayer-conf-20539-20664.c: In function 'main':
/tmp/mplayer-conf-20539-20664.c:8: warning: implicit declaration of
function 'exit'
/tmp/mplayer-conf-20539-20664.c:8: warning: incompatible implicit
declaration of built-in function 'exit'
Result is: yes
##########################################
--
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.mozilla.com/firefox/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/
More information about the MPlayer-users
mailing list