[MPlayer-users] MacBook Pro 10.5.4 failing to find freetype
Matthew Lindner
ergzay at gmail.com
Sat Jul 19 01:02:50 CEST 2008
I just got myself today a brand spanking new MacBook Pro. This is
completely fresh except for installing pkg-config. I run configure and
it fails to find freetype. I checked my freetype version using
freetype-config --ftversion and it says 2.3.5. freetype-config is
located in /usr/X11/bin/freetype-config
From 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(void) {
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=pentium-m -mtune=pentium-m -pipe -ffast-math -fomit-frame-
pointer -I/usr/local/include -I/usr/X11/include -L/usr/local/lib -
liconv -lncurses -framework Carbon -framework QuickTime -framework
CoreAudio -framework AudioUnit -framework AudioToolbox -framework
Cocoa -framework QuartzCore -framework OpenGL -framework IOKit -
framework IOKit -framework OpenAL -o /var/folders/By/
ByG2mfzgHq4dWbllUdu3PU+++TI/-Tmp-//mplayer-conf-27437-30265 /var/
folders/By/ByG2mfzgHq4dWbllUdu3PU+++TI/-Tmp-//mplayer-
conf-24597-30265.c -I/usr/X11/include/freetype2 -I/usr/X11/include -L/
usr/X11/lib -lfreetype -lz -Wl,-framework,CoreServices,-
framework,ApplicationServices
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status
Result is: no
The interesting thing is all the tests to find the X11 SDK also fails
similarly (it finds the X11 headers fine) with this error message and
"ld: library not found for -lXext". I can post that part of the
configure.log as well if people wish.
Any help is greatly appreciated,
Ergzay
More information about the MPlayer-users
mailing list