Wireshark mailing list archives

Re: error: Neither Qt nor GTK+ 2.12 or later are available, so Wireshark can't be compiled


From: Will Cladek <will.cladek () nrl navy mil>
Date: Fri, 11 Jan 2013 09:43:47 -0500

I am trying to install Wireshark from source on a CentOS 5 machine and am getting this same error.  (I'm having some 
problems with the Red Hat binary and wanted to see if they were fixed in the latest version.)  I have installed all relevant 
GTK and Qt packages and their -devel packages:

#> rpm -qa | grep -i qt
qt-devel-3.3.6-25.el5.i386
qt4-4.2.1-1.el5_7.1.i386
qt-3.3.6-25.el5.x86_64
qt-3.3.6-25.el5.i386
qt4-4.2.1-1.el5_7.1.x86_64
qt4-devel-4.2.1-1.el5_7.1.x86_64
qt4-devel-4.2.1-1.el5_7.1.i386
qt-devel-3.3.6-25.el5.x86_64

#> rpm -qa | grep -i gtk
usermode-gtk-1.88-3.el5.2.x86_64
gtk2-2.10.4-23.el5_8.i386
gtk2-engines-2.8.0-3.el5.i386
gtk+-1.2.10-56.el5.x86_64
gtk+-devel-1.2.10-56.el5.i386
gtk2-devel-2.10.4-23.el5_8.i386
gtk2-engines-2.8.0-3.el5.x86_64
gtk+-1.2.10-56.el5.i386
gtk2-2.10.4-23.el5_8.x86_64
gtk2-devel-2.10.4-23.el5_8.x86_64
gtk+-devel-1.2.10-56.el5.x86_64


My pkg-config output:

#> pkg-config --cflags-only-I gtk+-2.0
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12


The relevant part of config.log:

configure:22814: checking for pkg-config
configure:22845: result: /usr/bin/pkg-config
configure:22867: checking for GTK+ - version >= 2.12.0 and < 3.0
configure:23002: result: no
configure:23030: gcc -o conftest -g -O2 -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign 
-Wcast-align -Wformat-security -Wold-style-definition  -D_FORTIFY_SOURCE=2 -D_U_="__attribute__((unused))"  
-I/usr/local/include  -Wl,--as-needed -L/usr/local/lib conftest.c   >&5
conftest.c:28:21: error: gtk/gtk.h: No such file or directory


It seems like it's not using the correct -I flags from pkg-config like with the other guy's HP-UX machine.

Any help on this would be appreciated.

-Will
___________________________________________________________________________
Sent via:    Wireshark-users mailing list <wireshark-users () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-users
Unsubscribe: https://wireshark.org/mailman/options/wireshark-users
            mailto:wireshark-users-request () wireshark org?subject=unsubscribe


Current thread: