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

Error while building Wireshark-2.0.2 in Visual Studio 2010 with Qt5.1.1

0

Hi,

I am facing issue with wireshark version 2.0.2 after giving command nmake -f Makefile.nmake all

Error:

cd ui/qt
C:\Qt\Qt-5.1.1-MSVC2010-win64-ws\bin\qmake CONFIG+=release Wireshark.pro 
Project ERROR : Unknown module in QT: multimedia
NMAKE : fatal error U1077: 'C:\Qt\Qt-5.1.1-MSVC2010-win64-ws\bin\qmake.exe' : return code '0x3'
Stop.

verify_tools and setup stage is not showing any error and warning.

One more thing, with Wireshark version 1.12.3 I am able to build successfully.

asked 29 Mar ‘16, 04:05

Chandan%20Mishra's gravatar image

Chandan Mishra
2114
accept rate: 0%

edited 29 Mar ‘16, 04:18

grahamb's gravatar image

grahamb ♦
19.8k330206


One Answer:

1

While nmake\qmake is deprecated for Wireshark 2.x, it still mostly works for the present, but I'm not sure anyone has tried to build 2.x with VS 2010. The production releases are built with VS2013 and there were some folks building with VS2012.

I'm also uncertain about using Qt 5.1.1, the production releases are built with 5.3.2, and in addition to that I don't think that Qt provides an x64 bit build for use with VS2010.

If you need an x64 build of Wireshark, I think you'll have to move to VS2012, as Qt provides an x64 version of 5.1.1 for that version.

If you don't need an x64 build of Wireshark, then report back what happens when using VS2010 and an x86 version of Qt 5.1.1 for VS2010.

answered 29 Mar '16, 04:30

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Thanks for details I used VS2010 and x86 version of qt 5.1.1 for x86 wireshark. With that wireshark.exe is not created after command "nmake -f Makefile.nmake all"

only Wireshrak-gtk.exe is created inside wireshrak-gtk2 folder. But build is successful.

(30 Mar '16, 02:13) Chandan Mishra

Sounds like you don't have the correct path set for nmake (in config.nmake) to locate the Qt install, thus it doesn't build the Qt version of Wireshark.

(30 Mar '16, 02:35) grahamb ♦

It have correct path, while building wireshark log show:

cd ui/qt C:\Qt\Qt-5.1.1\5.1.1\msvc2010\bin\qmake CONFG+=release Wireshark.pro

In verify_tools also shows same path.

(30 Mar '16, 04:49) Chandan Mishra