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

Ergzay ergzay at gmail.com
Sun May 24 08:12:36 CEST 2009


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

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.

Ergzay



More information about the MPlayer-dev-eng mailing list