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

Can’t find Qt’s directory while running nmake -f Makefile.nmake setup

0

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's gravatar image

shishir127
16224
accept rate: 0%


2 Answers:

1

Although the error message is incomplete (it should list the tool it couldn't find), I think the issue is that setup can't find qmake in the QT5_BASE_DIR\bin directory.

Can you check that you do have qmake in that location? If not there is something up with your qt installation.

On a side note, rather than changing config.nmake, it can be easier to set environment variables for the config options so that your source tree isn't carrying unnecessary changes. The env vars to set for VS2010 are:

set CYGWIN=nodosfilewarning set WIRESHARK_BASE_DIR=path\to\the directory where you want the 3rd party libs downloaded into set WIRESHARK_TARGET_PLATFORM=win32 set QT5_BASE_DIR=path\to\your\qt installation set VisualStudioVersion=10.0 set WIRESHARK_VERSION_EXTRA=\your\version\suffix

answered 19 Aug '14, 02:22

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

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

(19 Aug '14, 03:16) shishir127

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.

(19 Aug '14, 03:26) grahamb ♦

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

(19 Aug '14, 03:51) shishir127

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 message Can'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.

(19 Aug '14, 04:56) grahamb ♦

1

Reinstalling QT and getting the latest version of the source code solved the problem.

answered 27 Aug '14, 00:20

shishir127's gravatar image

shishir127
16224
accept rate: 0%