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

error MSB3073 building wireshark 2.2.5

0
    72>Done Building Project "D:\Development\msbuild64\wireshark-gtk.vcxproj.metaproj" (default targets).
   140>PostBuildEvent:
         setlocal
         C:\ProgramData\chocolatey\lib\cmake.portable\tools\cmake-3.7.2-win32-x86\bin\cmake.exe -E copy_if_different D:/Development/WireShark/ipmap.html D:/Development/msbuild64/run/RelWithDebInfo
         if %errorlevel% neq 0 goto :cmEnd
         :cmEnd
         endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
         :cmErrorLevel
         exit /b %1
         :cmDone
         if %errorlevel% neq 0 goto :VCEnd
         :VCEnd
       FinalizeBuildStatus:
         Deleting file "wireshark.dir\RelWithDebInfo\wireshark.tlog\unsuccessfulbuild".
         Touching "wireshark.dir\RelWithDebInfo\wireshark.tlog\wireshark.lastbuildstate".
   140>Done Building Project "D:\Development\msbuild64\wireshark.vcxproj" (default targets).
    71>Done Building Project "D:\Development\msbuild64\wireshark.vcxproj.metaproj" (default targets).
     1>Project "D:\Development\msbuild64\Wireshark.sln" (1) is building "D:\Development\msbuild64\copy_qt_dlls.vcxproj.metaproj" (13) on node 1 (default targets).
    13>Project "D:\Development\msbuild64\copy_qt_dlls.vcxproj.metaproj" (13) is building "D:\Development\msbuild64\copy_qt_dlls.vcxproj" (157) on node 2 (default targets).
   157>InitializeBuildStatus:
         Touching "x64\RelWithDebInfo\copy_qt_dlls\copy_qt_dlls.tlog\unsuccessfulbuild".
       CustomBuild:
         All outputs are up-to-date.
       PostBuildEvent:
         setlocal
         set PATH=%PATH%;C:/Qt/Qt5.6.2/5.6/msvc2013_64/bin
         if %errorlevel% neq 0 goto :cmEnd
         C:\Qt\Qt5.6.2\5.6\msvc2013_64\bin\windeployqt.exe  --release --no-compiler-runtime --verbose 10 D:/Development/msbuild64/run/RelWithDebInfo/Wireshark.exe
         if %errorlevel% neq 0 goto :cmEnd
         :cmEnd
         endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
         :cmErrorLevel
         exit /b %1
         :cmDone
         if %errorlevel% neq 0 goto :VCEnd
         :VCEnd
   157>EXEC : warning : Unable to read \cygdrive\c\Qt\Qt5.6.2\5.6\msvc2013_64\mkspecs\qconfig.pri: The system cannot find the path specified. [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
         Unsupported platform cygwin-g++
   157>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "setlocal [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: set PATH=%PATH%;C:/Qt/Qt5.6.2/5.6/msvc2013_64/bin [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: C:\Qt\Qt5.6.2\5.6\msvc2013_64\bin\windeployqt.exe  --release --no-compiler-runtime --verbose 10 D:/Development/msbuild64/run/RelWithDebInfo/Wireshark.exe [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmEnd [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmErrorLevel [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: exit /b %1 [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmDone [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :VCEnd" exited with code 1. [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   157>Done Building Project "D:\Development\msbuild64\copy_qt_dlls.vcxproj" (default targets) -- FAILED.
    13>Done Building Project "D:\Development\msbuild64\copy_qt_dlls.vcxproj.metaproj" (default targets) -- FAILED.
     2>Done Building Project "D:\Development\msbuild64\ALL_BUILD.vcxproj.metaproj" (default targets) -- FAILED.
     1>Done Building Project "D:\Development\msbuild64\Wireshark.sln" (default targets) -- FAILED.

Build FAILED.

   "D:\Development\msbuild64\Wireshark.sln" (default target) (1) ->
   "D:\Development\msbuild64\copy_qt_dlls.vcxproj.metaproj" (default target) (13) ->
   "D:\Development\msbuild64\copy_qt_dlls.vcxproj" (default target) (157) ->
   (PostBuildEvent target) -> 
     EXEC : warning : Unable to read \cygdrive\c\Qt\Qt5.6.2\5.6\msvc2013_64\mkspecs\qconfig.pri: The system cannot find the path specified. [D:\Development\msbuild64\copy_qt_dlls.vcxproj]

   "D:\Development\msbuild64\Wireshark.sln" (default target) (1) ->
   "D:\Development\msbuild64\docbook\developer_guide_chm.vcxproj.metaproj" (default target) (15) ->
   "D:\Development\msbuild64\docbook\developer_guide_chm.vcxproj" (default target) (100) ->
   (CustomBuild target) -> 
     CUSTOMBUILD : I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd [D:\Development\msbuild64\docbook\developer_guide_chm.vcxproj]

   "D:\Development\msbuild64\Wireshark.sln" (default target) (1) ->
   "D:\Development\msbuild64\docbook\release_notes_html.vcxproj.metaproj" (default target) (51) ->
   "D:\Development\msbuild64\docbook\release_notes_html.vcxproj" (default target) (106) ->
     a2x : error : "xmllint" --nonet --noout --valid "/cygdrive/d/Development/msbuild64/docbook/release-notes.xml" returned non-zero exit status 4 [D:\Development\msbuild64\docbook\release_notes_html.vcxproj]

   "D:\Development\msbuild64\Wireshark.sln" (default target) (1) ->
   "D:\Development\msbuild64\docbook\user_guide_chm.vcxproj.metaproj" (default target) (64) ->
   "D:\Development\msbuild64\docbook\user_guide_chm.vcxproj" (default target) (133) ->
     CUSTOMBUILD : I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd [D:\Development\msbuild64\docbook\user_guide_chm.vcxproj]

   "D:\Development\msbuild64\Wireshark.sln" (default target) (1) ->
   "D:\Development\msbuild64\copy_qt_dlls.vcxproj.metaproj" (default target) (13) ->
   "D:\Development\msbuild64\copy_qt_dlls.vcxproj" (default target) (157) ->
   (PostBuildEvent target) -> 
     C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "setlocal [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: set PATH=%PATH%;C:/Qt/Qt5.6.2/5.6/msvc2013_64/bin [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: C:\Qt\Qt5.6.2\5.6\msvc2013_64\bin\windeployqt.exe  --release --no-compiler-runtime --verbose 10 D:/Development/msbuild64/run/RelWithDebInfo/Wireshark.exe [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmEnd [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmErrorLevel [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: exit /b %1 [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmDone [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :VCEnd" exited with code 1. [D:\Development\msbuild64\copy_qt_dlls.vcxproj]

1 Warning(s)
4 Error(s)</code></pre><p><a href="https://drive.google.com/open?id=0B9dMRjnjjypGLWNONW90ci15bEU">msbuilt.txt</a> as the complete Log</p></div><div id="question-tags" class="tags-container tags"><span class="post-tag tag-link-build_error" rel="tag" title="see questions tagged &#39;build_error&#39;">build_error</span> <span class="post-tag tag-link-msbuild" rel="tag" title="see questions tagged &#39;msbuild&#39;">msbuild</span> <span class="post-tag tag-link-wireshark-2.2.5" rel="tag" title="see questions tagged &#39;wireshark-2.2.5&#39;">wireshark-2.2.5</span></div><div id="question-controls" class="post-controls"></div><div class="post-update-info-container"><div class="post-update-info post-update-info-user"><p>asked <strong>31 Mar '17, 02:32</strong></p><img src="https://secure.gravatar.com/avatar/600778689935688cd4eaaa966e880cae?s=32&amp;d=identicon&amp;r=g" class="gravatar" width="32" height="32" alt="DhanuShalz&#39;s gravatar image" /><p><span>DhanuShalz</span><br />

36101115
accept rate: 100%

edited 31 Mar ‘17, 02:47

grahamb's gravatar image

grahamb ♦
19.8k330206


One Answer:

0

You still have the same errors when building the docs as in your previous question, and you now have a new issue where the Qt tool "windeployqt" returns an odd error:

157>EXEC : warning : Unable to read \cygdrive\c\Qt\Qt5.6.2\5.6\msvc2013_64\mkspecs\qconfig.pri: The system cannot find the path specified. [D:\Development\msbuild64\copy_qt_dlls.vcxproj]
     Unsupported platform cygwin-g++

I haven't come accross this error before, can you show the contents of your PATH variable, i.e.

echo %PATH% > path.txt

answered 31 Mar '17, 02:53

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

path.txt

@grahamb

(31 Mar '17, 03:06) DhanuShalz

You have quite a few items on your path that are likely to be causing issues. The ones I noticed are:

  • C:\Qt_qt531-win32\qtbase\bin - this might be the cause of the windeployqt issue
  • C:\cygwin64\bin & C:\cygwin64\lib\qt5\bin - Cygwin and Cygwin QT should NOT be on your path, this also might be the cause of the windeployqt issue.

and you have elements of VS2008 (Visual Studio 9.0) on the path, those should be removed.

There is also no need to have the Wireshark win64-libs-2.2 directory on the path although that shouldn't hurt.

(31 Mar '17, 03:31) grahamb ♦

@grahamb it didn't work, still getting the same error!

(31 Mar '17, 05:02) DhanuShalz

Did you delete CMakeCache.txt in your build directory, or the entire build directory, and then in either case rerun the CMake generation step?

(31 Mar '17, 06:17) grahamb ♦

i have deleted the directory and re-ran it again, but facing the same ERRORS

(31 Mar '17, 06:24) DhanuShalz

As you still seem to have issues with your path, I've backported this change to 2.2 to ensure the required Qt bin directory is added to the front of the path. This should fix the windeployqt issue.

You'll need to update your sources from Git, ensure you have change 959bc4cf (git log 959bc4cf), delete your build dir and re-run cmake and msbuild.

(31 Mar '17, 07:11) grahamb ♦

@grahamb

As you mention i just took the latest git revision

I am facing some new errors on building the fresh source code. the errors are as bleow:

Build FAILED.

   "E:\Development\msbuild\Wireshark.sln" (default target) (1) ->
   "E:\Development\msbuild\epan\dissectors\dissectors.vcxproj.metaproj" (default target) (20) ->
   "E:\Development\msbuild\epan\dissectors\dissectors.vcxproj" (default target) (118) ->
   (ClCompile target) ->
     E:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(434): error C2275: 'guint32' : illegal use of this type as an expression [E:\Development\
   msbuild\epan\dissectors\dissectors.vcxproj]
     E:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(434): error C2146: syntax error : missing ';' before identifier 'response_code' [E:\Devel
   opment\msbuild\epan\dissectors\dissectors.vcxproj]
     E:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(434): error C2065: 'response_code' : undeclared identifier [E:\Development\msbuild\epan\d
   issectors\dissectors.vcxproj]
     E:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(436): error C2065: 'response_code' : undeclared identifier [E:\Development\msbuild\epan\d
   issectors\dissectors.vcxproj]
     E:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(438): error C2065: 'response_code' : undeclared identifier [E:\Development\msbuild\epan\d
   issectors\dissectors.vcxproj]
     E:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(439): error C2065: 'response_code' : undeclared identifier [E:\Development\msbuild\epan\d
   issectors\dissectors.vcxproj]
     E:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(442): error C2065: 'response_code' : undeclared identifier [E:\Development\msbuild\epan\d
   issectors\dissectors.vcxproj]
     E:\Development\wireshark\epan\dissectors\packet-ipv6.c(2093): error C2275: 'guint16' : illegal use of this type as an expression [E:\Development\msb
   uild\epan\dissectors\dissectors.vcxproj]
     E:\Development\wireshark\epan\dissectors\packet-ipv6.c(2093): error C2146: syntax error : missing ';' before identifier 'mapped_port' [E:\Developmen
   t\msbuild\epan\dissectors\dissectors.vcxproj]
     E:\Development\wireshark\epan\dissectors\packet-ipv6.c(2093): error C2065: 'mapped_port' : undeclared identifier [E:\Development\msbuild\epan\dissec
   tors\dissectors.vcxproj]
     E:\Development\wireshark\epan\dissectors\packet-ipv6.c(2104): error C2065: 'mapped_port' : undeclared identifier [E:\Development\msbuild\epan\dissec
   tors\dissectors.vcxproj]

0 Warning(s) 11 Error(s)

Time Elapsed 00:00:05.58

(06 Apr ‘17, 02:55) DhanuShalz

Still seems to be issues with the definitions of guint32 and guint16 in a very similar manner to this question.

As I noted there I can’t see why that is failing.

Can you post the earlier errors from the build file where the actual compile commands are of packet-usb-i1d3 and packet-ipv6.c?

(06 Apr ‘17, 03:24) grahamb ♦

reached till a point were im facing the MSB3073 error:

the cmake log and msbuild log is below

cmake

msbuild

(06 Apr ‘17, 06:51) DhanuShalz

You build is still failing to run windeployqt:

161>EXEC : warning : Unable to read \Qt\Qt5.6.2\5.6\msvc2013_64\mkspecs\qconfig.pri: The system cannot find the path specified. [F:\Development\msbuild\copy_qt_dlls.vcxproj]
Unsupported platform cygwin-g++

And I can see from the build output that you’re not using the current source as the setup to run windeployqt is using the older version that adds the Qt bin directory to the end of the path instead of at the front as the latest source does:

set PATH=%PATH%;C:/Qt/Qt5.6.2/5.6/msvc2013_64/bin

Please update your source tree to the latest master-2.2, re-run CMake and then rebuild.

(06 Apr ‘17, 07:24) grahamb ♦

Re-installation of QT resolved the error

(07 Apr ‘17, 06:45) DhanuShalz
showing 5 of 11 show 6 more comments