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

Qt4 GUI build fails

1

Hi,

I'm trying to compile the Qt4 version of Wireshark on Ubuntu 12.04 (--with-qt). Unfortunately the build process fails at several places (latest SVN trunk). And: yes, I did install libqt4-dev ;-)

Is it my system, or is the Qt4 build not yet finished?

Regards
Kurt

asked 25 May '12, 11:27

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 25 May '12, 11:32


2 Answers:

1

I can't speak to failures in the build process with SVN trunk since I haven't done a build of Qt Wireshark in a while.

However, I can say that Qt Wireshark is very much a work in progress (quite early development).

Have you reviewed doc/README.qt ??

answered 25 May '12, 12:50

Bill%20Meier's gravatar image

Bill Meier ♦♦
3.2k1850
accept rate: 17%

Have you reviewed doc/README.qt ??

No, thanks for the hint. I will read that now.

(25 May '12, 13:07) Kurt Knochner ♦

I should have read doc/README.qt :-) It's all described therein...

(29 May '12, 05:15) Kurt Knochner ♦

2

Using CMake the qt build compiled OK for me on Kubuntu 12.04, Wireshark trunk r42854:

xx:~/Software/Wireshark/build$./qtshark --version
wireshark 1.7.2 (SVN Rev 42854 from /trunk)

Copyright 1998-2012 Gerald Combs <[email protected]wireshark.org> and contributors. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (32-bit) with Qt 4.8.1 with GLib 2.32.1, with libpcap, with libz 1.2.3.4, with POSIX capabilities (Linux), with SMI 0.4.8, with c-ares 1.7.5, with Lua 5.1, without Python, with GnuTLS 2.12.14, with Gcrypt 1.5.0, with MIT Kerberos, with GeoIP, with PortAudio V19-devel (built Dec 10 2011 11:43:21), without AirPcap.

Running on Linux 3.2.0-24-generic, with locale en_GB.UTF-8, with libpcap version 1.1.1, with libz 1.2.3.4, GnuTLS 2.12.14, Gcrypt 1.5.0.

Built using gcc 4.6.3.

xx:~/Software/Wireshark/build$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise

Oddly enough I can’t get the gtk build to complete, CMake can’t find glibconfig.h even though it does exist, probably a path issue.

answered 25 May ‘12, 14:43

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

edited 25 May ‘12, 15:27

cmake is the way to go (or qtcreator) - doc/README.qt. Unfortunately I was not able to build the latest trunk with cmake on Ubuntu 12.04 (Gnome). There are a some errors in CMakeLists.txt

QT4_ADD_TRANSLATION - Unknown CMake command ..
No cmake_minimum_required command is present (while it’s there)

.

Using CMake the qt build compiled OK for me on Kubuntu 12.04, Wireshark trunk r42854

I wonder what’s the difference between Kubuntu 12.04 and Ubuntu 12.04 in terms of building wireshark with cmake. I blieve I have installed all required Qt (dev) libs and tools. Maybe not….

(29 May ‘12, 05:29) Kurt Knochner ♦

As I mentioned, on Kubuntu I can’t get cmake to do a gtk build. Like you I believe I have all the required libs, I think the paths are tripping up cmake though. I should post on the dev mailing list about that.

(29 May ‘12, 06:07) grahamb ♦