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

Wireshark build gives “Can’t find Qt. This will become a problem…

0

In following the most recent Wireshark build instructions, the following command returns with a warning:

C:>nmake -f Makefile.nmake verify_tools

Can't find Qt. This will become a problem at some point.

Needless to say, the build will indeed fail. I gather that Wireshark has switched to a new GUI library called Qt. What do I have to download to resolve this?

asked 24 Feb '14, 05:58

lynchzilla's gravatar image

lynchzilla
26447
accept rate: 0%

edited 24 Feb '14, 06:18


One Answer:

0

Have a look at README.qt in the docs directory.

answered 24 Feb '14, 06:50

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

I installed Qt library and Qt Creator that matches Visual Studio 2010. I put both C:\Qt\Qt5.2.1\5.2.1\msvc2010\bin and C:\Qt in my PATH, but nmake verify_tools still complains about cannot find Qt. What's wrong?

Can't find Qt. This will become a problem at some point. Checking for required applications: cl: /cygdrive/c/Program Files/Microsoft Visual Studio 10.0/VC/bin/cl link: /usr/bin/link nmake: /cygdrive/c/Program Files/Microsoft Visual Studio 10.0/VC/bin/nmake bash: /usr/bin/bash bison: /usr/bin/bison flex: /usr/bin/flex env: /usr/bin/env grep: /usr/bin/grep /usr/bin/find: /usr/bin/find peflags: /usr/bin/peflags perl: /usr/bin/perl C:\Python27\python.exe: /cygdrive/c/Python27/python.exe sed: /usr/bin/sed unzip: /usr/bin/unzip wget: /usr/bin/wget

(16 Apr '14, 15:51) YXI

When you say for now Wireshark is built with Qt5.1.1, do you mean Windows only? Because I certainly have pulled a binary built with Qt5.2, but it's on Mac.

Application Specific Information: wireshark 1.11.3-1864-geef0fa6 (wireshark-1.11.3-rc1-1864-geef0fa6-dirty from unknown)

Compiled (64-bit) with Qt 5.2.1 with GLib 2.36.0, with libpcap, with libz 1.2.3, without POSIX capabilities, with SMI 0.4.8, without c-ares, without ADNS, with Lua 5.1, without Python, with GnuTLS 2.12.19, with Gcrypt 1.5.0, with MIT Kerberos, with GeoIP, without PortAudio, with AirPcap.

Running on Mac OS X 10.9.2, build 13C64 (Darwin 13.1.0), without locale, with libpcap version 1.3.0 - Apple version 41, with libz 1.2.5, GnuTLS 2.12.19, Gcrypt 1.5.0, without AirPcap. Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz

Built using llvm-gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00).

(17 Apr '14, 07:26) YXI

I downloaded following your link. After unzipping I can not find any setup or launcher programs. Do I just put the whole folder under C:\? What about my PATH? Just to C:\Qt-5.1.1.-MSVC2010-win32-ws\bin?

(17 Apr '14, 08:14) YXI

I start to think my problem may not be the version of Qt, but that I don't have QT5_BASE_DIR defined.

(17 Apr '14, 08:40) YXI

If you look at config.nmake content, you will see that if you unzip the file I indicated in your c:\ hard disk it will automatically pick the PATH.

(17 Apr '14, 12:33) Pascal Quantin

Sorry for the stupid question. But what needs to be done besides unzipping the file in c:\ for installing Qt5.1.1? Is that all?
And from there, can we simply follow the win32/64 step-by-step guide to build? That document seems to be outdated. It does not address Qt at all.

(17 Apr '14, 13:19) YXI

If you want to build the Qt based GUI, yes that's all. Not that it is not feature complete yet compared to the GTK one, that's why you simply get a warning. You can still build Wireshark without installing Qt.

(17 Apr '14, 14:13) Pascal Quantin
showing 5 of 8 show 3 more comments