[MPlayer-users] MacBook Pro 10.5.4 failing to find freetype

Matthew Lindner ergzay at gmail.com
Sat Jul 19 02:11:31 CEST 2008


On Jul 18, 2008, at 7:29 PM, Mohammad A. Haque wrote:

> On Jul 18, 2008, at 7:02 PM, Matthew Lindner wrote:
>
>> 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
>
>
> That's not a FreeType failure. If you export LDFLAGS+="-dylib_file / 
> System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ 
> libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/ 
> Libraries/libGL.dylib" before doing configure that should fix it.
>
> Though I haven't had to do this recently. Maybe you have an old  
> version of XCode installed?
> --
> =====================================================================
> Mohammad A. Haque                      http://www.haque.net/
>                                        mhaque at haque.net


Well as to the second question as I said fresh install and just  
installed XCode from the disk. I had forgotten to check by software  
update if it was all the way updated (I updated everything before  
installing it so had forgotten) and there were no new updates so I'm  
assuming that means its fully updated.

Yep, that was spot on. Several things that weren't being detected are  
all detected fine now. Just need another #ifdef in the configure  
script now.

I have one other independent issue, but I'll create a new topic for  
that.

Thanks,
Ergzay



More information about the MPlayer-users mailing list