Wireshark-dev: [Wireshark-dev] Building latest Wireshark using VS2013

From: Andreas <AndreasSander1@xxxxxxx>
Date: Thu, 22 Dec 2016 15:30:32 +0100
Hi,

I would like to compile Wireshark for 64 bit at my computer. The OS is
Windows 10, 64 bit. I have VS2013 Premium installed. Reading the WSDG at
https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html I've
done these steps:

-----
cd C:\Users\AS\Documents\Projects\Wireshark\Source
git clone https://code.wireshark.org/review/wireshark
-----
rem Build as described in "Wireshark Soure Setup Guide"
set CYGWIN=nodosfilewarning
rem set WIRESHARK_BASE_DIR=C:\Development or set WIRESHARK_LIB_DIR to
the appropriate library directory for your build.
set
WIRESHARK_BASE_DIR=C:\Users\AS\Documents\Projects\Wireshark\Source\wireshark
set WIRESHARK_TARGET_PLATFORM=win64
set QT5_BASE_DIR=C:\Qt\Qt5.7.1\5.7\msvc2013_64
set WIRESHARK_VERSION_EXTRA=-Andreas
set WIRESHARK_CYGWIN_INSTALL_PATH=c:\cygwin64
rem 2. Create and change to the correct build directory.
cd \Users\AS\Documents\Projects\Wireshark\Source
rem Prepare clean build directory.
rd /q/s msbuild32 2>nul
mkdir msbuild32
cd msbuild32
cmake -DENABLE_CHM_GUIDES=on -G "Visual Studio 12 2013 Win64" ..\wireshark
msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln
cd ..
-----------------------

The cmake phase is successful as this excerpt from the build log shows:

-- Using C:\Program Files/Common Files/Merge
Modules/Microsoft_VC120_CRT_x64.msm for the installer
-- Configuring done
-- Generating done
-- Build files have been written to:
C:/Users/AS/Documents/Projects/Wireshark/Source/msbuild32

But the msbuild phase is not succesful:

generate_user-guide.xml.vcxproj
-> error MSB6006: "cmd.exe" wurde mit dem Code 9009 beendet.

generate_developer-guide.xml.vcxproj
-> error MSB6006: "cmd.exe" wurde mit dem Code 9009 beendet.

release_notes_html.vcxproj
-> error MSB6006: "cmd.exe" wurde mit dem Code 9009 beendet.

dissectors.vcxproj
-> packet-ipv6.c(2105): error C2275: 'guint16' : illegal use of this
type as an expression
-> packet-ipv6.c(2105): error C2146: syntax error : missing ';' before
identifier 'mapped_port'
-> packet-ipv6.c(2105): error C2065: 'mapped_port' : undeclared identifier
-> packet-ipv6.c(2116): error C2065: 'mapped_port' : undeclared identifier

Similar errors are in packet-usb-i1d3.c. All in all 14 errors.

Should the head of the repository be ready to compile or should I get
any specific branch?

Regards
Andreas