[MPlayer-users] problem with compiling mplayer with GUI

Vasarhelyi asd Daniel asd at mail.musichello.com
Sat Dec 1 14:12:08 CET 2001


On Thu, Nov 29, 2001 at 08:11:06PM +0100, Alexander Werth (gmx) wrote:
> > gcc -c -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -fomit-frame-pointer -fexpensive-optimizations -fschedule-insns2 -Wall -malign-double -I. -I./event -I./wm -I./skin -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/local/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DDEBUG  -o bitmap/png/png.o bitmap/png/png.c
> > bitmap/png/png.c:6:17: png.h: No such file or directory
> > bitmap/png/png.c:20: parse error before '*' token
> I have a file called png.h in Gui/bitmap/png/ so probably You just had
> bad luck checking out cvs. See if the file is there and has some
> content. If not update cvs or get a new daily package.

As I see, you're trying to tell authors, why they are stupid.
Instead of doing that, You should download and install libpng _and_ 
libpng DEVELOPMENT files for your Linux distribution 
(debian: apt-get install libpng-dev).

Just for the archive
As you see in png.c:
#include "./png.h"
#include "../../error.h"
#include <png.h>

first is: main/Gui/bitmap/png/png.h
the second is: /usr/include/png.h (this's which you haven't got)

authors: I'm glad to see in this thread, that configure now checks for
png development files, but what's about a so called "user-friendly"
error message in configure script, which tells that user should install
(and maybe how) XY library on his/her system. For example:

png.h: not found
SOLUTION:
If you're want to use mplayer GUI, you need png development files
installed on your system, which can be done:
under debien: apt-get install libpng-dev
under redhat: ...
...

Or just tell user to read documentation, and WHICH. (for god's shake,
DOCS is filled with 1.6M of text...)

asd
-- 
Daniel "asd" Vasarhelyi
PGP key avaible at http://asd.musichello.com/gpg-pub.key and public keyservers
Key fingerprint = EA00 AF4D A83C 1122 0967  DDF5 27BC 390F 181F 9954



More information about the MPlayer-users mailing list