libpng not found but installed

Questions about Wine on Linux
Locked
JPRuehmann
Level 2
Level 2
Posts: 14
Joined: Thu Sep 18, 2014 1:10 pm

libpng not found but installed

Post by JPRuehmann »

Hello

I am using Linux Kubuntu 14.04 LTS
and try to use / compile the latest git Version.
everytime I try to Run a Programm under Wine I get tons of messages that the png format is not compiled.
./configure gives me the following message.
configure: WARNING: libpng development files not found, PNG won't be supported.
sudo apt-get libpng12-dev says that it is installed.

Why did wine not found the installed files?
How can I make it work?
Thanks,
JPR
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: libpng not found but installed

Post by dimesio »

You are probably missing the 32 bit libpng development files. Ask on the Ubuntu forum which package to install.
JPRuehmann
Level 2
Level 2
Posts: 14
Joined: Thu Sep 18, 2014 1:10 pm

Re: libpng not found but installed

Post by JPRuehmann »

Thanks
But I am having only 32Bit Libraries, I am using a 32Bit Linux.
So the 32Bit development Files are installed in /usr/include/libpng which is a link to /usr/include/libpng12 and there is a newer one for minetest and some other newer self compiled programs in /usr/local/include/libpng16.
None of them is found by wine.
Thanks,
JPR
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: libpng not found but installed

Post by dimesio »

Check the config.log to see where configure is looking for it. You may need to make a symlink.
JPRuehmann
Level 2
Level 2
Posts: 14
Joined: Thu Sep 18, 2014 1:10 pm

Re: libpng not found but installed

Post by JPRuehmann »

Thanks,
where do I find the log?
in /usr/var/log I can´t find it.
thanks
JPR
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: libpng not found but installed

Post by dimesio »

It should be in the Wine source directory.
JPRuehmann
Level 2
Level 2
Posts: 14
Joined: Thu Sep 18, 2014 1:10 pm

Re: libpng not found but installed

Post by JPRuehmann »

Thanks Found,
But I dont understand whats the Problem he looks in the right path says it is there but did not findt it.

Here is the Snippet.

configure:12916: libpng cflags: -I/usr/local/include/libpng16
configure:12917: libpng libs: -L/usr/local/lib -lpng16
configure:12922: checking png.h usability
configure:12922: gcc -c -g -O2 -I/usr/local/include/libpng16 conftest.c >&5
configure:12922: $? = 0
configure:12922: result: yes
configure:12922: checking png.h presence
configure:12922: gcc -E -I/usr/local/include/libpng16 conftest.c
configure:12922: $? = 0
configure:12922: result: yes
configure:12922: checking for png.h
configure:12922: result: yes
configure:12934: checking for -lpng
configure:12959: gcc -o conftest -g -O2 -I/usr/local/include/libpng16 conftest.c -lpng -L/usr/local/lib -lpng16 -lm -lz >&5
configure:12959: $? = 0
configure:12974: result: not found
configure:19061: WARNING: libpng development files not found, PNG won't be supported.

Thanks,
JPR
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: libpng not found but installed

Post by dimesio »

configure:12959: gcc -o conftest -g -O2 -I/usr/local/include/libpng16 conftest.c -lpng -L/usr/local/lib -lpng16 -lm -lz >&5
What files do you have in /usr/local/lib?
JPRuehmann
Level 2
Level 2
Posts: 14
Joined: Thu Sep 18, 2014 1:10 pm

Re: libpng not found but installed

Post by JPRuehmann »

/usr/local/lib

ao
doctrine-orm
libao.la
libao.so.4
libao.so.4.0.0
libclamav.la
libclamav.so
libclamav.so.6
libclamav.so.6.1.18
libclamunrar_iface.la
libclamunrar_iface.so
libclamunrar_iface.so.6
libclamunrar_iface.so.6.1.18
libclamunrar.la
libclamunrar.so
libclamunrar.so.6
libclamunrar.so.6.1.18
libIrrlicht.a
libpng16.a
libpng16.la
libpng16.so
libpng16.so.16
libpng16.so.16.10.0
libpng.a
libpng.la
libpng.so
libspeex.a
libspeexdsp.a
libspeexdsp.la
libspeexdsp.so
libspeexdsp.so.1
libspeexdsp.so.1.4.0
libspeex.la
libspeex.so
libspeex.so.1
libspeex.so.1.4.0
libwine.so
libwine.so.1
libwine.so.1.0
libz.a
libz.so
libz.so.1
libz.so.1.2.8
ocaml
pkgconfig
python2.7
python3.3
python3.4
q4wine
site_ruby
wine
yorick

Thanks,
JPR
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: libpng not found but installed

Post by dimesio »

What do libpng.so and libpng16.so point to?
JPRuehmann
Level 2
Level 2
Posts: 14
Joined: Thu Sep 18, 2014 1:10 pm

Re: libpng not found but installed

Post by JPRuehmann »

Thanks that was the Problem

The libpng.so pointed to libpng16.la changed it to libpng16.so and now it finds the libpng

libpng.a > libpng16.a
libpng.la > libpng16.la
libpng.so > libpng16.la
libpng.so > libpng16.so

Thanks,
JPR
Locked