libpng hell
OK, I actually had this problem solved once, but it was long ago, and I can't remember what I did. Stupid me, I forgot to back up all the packages I had created when I reformatted, so I'm attempting to recreate them all now.
Makefile configuration with mplayer failed, telling me that I needed libpng and libpng-dev installed. I have the package that comes with Slack 10, libpng-1.2.5-i486-2 installed. I visited the libpng page on sourceforge, went to the dev section, and found nothing but betas and release candidates, so I was certainly in the wrong place. linuxpackages.net has libpng packages, but no libpng-dev ones. I found a libpng-dev RPM, so I got that, used rpm2tgz to convert it, took a look at the files, and realized I already had those installed! I have png.h and pngconf.h in both /usr/include/libpng and /usr/include/libpng12...do I need any other header files than this? I looked at the output of "./configure --help" in the MPlayer source directory, but there was no option to specify the location of libpng. Someone please help me, I keep running into this problem and I'm so tired of it. |
Do you have the libpng12-config and the libpng-config programs? That is most likely how it is checking to see if you have the library installed.
|
Yeah, I have those, and when I use both "libpng-config --prefix" and "libpng12-config --prefix", it prints "/usr", which is correct.
|
open up the config.log in the mplayer source. some versions of libpng are touchy on thier functions ( most configure scripts check for libpng by compiling a small program with a particular function).
|
Code:
============ Checking for PNG support ============ |
Eh, screw that, didn't feel like making a package. I read the libpng header files and they are both version 1.2.5, and that's how it should be. I removed that package, though, and tried out a version 1.2.8 libpng package from linuxpackages.net and ran the configure script again...same result :(. I'm lost...
|
Code:
#include <png.h> |
I used "gcc -o test test.c", where test.c contains your code...is that right? When I tried it, I got this error:
Code:
/tmp/ccGWjU6Z.o(.text+0x29): In function `main': |
Well, what a nice little workaround: I just passed "--enable-png" to the configure script and everything went great...maybe something is wrong with its test program, I've never used 1.0pre6a before... Thank you both, jtshaw and __J, I appreciate it.
|
All times are GMT -5. The time now is 03:50 PM. |