I'm trying to set up the wireshark build on a Windows 7, 32 bit OS. I've installed all the mandatory tools for the build, including the latest version of Qt(5.3.1) for VS 2010, OpenGl combination.
When I run the commande nmake -f Makefile.nmake setup, I get an error that the Qt directory was not found
C:\Development\wireshark>nmake -f Makefile.nmake setup
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
ERROR: The contents of 'C:\Wireshark-win32-libs-1.12\current_tag.txt' is (unknow
n).
It should be 2014-06-19.
Checking for required applications:
cl: /cygdrive/c/Program Files/Microsoft Visual Studio 10.0/VC/Bin/cl
link: /cygdrive/c/Program Files/Microsoft Visual Studio 10.0/VC/Bin/link
nmake: /cygdrive/c/Program Files/Microsoft Visual Studio 10.0/VC/Bin/nma
ke
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: /cygdrive/c/Perl/bin/perl
C:\Python27\python.exe: /cygdrive/c/Python27/python.exe
sed: /usr/bin/sed
unzip: /usr/bin/unzip
wget: /usr/bin/wget
Can't find: C:\Qt\Qt5.3.1\5.3\msvc2010_opengl\bin
ERROR: These application(s) are either not installed or simply can't be found in
the current PATH: /cygdrive/c/Python27:/cygdrive/c/Windows/Microsoft.NET/Framew
ork/v4.0.30319:/cygdrive/c/Windows/Microsoft.NET/Framework/v3.5:/cygdrive/c/Prog
ram Files/Microsoft Visual Studio 10.0/Common7/IDE:/cygdrive/c/Program Files/Mic
rosoft Visual Studio 10.0/Common7/Tools:/cygdrive/c/Program Files/Microsoft Visu
al Studio 10.0/VC/Bin:/cygdrive/c/Program Files/Microsoft Visual Studio 10.0/VC/
Bin/VCPackages:/cygdrive/c/Program Files/Microsoft SDKs/Windows/v7.1/Bin/NETFX 4
.0 Tools:/cygdrive/c/Program Files/Microsoft SDKs/Windows/v7.1/Bin:/cygdrive/c/P
erl/site/bin:/cygdrive/c/Perl/bin:/cygdrive/c/DevEnv/RBTools:/cygdrive/c/Windows
/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Wind
ows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft/Web Plat
form Installer:/cygdrive/c/Program Files/Microsoft ASP.NET/ASP.NET Web Pages/v1.
0:/cygdrive/c/Program Files/Windows Kits/8.0/Windows Performance Toolkit:/cygdri
ve/c/Program Files/Microsoft SQL Server/110/Tools/Binn:/cygdrive/c/Program Files
/Windows Phone TShell:/cygdrive/c/Program Files/IBM/RationalSDLC/ClearCase/bin:/
cygdrive/c/Program Files/IBM/RationalSDLC/common:/cygdrive/c/Program Files/Perfo
rce:/cygdrive/c/Program Files/Subversion/bin:/cygdrive/c/Program Files/doxygen/b
in:/cygdrive/c/Program Files/QuickTime/QTSystem:/cygdrive/d/Tools/ADB:/cygdrive/
c/Python27:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/Program Files/Microsoft
Windows Performance Toolkit:/cygdrive/c/Users/shishir.j/AppData/Local/Bandizip/
7z:/usr/bin:/cygdrive/c/Wireshark-win32-libs-1.12/gtk2/bin:/cygdrive/c/bin:/cygd
rive/c/Wireshark-win32-libs-1.12/zlib125.
For additional help, please visit:
http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html
NMAKE : fatal error U1077: 'c:\cygwin\bin\bash.EXE' : return code '0x1'
Stop.
But, I’ve hard coded the Qt base directory in the config.nmake file. Should I use an older version of Qt?
!IF !DEFINED(QT5_BASE_DIR)
Wireshark custom
QT5_BASE_DIR=C:\Qt\Qt5.3.1\5.3\msvc2010_opengl
Digia official
#!ELSE IF EXIST(C:\Qt\Qt5.1.1\5.1.1\msvc2010)
#QT5_BASE_DIR=C:\Qt\Qt5.1.1\5.1.1\msvc2010
Qt 5.2.1 web installer default paths
#!ELSE IF EXIST(C:\Qt\5.2.1\msvc2010)
#QT5_BASE_DIR=C:\Qt\5.2.1\msvc2010
#!ELSE IF EXIST(C:\Qt\5.2.1\msvc2012)
#QT5_BASE_DIR=C:\Qt\5.2.1\msvc2012
#!ELSE IF EXIST(C:\Qt\5.2.1\msvc2012_64)
#QT5_BASE_DIR=C:\Qt\5.2.1\msvc2012_64
Digia official, installed in $(WIRESHARK_LIB_DIR)
#!ELSE IF EXIST($(WIRESHARK_LIB_DIR)\Qt5.1.1\5.1.1\msvc2010)
#QT5_BASE_DIR=$(WIRESHARK_LIB_DIR)\Qt5.1.1\5.1.1\msvc2010
#!ENDIF
!ENDIF
asked 19 Aug ‘14, 00:43
shishir127
16●2●2●4
accept rate: 0%
Qmake is present in the \bin directory. Could there be any other reason for the error? I tried to reinstall the tools, but I'm still getting the same error.
C:\Qt\Qt5.3.1\5.3\msvc2010_opengl\bin>dir qmake.exe Directory of C:\Qt\Qt5.3.1\5.3\msvc2010_opengl\bin
08/19/2014 10:01 AM 1,630,720 qmake.exe 1 File(s) 1,630,720 bytes 0 Dir(s) 63,568,146,432 bytes free
cd into QT5_BASE_DIR\bin and execute
qmake -query QT_INSTALL_PREFIX
and post the output. It should be the same as QT5_BASE_DIR.Here's the output
C:\Qt\Qt5.3.1\5.3\msvc2010_opengl\bin>qmake -query QT_INSTALL_PREFIX
C:/Qt/Qt5.3.1/5.3/msvc2010_opengl
Looks good, so why isn't the win-setup.sh script locating qmake in your configuration?
Coming back to the odd error message produced
Can't find: C:\Qt\Qt5.3.1\5.3\msvc2010_opengl\bin
. If I set QT5_BASE_DIR to a path that doesn't have\bin\qmake
, e.g.C:\Temp
, then I get the expected error messageCan't find: C:\Temp\bin\qmake
, why does your error message stop short without the qmake part?Note: I'm not sure anyone else has used the VC2010 5.3.1 version of QT, the 1.12 release was built using the 5.1.1 version, although I can't see why the version matters at this point as the setup script is just checking qmake can be found. I'm also uncertain about using the opengl version of qt, as that needs extra graphic driver support.