This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

unable to build trunk Qt version without GTK+

0

I've downloaded the latest package (wireshark-1.11.0-SVN-50460.tar.bz2) and after running ./configure I get the following output as last lines:

checking for GTK+ - version >= 2.12.0 and < 3.0... 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've installed Qt 5 through package ubuntu-sdk, I don't know which version of GTK+ I have or how to upgrade it (didn't found anything on the web)

Is GTK+ mandatory or is it possible to use Qt as suggested by the output?

asked 09 Jul '13, 07:03

ojay's gravatar image

ojay
16347
accept rate: 0%

edited 09 Jul '13, 10:00

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196


One Answer:

1

It is possible but you have to specify --without-gtk2 in addition to --with-qt. (This changed somewhat recently in the trunk.)

Do note that the Qt version is under development--you probably should only be using it if you are planning on developing it (adding code to Wireshark to expand this port).

answered 09 Jul '13, 09:58

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%

Thank you! I got this output:

checking for Qt - version >= 4.6.0... Package QtCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtCore' found
Package QtGui was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtGui.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtGui' found
Package QtCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtCore' found
Package QtGui was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtGui.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtGui' found
Package QtCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtCore' found
Package QtGui was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtGui.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtGui' found
no
configure: error: Qt is not available

Do I also need to install package "qt-sdk"? I just checked and that didn't get installed with "ubuntu-sdk".
Anyway, how can I use GTK? I have other applications installed that run on GTK without problems (Sublime Text, ghex). How can I solve this?

(09 Jul '13, 13:43) ojay

How can you use GTK+? By installing the GTK+ development package (I don't know what it's called off hand, but look in the package manager for a package whose name contains "gtk" and "devel"), and configuring with --with-gtk2 or --with-gtk3, depending on whether it's a package for GTK+ 2 or GTK+ 3.

How can you use Qt? By installing the Qt development package (see previous comment, but substitute "qt" for "gtk"), making sure that the directory containing Qt's .pc files is in your PKG_CONFIG_PATH, and configuring with --with-qt.

(09 Jul '13, 13:48) Guy Harris ♦♦