[MPlayer-users] Bug Report: jpeg to avi is broken NOVIRUS

Guillaume POIRIER poirierg at gmail.com
Mon Jul 25 00:25:19 CEST 2005


Hi,

On 7/24/05, Daniel Swan <swan_daniel at hotmail.com> wrote:
> Reimar, that's an excellent call on the progressive JPG.
> 
> I've converted my JPGS to PNGs and tried to mencode them, but mencoder
> complains about not recognizing their format.  So, I try to recompile with
> --enable-jpg, but the compile craps out with the following error:
> 
> ...
> vd_mpng.c:80: error: `png_colorp' undeclared (first use in this function)
> vd_mpng.c:80: error: syntax error before "pal"
> vd_mpng.c:85: error: `png' undeclared (first use in this function)
> vd_mpng.c:85: warning: implicit declaration of function
> `png_create_read_struct'
> vd_mpng.c:85: error: `PNG_LIBPNG_VER_STRING' undeclared (first use in this
> function)
> vd_mpng.c:86: warning: implicit declaration of function
> `png_create_info_struct'
> vd_mpng.c:86: error: incompatible types in assignment
> vd_mpng.c:87: error: `endinfo' undeclared (first use in this function)
> vd_mpng.c:91: warning: implicit declaration of function `png_set_read_fn'
> vd_mpng.c:92: warning: implicit declaration of function `png_set_sig_bytes'
> vd_mpng.c:93: warning: implicit declaration of function `png_read_info'
> vd_mpng.c:94: warning: implicit declaration of function `png_get_IHDR'
> vd_mpng.c:94: error: `png_width' undeclared (first use in this function)
> vd_mpng.c:94: error: `png_height' undeclared (first use in this function)
> vd_mpng.c:95: warning: implicit declaration of function `png_set_bgr'
> vd_mpng.c:97: error: invalid type argument of `->'
> vd_mpng.c:98: error: `PNG_COLOR_TYPE_GRAY_ALPHA' undeclared (first use in
> this function)
> vd_mpng.c:101: error: `PNG_COLOR_TYPE_GRAY' undeclared (first use in this
> function)
> vd_mpng.c:104: error: `PNG_COLOR_TYPE_PALETTE' undeclared (first use in this
> function)
> vd_mpng.c:107: error: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in
> this function)
> vd_mpng.c:110: error: `PNG_COLOR_TYPE_RGB' undeclared (first use in this
> function)
> vd_mpng.c:114: error: invalid type argument of `->'
> vd_mpng.c:140: error: syntax error before ')' token
> vd_mpng.c:142: error: `i' undeclared (first use in this function)
> vd_mpng.c:143: warning: implicit declaration of function `png_read_image'
> vd_mpng.c:147: warning: implicit declaration of function `png_get_PLTE'
> vd_mpng.c:147: error: `pal' undeclared (first use in this function)
> vd_mpng.c:158: warning: implicit declaration of function `png_read_end'
> vd_mpng.c:159: warning: implicit declaration of function
> `png_destroy_read_struct'
> make[1]: *** [vd_mpng.o] Error 1
> make[1]: Leaving directory `/var/tmp/cvs/main/libmpcodecs'
> make: *** [libmpcodecs/libmpcodecs.a] Error 2
> memeticcandiru:/var/tmp/cvs/main#
> 
> 
> Any thoughts?  I am using Debian Sarge, and have libpng installed.

You need also the dev headers (probably called libpng-dev). Please
note that the "--enable" switches allow you to shoot yourself in the
foot, as it's try to compile the parts of mplayer you activated
whether or not you have the necessary headers.

So, WHENEVER you use --enable, please be sure that you're not doing
smth dumb. :-)
Guillaume
-- 
I feel sorry for people who don't drink.
When they wake up in the morning, that's
as good as they're going to feel all day.
 -- Frank Sinatra




More information about the MPlayer-users mailing list