[MPlayer-dev-eng] [BUG] MPlayer fails to find correct version of libpng on Mac OS X

Diego Biurrun diego at biurrun.de
Sun Jun 7 10:42:25 CEST 2009


On Sun, May 24, 2009 at 02:12:36AM -0400, Ergzay wrote:
> I recently installed a newer version of libpng. The issue is that on  
> mac os x (10.5) libpng is by default in /usr/X11. I installed libpng / 
> usr/local and now mplayer configure complains because for some reason  
> it insists on taking the headers from /usr/X11 but takes the libraries  
> from /usr/local so it of course gets mismatched versions. I even tried  
> setting LPATH and IPATH to /usr/local/lib to no avail. Nothing I do  
> seems to make any difference. The chief problem is that not matter  
> what I set in configure.log it runs:
> cc -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration- 
> after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith - 
> Wredundant-decls -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast- 
> math -fomit-frame-pointer -mdynamic-no-pic -falign-loops=16 -shared- 
> libgcc -I.   -I/usr/X11/include -I/usr/local/include/   -ffast-math - 
> dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/ 
> Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/ 
> Versions/A/Libraries/libGL.dylib  -liconv -lncurses  -framework IOKit - 
> framework Cocoa -L/usr/X11R6/lib -lXext -lX11  -lXss -lXv -lXinerama - 
> lXxf86vm -lGL  -L/usr/local/lib -lcaca -lX11 -L/usr/X11/lib -lncurses - 
> lncurses -framework Carbon -framework QuickTime -framework Carbon - 
> framework Cocoa -framework QuartzCore -framework OpenGL  -o /var/ 
> folders/By/ByG2mfzgHq4dWbllUdu3PU+++TI/-Tmp-//mplayer- 
> conf-25938-57549 /var/folders/By/ByG2mfzgHq4dWbllUdu3PU+++TI/-Tmp-// 
> mplayer-conf-24390-57549.c -lpng -lz -lm

Please find out which test adds -I/usr/local/include to extra_cflags
after -I/usr/X11/include.

> With it running I/usr/X11/include -I/usr/local/include/ its always  
> going to find the old version first, but then it switches the order  
> when it loads -L. This is entirely annoying and should be fixed. Also  
> why is -lpng being used? pkg-config says -lpng12 should be used.

We avoid pkg-config where possible.

Diego



More information about the MPlayer-dev-eng mailing list