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

I was trying to build the 1.11.3 development release from source (not from git but from the tarball in Download section of main web page) on Windows 7. I followed instructions in Win32/64: Step-by-Step Guide.

Verify_tools went well:

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/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
    C:\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\bin\qmake: /cygdrive/c/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/bin/qmake
    sed: /usr/bin/sed
    unzip: /usr/bin/unzip
    wget: /usr/bin/wget

nmake setup and distclean went well.

Build started OK and went for a long time. Then I suddenly got the prompt back with no declaration of either a success or a failure. I went to C drive and there is no wireshark directory created.

Here is a bit of the screen right before I got the prompt back:

C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\pibs\UMTS-PIB C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\pibs\UMTS-PIB-orig 38 File(s) copied xcopy "C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\yang*.yan g" wireshark-gtk2\snmp\mibs /d C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\yang\ietf-inet-types.yang

C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\yang\ietf-netconf-monitor ing.yang C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\yang\ietf-yang-types.yang

3 File(s) copied xcopy "C:\Wireshark-win32-libs\GeoIP-1.5.1-2-win32ws\bin\libGeoip-1.dll" wireshark-gtk2 /d C:\Wireshark-win32-libs\GeoIP-1.5.1-2-win32ws\bin\libGeoIP-1.dll 1 File(s) copied xcopy "C:\Wireshark-win32-libs\WinSparkle-0.3-44-g2c8d9d3-win32ws\WinSpa rkle.dll" wireshark-gtk2 /d C:\Wireshark-win32-libs\WinSparkle-0.3-44-g2c8d9d3-win32ws\WinSparkle.dll 1 File(s) copied cd wireshark-gtk2 peflags --dynamicbase=true --nxcompat=true .dll peflags --dynamicbase=true --nxcompat=true lib/gtk-2.0//engines/.dll peflags --dynamicbase=true --nxcompat=true lib/gtk-2.0/modules/.dll cd ..

What's going on?

asked 17 Apr '14, 10:57

YXI's gravatar image

YXI
21182023
accept rate: 0%

If you rerun nmake you might get a clearer error indication.

(17 Apr '14, 11:37) Anders ♦

Just ran again, got the same result:

0 File(s) copied
        xcopy "C:\Wireshark-win32-libs\lua5.2.3\lua52.dll" wireshark-gtk2 /d
 0 File(s) copied
        if not exist wireshark-gtk2\snmp mkdir wireshark-gtk2\snmp
        if not exist wireshark-gtk2\snmp\mibs mkdir wireshark-gtk2\snmp\mibs
        xcopy "C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\bin\libsmi-2.dll" wireshark-gtk2 /d
 0 File(s) copied
            xcopy "C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\mibs\iana\*" wireshark-gtk2\snmp\mibs /d
 0 File(s) copied
        xcopy "C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\mibs\ietf\*" wireshark-gtk2\snmp\mibs /d
 0 File(s) copied
        xcopy "C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\mibs\irtf\*" wireshark-gtk2\snmp\mibs /d
 0 File(s) copied
        xcopy "C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\mibs\site\*" wireshark-gtk2\snmp\mibs /d
 0 File(s) copied
        xcopy "C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\mibs\tubs\*" wireshark-gtk2\snmp\mibs /d
 0 File(s) copied
        xcopy "C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\pibs\*" wireshark-gtk2\snmp\mibs /d
 0 File(s) copied
        xcopy "C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\yang\*.yang" wireshark-gtk2\snmp\mibs /d
 0 File(s) copied
        xcopy "C:\Wireshark-win32-libs\GeoIP-1.5.1-2-win32ws\bin\libGeoip-1.dll" wireshark-gtk2 /d
 0 File(s) copied
        xcopy "C:\Wireshark-win32-libs\WinSparkle-0.3-44-g2c8d9d3-win32ws\WinSparkle.dll" wireshark-gtk2 /d
 0 File(s) copied
        cd wireshark-gtk2
        peflags --dynamicbase=true --nxcompat=true *.dll
        peflags --dynamicbase=true --nxcompat=true lib/gtk-2.0/*/engines/*.dll
        peflags --dynamicbase=true --nxcompat=true lib/gtk-2.0/modules/*.dll
        cd ..
(17 Apr '14, 12:09) YXI

Maybe this build is not supposed to use nmake. I think it has both GTK+ and Qt, maybe this is beyond the ability of the nmake file in there? Well, I deleted QT5_BASE_DIR environmental variable and re-setup and rebuild, and I got premature build termination with no error again. Although this time it stopped at a different point.

 C:\Wireshark-win32-libs\libsmi-svn-40773-win32ws\share\yang\ietf-yang-types.yang
 3 File(s) copied
        xcopy "C:\Wireshark-win32-libs\GeoIP-1.5.1-2-win32ws\bin\libGeoip-1.dll" wireshark-gtk2 /d
 C:\Wireshark-win32-libs\GeoIP-1.5.1-2-win32ws\bin\libGeoIP-1.dll
 1 File(s) copied
        xcopy "C:\Wireshark-win32-libs\WinSparkle-0.3-44-g2c8d9d3-win32ws\WinSparkle.dll" wireshark-gtk2 /d
 C:\Wireshark-win32-libs\WinSparkle-0.3-44-g2c8d9d3-win32ws\WinSparkle.dll
 1 File(s) copied
        cd wireshark-gtk2
        peflags --dynamicbase=true --nxcompat=true *.dll
        peflags --dynamicbase=true --nxcompat=true lib/gtk-2.0/*/engines/*.dll
        peflags --dynamicbase=true --nxcompat=true lib/gtk-2.0/modules/*.dll
        cd ..
(17 Apr '14, 12:11) YXI

OK, rebuild with Qt5_BASE_DIR defined. GTK+ executable is still good. See a wireshark-qt-release directory but no executable in it. My assumption is Qt version wireshark actually need one more step to build, as explained in README.qt.

(17 Apr '14, 15:09) YXI

Are you really sure your compilation failed? Did you check the content of your wireshark-gtk2 subfolder?

permanent link

answered 17 Apr '14, 14:16

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%

You are right!
I was following the directions in the step by step guide and it says to check C:\wireshark\wireshark-gtk2 directory for the executable. I couldn't find it and since my build didn't say success I just assumed something went wrong. Now I went to the directory where the build was carried out, there it is the wireshark-gtk2 directory with the executable in it!
Thank you so much!!
Then my first build with Qt included worked too then. I will check.

(17 Apr '14, 14:26) YXI

I've converted Pascal's comment to an answer as it seems to fit the bill. @YXI, can you accept the answer by clicking the checkmark icon on it for the benefit of others.

(18 Apr '14, 01:46) grahamb ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×193
×110
×23
×1

question asked: 17 Apr '14, 10:57

question was seen: 2,304 times

last updated: 18 Apr '14, 19:15

p​o​w​e​r​e​d by O​S​Q​A