I am attempting to compile Wireshark (1.10.8), and keep getting an error relating (supposedly) to a missing library:
Code:
checking for GTK+ - version >= 2.12.0 and < 3.0... Package libpng14 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng14.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpng14', required by 'GdkPixbuf', not found
no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: Neither Qt nor GTK+ 2.12.0 or later are available, so Wireshark can't be compiled
I have checked my version of libpng, and it is 1.6.12.
A quick listing of the /usr/lib64 directory for libpng reveals this:
Code:
root@slacker:/home/mattallmill/Downloads/SlackBuilds/wireshark ] # ls /usr/lib64/libpng
libpng.a libpng.so.3.50.0 libpng12.so.0.50.0 libpng16.la
libpng.la libpng12.a libpng14.so.14 libpng16.so
libpng.so libpng12.la libpng14.so.14.12.0 libpng16.so.16
libpng.so.14 libpng12.so libpng15.so.15 libpng16.so.16.12.0
libpng.so.3 libpng12.so.0 libpng16.a
Part of the error message indicates I should add the directory containing libpng14.pc to the PKG_CONFIG_PATH environment variable, so I did a find command from the / directory to locate this file, like so:
Code:
find . |grep libpng14.pc
And it revealed:
Code:
/usr/lib/pkgconfig/libpng14.pc
But when I added the directory to the PKG_CONFIG_PATH variable, like so:
Code:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH::/usr/lib/pkgconfig/
and rerun the SlackBuild, the same error occurs. As for Qt and GTK, both packages are installed, as I am running KDE.
Any help would be greatly appreciated.