[MPlayer-dev-eng] [PATCH] Add additional check for libmng with libjpeg support

Josh joshf87 at live.com
Sat Dec 22 18:11:29 CET 2012


On 12/22/2012 11:29, Carl Eugen Hoyos wrote:
> Xidorn Quan <quanxunzhen <at> gmail.com> writes:
>
>> I believe that your code should work fine if flag for compiling with
>> mng is not specified. But if someone explicitly uses --enable-mng,
>> there will be no mng-related linker flags at all.
> Yes, this is how MPlayer configure script works.
>
> I wonder if it is sufficient to move the jpeg-detection
> above the mng detection.
>
> Carl Eugen
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
>
Just tried it, libmng check still fails because of missing libjpeg 
references.

============ Checking for MNG support ============

#include <libmng.h>
int main(void) { const char * p_ver = mng_version_text(); return !p_ver 
|| p_ver[0] == 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith 
-Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes 
-Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement 
-std=gnu99 -Werror-implicit-function-declaration -O4 -march=native 
-mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize 
/tmp/mplayer-configure-5179-2680/tmp.c -I. -Iffmpeg  -fno-common  
-I/mingw/include/ -static  -lwinmm -ffast-math -lws2_32 -liconv -lpng 
-lz -ljpeg  -lgdi32 -L/mingw/lib -lcaca -lz  -o 
/tmp/mplayer-configure-5179-2680/tmp.exe -lmng -lz -lm
E:/Buildsys/MinGW/lib\libmng.a(libmng_jpeg.o): In function 
`mngjpeg_cleanup':
E:\Buildsys\MinGW\src\libmng-1.0.10/libmng_jpeg.c:344: undefined 
reference to `jpeg_destroy_compress'
E:\Buildsys\MinGW\src\libmng-1.0.10/libmng_jpeg.c:337: undefined 
reference to `jpeg_destroy_decompress'
....
E:\Buildsys\MinGW\src\libmng-1.0.10/libmng_jpeg.c:1002: undefined 
reference to `jpeg_finish_output'
E:\Buildsys\MinGW\src\libmng-1.0.10/libmng_jpeg.c:1003: undefined 
reference to `jpeg_finish_output'
E:/Buildsys/MinGW/lib\libmng.a(libmng_jpeg.o): In function 
`mngjpeg_decompressfree2':
E:\Buildsys\MinGW\src\libmng-1.0.10/libmng_jpeg.c:1067: undefined 
reference to `jpeg_destroy_decompress'
collect2: ld returned 1 exit status


Result is: no


More information about the MPlayer-dev-eng mailing list