Help! ./configure can't find libpng

Questions about Wine on Linux
Locked
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

Help! ./configure can't find libpng

Post by ToddAndMargo2 »

Hi All,

Help! I am in a huge pickle here. I have to get this going for my business! Wine won't display my icon bars in certain programs.

Scientific Linux 6.5, 64 bit (RHEL 6.5 clone)

I need libpng, but "./configure" can't find it. And they are installed. How do I fix this?

Many thanks,
-T

Code: Select all

wine-1.7.30]# ./configure --disable-win64
configure: WARNING: libpng 32-bit development files not found, PNG won't be supported.
But libpng is truly installed!

Code: Select all

# rpm -qa \*libpng\* | grep -i i686
libpng-devel-1.2.49-1.el6_2.i686
libpng-1.2.49-1.el6_2.i686

Code: Select all

# locate libpng | grep -v "yum\|man\|share"

/opt/AutoScan/usr/lib/libpng.so
/opt/AutoScan/usr/lib/libpng.so.3
/opt/AutoScan/usr/lib/libpng.so.3.1.2.8
/opt/AutoScan/usr/lib/libpng12.so
/opt/AutoScan/usr/lib/libpng12.so.0
/opt/AutoScan/usr/lib/libpng12.so.0.1.2.8
/opt/calibre/lib/libpng14.so.14
/usr/bin/libpng-config
/usr/bin/libpng12-config
/usr/include/libpng12
/usr/include/libpng12/png.h
/usr/include/libpng12/pngconf.h
/usr/lib/libpng.so
/usr/lib/libpng.so.3
/usr/lib/libpng.so.3.49.0
/usr/lib/libpng12.so
/usr/lib/libpng12.so.0
/usr/lib/libpng12.so.0.49.0
/usr/lib/pkgconfig/libpng.pc
/usr/lib/pkgconfig/libpng12.pc
/usr/lib64/libpng.so
/usr/lib64/libpng.so.3
/usr/lib64/libpng.so.3.49.0
/usr/lib64/libpng12.so
/usr/lib64/libpng12.so.0
/usr/lib64/libpng12.so.0.49.0
/usr/lib64/compiz/libpng.so
/usr/lib64/gthumb/modules/libpngexporter.so
/usr/lib64/pkgconfig/libpng.pc
/usr/lib64/pkgconfig/libpng12.pc
/usr/lib64/vlc/plugins/codec/libpng_plugin.so
How do I fix this?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help! ./configure can't find libpng

Post by dimesio »

Check the config.log to see exactly what ./configure is looking for and not finding. You may need to make a symlink.
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

Re: Help! ./configure can't find libpng

Post by ToddAndMargo2 »

dimesio wrote:Check the config.log to see exactly what ./configure is looking for and not finding. You may need to make a symlink.
Looks like it find it! :'(
libpng cflags: -I/usr/include/libpng12
configure:12943: libpng libs: -lpng12
configure:12948: checking png.h usability
configure:12948: gcc -m32 -c -g -O2 -I/usr/include/libpng12 conftest.c >&5
configure:12948: $? = 0
configure:12948: result: yes
configure:12948: checking png.h presence
configure:12948: gcc -m32 -E -I/usr/include/libpng12 conftest.c
configure:12948: $? = 0
configure:12948: result: yes
configure:12948: checking for png.h
configure:12948: result: yes
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help! ./configure can't find libpng

Post by dimesio »

What does

Code: Select all

checking for -lpng
return?
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

Re: Help! ./configure can't find libpng

Post by ToddAndMargo2 »

dimesio wrote:What does

Code: Select all

checking for -lpng
return?
configure:12960: checking for -lpng
configure:12985: gcc -m32 -o conftest -g -O2 -I/usr/include/libpng12 conftest.c -lpng -lpng12 -lm -lz >&5
/usr/bin/ld: skipping incompatible /usr/lib64/libz.so when searching for -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
I just did a
yum --enablerepo=* whatprovides */libz.so
and got back "zlib-devel"

So I did a
yum --enablerepo=* install zlib-devel.i686

Why in the world would that pull a libpng12 error?

I am running a "./configure --disable-win64" right now to see it that clears the error. And it fixed it.

Thank you!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help! ./configure can't find libpng

Post by dimesio »

ToddAndMargo2 wrote: Why in the world would that pull a libpng12 error?
Because libpng depends on zlib. http://www.libpng.org/pub/png/libpng.html
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

Re: Help! ./configure can't find libpng

Post by ToddAndMargo2 »

dimesio wrote:
ToddAndMargo2 wrote: Why in the world would that pull a libpng12 error?
Because libpng depends on zlib. http://www.libpng.org/pub/png/libpng.html
Then someone make a HUGE mistake on the libpng RPM as it does not call libpng out as a dependency.

You will also notice from the config.log that they are checking for libpng first and it passed.

Thank you for helping me with this.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help! ./configure can't find libpng

Post by dimesio »

ToddAndMargo2 wrote: Then someone make a HUGE mistake on the libpng RPM as it does not call libpng out as a dependency.
File a bug with your distro.
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

Re: Help! ./configure can't find libpng

Post by ToddAndMargo2 »

dimesio wrote:
ToddAndMargo2 wrote: Then someone make a HUGE mistake on the libpng RPM as it does not call libpng out as a dependency.
File a bug with your distro.
Hi Dimesio,

Here you go!
https://bugzilla.redhat.com/show_bug.cgi?id=1162842

Thank you for all your patience and your sharing of knowledge with me.

-T
Locked