Wireshark-dev: Re: [Wireshark-dev] building errors for wireshark

From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Date: Mon, 1 Feb 2016 15:38:45 +0000


On 1 February 2016 at 15:30, Tengfei Chang <tengfei.chang@xxxxxxxxx> wrote:
Dear all,

Recently I am trying to build my own wireshark. I followed with the tutorial here: https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html

Everything works fine before I build it, where I got tons of errors. All the errors seem point to this file: C:\Development\wsbuild64\ui\qt\qtui.vcxproj

This is my setting:
set CYGWIN=nodosfilewarning
set WIRESHARK_BASE_DIR=C:\Development
set WIRESHARK_TARGET_PLATFORM=win64
set QT5_BASE_DIR=C:\Qt\5.5\msvc2013_64
set WIRESHARK_VERSION_EXTRA=-tengfei
cd C:\Development\wsbuild64
cmake -DENABLE_CHM_GUIDES=on -G "Visual Studio 12 Win64" ..\wireshark


Following are the part of the erros when I excute 
msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln

(there are too many of them so I just past part of them, but if you see the error information, all goes this file: C:\Development\wsbuild64\ui\qt\qtui.vcxproj)
...
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(103): error C227
 0: 'expandingDirections' : modifiers not allowed on nonmember functions
 (C:\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Developm
 ent\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(108): error C206
 5: 'bits' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(108): error C222
 8: left of '.hfw' must have class/struct/union (C:\Development\wireshark
 \ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.
 vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(109): error C227
 0: 'hasHeightForWidth' : modifiers not allowed on nonmember functions (C
 :\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Developmen
 t\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(109): error C206
 5: 'bits' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(109): error C222
 8: left of '.hfw' must have class/struct/union (C:\Development\wireshark
 \ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.
 vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(110): error C206
 5: 'bits' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(110): error C222
 8: left of '.wfh' must have class/struct/union (C:\Development\wireshark
 \ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.
 vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(111): error C227
 0: 'hasWidthForHeight' : modifiers not allowed on nonmember functions (C
 :\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Developmen
 t\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(111): error C206
 5: 'bits' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(111): error C222
 8: left of '.wfh' must have class/struct/union (C:\Development\wireshark
 \ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.
 vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(113): error C443
 0: missing type specifier - int assumed. Note: C++ does not support defa
 ult-int (C:\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\
 Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(113): error C214
 3: syntax error : missing ',' before '&' (C:\Development\wireshark\ui\qt
 \wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxpro
 j]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(113): error C227
 0: '==' : modifiers not allowed on nonmember functions (C:\Development\w
 ireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\
 qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(113): error C280
 3: 'operator ==' must have at least one formal parameter of class type (
 C:\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Developme
 nt\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(113): error C280
 5: binary 'operator ==' has too few parameters (C:\Development\wireshark
 \ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.
 vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(113): error C206
 5: 'data' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(113): error C206
 5: 's' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_stat
 istics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(113): error C222
 8: left of '.data' must have class/struct/union (C:\Development\wireshar
 k\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui
 .vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(114): error C443
 0: missing type specifier - int assumed. Note: C++ does not support defa
 ult-int (C:\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\
 Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(114): error C214
 3: syntax error : missing ',' before '&' (C:\Development\wireshark\ui\qt
 \wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxpro
 j]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(114): error C227
 0: '!=' : modifiers not allowed on nonmember functions (C:\Development\w
 ireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\
 qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(114): error C280
 3: 'operator !=' must have at least one formal parameter of class type (
 C:\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Developme
 nt\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(114): error C280
 5: binary 'operator !=' has too few parameters (C:\Development\wireshark
 \ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.
 vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(114): error C206
 5: 'data' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(114): error C206
 5: 's' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_stat
 istics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(114): error C222
 8: left of '.data' must have class/struct/union (C:\Development\wireshar
 k\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui
 .vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(115): error C227
 0: '.?AVQVariant@@' : modifiers not allowed on nonmember functions (C:\D
 evelopment\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\w
 sbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(115): error C280
 1: 'operator QVariant' must be a non-static member (C:\Development\wires
 hark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\q
 tui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(117): error C227
 0: 'horizontalStretch' : modifiers not allowed on nonmember functions (C
 :\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Developmen
 t\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(117): error C206
 5: 'bits' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(117): error C222
 8: left of '.horStretch' must have class/struct/union (C:\Development\wi
 reshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\q
 t\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(118): error C227
 0: 'verticalStretch' : modifiers not allowed on nonmember functions (C:\
 Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\
 wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(118): error C206
 5: 'bits' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(118): error C222
 8: left of '.verStretch' must have class/struct/union (C:\Development\wi
 reshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\q
 t\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(119): error C206
 5: 'bits' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(119): error C222
 8: left of '.horStretch' must have class/struct/union (C:\Development\wi
 reshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\q
 t\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(120): error C206
 5: 'bits' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(120): error C222
 8: left of '.verStretch' must have class/struct/union (C:\Development\wi
 reshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\q
 t\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(122): error C227
 0: 'retainSizeWhenHidden' : modifiers not allowed on nonmember functions
  (C:\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Develop
 ment\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(122): error C206
 5: 'bits' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(122): error C222
 8: left of '.retainSizeWhenHidden' must have class/struct/union (C:\Deve
 lopment\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbu
 ild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(123): error C206
 5: 'bits' : undeclared identifier (C:\Development\wireshark\ui\qt\wlan_s
 tatistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(123): error C222
 8: left of '.retainSizeWhenHidden' must have class/struct/union (C:\Deve
 lopment\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbu
 ild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(128): error C205
 9: syntax error : 'private' (C:\Development\wireshark\ui\qt\wlan_statist
 ics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(130): error C225
 5: 'friend' : not allowed outside of a class definition (C:\Development\
 wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui
 \qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(130): error C214
 3: syntax error : missing ';' before '&' (C:\Development\wireshark\ui\qt
 \wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxpro
 j]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(130): error C207
 9: 'QDataStream' uses undefined class 'Q_WIDGETS_EXPORT' (C:\Development
 \wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\u
 i\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(130): error C205
 9: syntax error : ',' (C:\Development\wireshark\ui\qt\wlan_statistics_di
 alog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(131): error C225
 5: 'friend' : not allowed outside of a class definition (C:\Development\
 wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui
 \qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(131): error C214
 3: syntax error : missing ';' before '&' (C:\Development\wireshark\ui\qt
 \wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxpro
 j]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(131): error C207
 9: 'QDataStream' uses undefined class 'Q_WIDGETS_EXPORT' (C:\Development
 \wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\u
 i\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(131): error C208
 6: 'int QDataStream' : redefinition (C:\Development\wireshark\ui\qt\wlan
 _statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(131): error C205
 9: syntax error : ',' (C:\Development\wireshark\ui\qt\wlan_statistics_di
 alog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(133): error C443
 0: missing type specifier - int assumed. Note: C++ does not support defa
 ult-int (C:\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\
 Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(133): error C236
 5: 'QSizePolicy' : redefinition; previous definition was 'data variable'
  (C:\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Develop
 ment\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(133): error C255
 0: 'QSizePolicy' : constructor initializer lists are only allowed on con
 structor definitions (C:\Development\wireshark\ui\qt\wlan_statistics_dia
 log.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(148): error C264
 6: an anonymous union at global or namespace scope must be declared stat
 ic (C:\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Devel
 opment\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(149): error C205
 9: syntax error : '}' (C:\Development\wireshark\ui\qt\wlan_statistics_di
 alog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(149): error C214
 3: syntax error : missing ';' before '}' (C:\Development\wireshark\ui\qt
 \wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxpro
 j]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C282
 5: 'QSizePolicy': must be a class or namespace when followed by '::' (C:
 \Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development
 \wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C214
 3: syntax error : missing ',' before 'QFlags<ControlType>::enum_type' (C
 :\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Developmen
 t\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C297
 7: 'QFlags' : too many template arguments (C:\Development\wireshark\ui\q
 t\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxpr
 oj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C214
 3: syntax error : missing ')' before 'QFlags<ControlType>::enum_type' (C
 :\Development\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Developmen
 t\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C243
 3: '|' : 'inline' not permitted on data declarations (C:\Development\wir
 eshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt
 \qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C236
 5: 'operator |' : redefinition; previous definition was 'function' (C:\D
 evelopment\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\w
 sbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C255
 0: '??__E|@@YAXXZ' : constructor initializer lists are only allowed on c
 onstructor definitions (C:\Development\wireshark\ui\qt\wlan_statistics_d
 ialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C251
 4: 'QFlags' : class has no constructors (C:\Development\wireshark\ui\qt\
 wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj
 ]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C205
 9: syntax error : ')' (C:\Development\wireshark\ui\qt\wlan_statistics_di
 alog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C214
 3: syntax error : missing ';' before '{' (C:\Development\wireshark\ui\qt
 \wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxpro
 j]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C244
 7: '{' : missing function header (old-style formal list?) (C:\Developmen
 t\wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\
 ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(155): error C205
 9: syntax error : '}' (C:\Development\wireshark\ui\qt\wlan_statistics_di
 alog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(159): error C214
 3: syntax error : missing ';' before '&' (C:\Development\wireshark\ui\qt
 \wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxpro
 j]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(159): error C207
 9: 'QDataStream' uses undefined class 'Q_WIDGETS_EXPORT' (C:\Development
 \wireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\u
 i\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(159): error C208
 6: 'int QDataStream' : redefinition (C:\Development\wireshark\ui\qt\wlan
 _statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(159): error C205
 9: syntax error : ',' (C:\Development\wireshark\ui\qt\wlan_statistics_di
 alog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(163): error C214
 3: syntax error : missing ';' before '<<' (C:\Development\wireshark\ui\q
 t\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\qt\qtui.vcxpr
 oj]
   C:\Qt\5.5\msvc2013_64\include\QtWidgets/qsizepolicy.h(163): fatal erro
 r C1003: error count exceeds 100; stopping compilation (C:\Development\w
 ireshark\ui\qt\wlan_statistics_dialog.cpp) [C:\Development\wsbuild64\ui\
 qt\qtui.vcxproj]


Are you using a git clone and the master branch, some other branch or a tarball?  Have you made any modifications to the sources?

Can you post the output of the CMake generation step, e.g. CMake -G ... 2&>1 > cmake.txt.

--
Graham Bloice