I have followed the guide here https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html and CMake almost succeeds. Below is the output. What am I missing to make this work?
C:\Dev\builds\wireshark>cmake -G "Visual Studio 16 2019" -A x64 ....\wireshark -- The C compiler identification is MSVC 19.27.29111.0 -- The CXX compiler identification is MSVC 19.27.29111.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Generating build using CMake 3.17.20032601-MSVC_2 -- LTO/IPO is enabled -- Found PowerShell: C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -- Building for win64 using Visual Studio 16 2019 Working in C:\Dev\wireshark\wireshark-win64-libs Tag 2020-08-09 found. Skipping. -- CMake build type: RelWithDebInfo -- V: 3.3.0, MaV: 3, MiV: 3, PL: 0, EV: . -- Performing Test C_Qspectre_VALID -- Performing Test C_Qspectre_VALID - Failed -- Performing Test CXX_Qspectre_VALID -- Performing Test CXX_Qspectre_VALID - Failed -- Linker flags: /LARGEADDRESSAWARE /MANIFEST:NO /INCREMENTAL:NO /RELEASE /guard:cf -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.28.0.windows.1") -- Found GLIB2: debug;C:/Dev/wireshark/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/debug/lib/glib-2.0.lib;optimized;C:/Dev/wireshark/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/lib/glib-2.0.lib (found suitable version "2.52.3", minimum required is "2.32.0") -- Found GMODULE2: debug;C:/Dev/wireshark/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/debug/lib/gmodule-2.0.lib;optimized;C:/Dev/wireshark/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/lib/gmodule-2.0.lib -- Found GTHREAD2: debug;C:/Dev/wireshark/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/debug/lib/gthread-2.0.lib;optimized;C:/Dev/wireshark/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/lib/gthread-2.0.lib -- Found GCRYPT: C:/Dev/wireshark/wireshark-win64-libs/libgcrypt-1.8.3-win64ws/bin/libgcrypt-20.lib (found suitable version "1.8.3", minimum required is "1.4.2") -- Found CARES: C:/Dev/wireshark/wireshark-win64-libs/c-ares-1.15.0-win64ws/installed/x64-windows/lib/cares.lib (found suitable version "1.15.0", minimum required is "1.5.0") -- Found LEX: C:/ProgramData/chocolatey/bin/win_flex.exe -- Found YACC: C:/ProgramData/chocolatey/bin/win_bison.exe -- Found Perl: C:/Strawberry/perl/bin/perl.exe (found version "5.32.0") -- Found Python3: C:/Python38/python.exe (found suitable version "3.8.6", minimum required is "3.4") found components: Interpreter -- Found LIBSSH: C:/Dev/wireshark/wireshark-win64-libs/libssh-0.7.3-win64ws/lib/ssh.lib (found suitable version "0.7.3", minimum required is "0.6") -- Found PCAP: C:/Dev/wireshark/wireshark-win64-libs/libpcap-1.9.1-1-win64ws/installed/x64-windows/include -- Found AIRPCAP: C:/Dev/wireshark/wireshark-win64-libs/AirPcap_Devpack_4_1_0_1622/Airpcap_Devpack/lib/airpcap.lib -- Found MaxMindDB: C:/Dev/wireshark/wireshark-win64-libs/MaxMindDB-1.3.2-win64ws/lib/libmaxminddb-0.lib -- Found SMI: C:/Dev/wireshark/wireshark-win64-libs/libsmi-svn-40773-win64ws/lib/libsmi-2.lib -- Found GNUTLS: C:/Dev/wireshark/wireshark-win64-libs/gnutls-3.6.3-1-win64ws/bin/libgnutls-30.lib (found suitable version "3.6.3", minimum required is "3.2.0") -- Found KERBEROS: C:/Dev/wireshark/wireshark-win64-libs/krb5-1.17-1-win64ws/installed/x64-windows/lib/krb5_64.lib -- Looking for heimdal_version -- Looking for heimdal_version - not found -- Looking for krb5_pac_verify -- Looking for krb5_pac_verify - found -- Looking for krb5_c_fx_cf2_simple -- Looking for krb5_c_fx_cf2_simple - found -- Found PkgConfig: C:/Strawberry/perl/bin/pkg-config (found version "") -- Checking for one of the modules 'zlib' -- Found ZLIB: C:/Dev/wireshark/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/lib/zlib.lib -- Found Minizip: C:/Dev/wireshark/wireshark-win64-libs/minizip-1.2.11-4-win64ws/installed/x64-windows/lib/minizip.lib -- Found BROTLI: C:/Dev/wireshark/wireshark-win64-libs/brotli-1.0.2-4-win64ws/installed/x64-windows/lib/brotlidec.lib -- Found LZ4: C:/Dev/wireshark/wireshark-win64-libs/lz4-1.8.3-win64ws/installed/x64-windows/lib/lz4.lib -- Looking for lz4frame.h -- Looking for lz4frame.h - found -- Found SNAPPY: C:/Dev/wireshark/wireshark-win64-libs/snappy-1.1.3-win64ws/lib/snappy.lib -- Found ZSTD: C:/Dev/wireshark/wireshark-win64-libs/zstd-1.4.0-win64ws/installed/x64-windows/lib/zstd.lib (found suitable version "1.4.0", minimum required is "1.0.0") -- Found NGHTTP2: C:/Dev/wireshark/wireshark-win64-libs/nghttp2-1.39.2-win64ws/installed/x64-windows/lib/nghttp2.lib -- Found LUA: C:/Dev/wireshark/wireshark-win64-libs/lua-5.2.4-unicode-win64-vc14/lua52.lib (found suitable version "502", minimum required is "5.1") -- Found SBC: C:/Dev/wireshark/wireshark-win64-libs/sbc-1.3-win64ws/lib/sbc.lib -- Found SPANDSP: C:/Dev/wireshark/wireshark-win64-libs/spandsp-0.0.6-win64ws/lib/spandsp.lib -- Found BCG729: C:/Dev/wireshark/wireshark-win64-libs/bcg729-1.0.4-win64ws/lib/bcg729.lib -- Looking for WebRtcIlbcfix_DecoderCreate -- Looking for WebRtcIlbcfix_DecoderCreate - found -- Found ILBC: C:/Dev/wireshark/wireshark-win64-libs/libilbc-2.0.2-3-win64ws/lib/libilbc.lib -- Found LibXml2: C:/Dev/wireshark/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/lib/libxml2.lib (found version "2.9.9") -- Found WinSparkle: C:/Dev/wireshark/wireshark-win64-libs/WinSparkle-0.5.7/x64/Release/WinSparkle.lib -- Could NOT find Asciidoctor (missing: ASCIIDOCTOR_EXECUTABLE) (Required is at least version "1.5") -- Found POD: C:/Strawberry/perl/bin/pod2man.bat -- Could NOT find DOXYGEN (missing: DOXYGEN_EXECUTABLE) -- Could NOT find SpeexDSP (missing: SPEEXDSP_LIBRARY SPEEXDSP_INCLUDE_DIR) (found version "") -- Looking for gnutls_pkcs11_obj_list_import_url4 -- Looking for gnutls_pkcs11_obj_list_import_url4 - found -- Looking for arpa/inet.h -- Looking for arpa/inet.h - not found -- Looking for getopt.h -- Looking for getopt.h - not found -- Looking for grp.h -- Looking for grp.h - not found -- Looking for include files sys/types.h, ifaddrs.h -- Looking for include files sys/types.h, ifaddrs.h - not found -- Looking for netinet/in.h -- Looking for netinet/in.h - not found -- Looking for netdb.h -- Looking for netdb.h - not found -- Looking for pwd.h -- Looking for pwd.h - not found -- Looking for sys/ioctl.h -- Looking for sys/ioctl.h - not found -- Looking for sys/select.h -- Looking for sys/select.h - not found -- Looking for sys/socket.h -- Looking for sys/socket.h - not found -- Looking for sys/sockio.h -- Looking for sys/sockio.h - not found -- Looking for sys/time.h -- Looking for sys/time.h - not found -- Looking for sys/utsname.h -- Looking for sys/utsname.h - not found -- Looking for sys/wait.h -- Looking for sys/wait.h - not found -- Looking for unistd.h -- Looking for unistd.h - not found -- Looking for getopt_long -- Looking for getopt_long - not found -- Looking for alloca.h -- Looking for alloca.h - not found -- Looking for getifaddrs -- Looking for getifaddrs - not found -- Looking for issetugid -- Looking for issetugid - not found -- Looking for mkstemps -- Looking for mkstemps - not found -- Looking for setresgid -- Looking for setresgid - not found -- Looking for setresuid -- Looking for setresuid - not found -- Looking for strptime -- Looking for strptime - not found -- Performing Test HAVE_STRUCT_SOCKADDR_SA_LEN -- Performing Test HAVE_STRUCT_SOCKADDR_SA_LEN - Failed -- Performing Test HAVE_STRUCT_STAT_ST_FLAGS -- Performing Test HAVE_STRUCT_STAT_ST_FLAGS - Failed -- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE -- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE - Failed -- Performing Test HAVE_STRUCT_STAT_ST_BIRTHTIME -- Performing Test HAVE_STRUCT_STAT_ST_BIRTHTIME - Failed -- Performing Test HAVE_STRUCT_STAT___ST_BIRTHTIME -- Performing Test HAVE_STRUCT_STAT___ST_BIRTHTIME - Failed -- Performing Test HAVE_STRUCT_TM_TM_ZONE -- Performing Test HAVE_STRUCT_TM_TM_ZONE - Failed -- Looking for tzname -- Looking for tzname - not found -- Could NOT find Asciidoctor (missing: ASCIIDOCTOR_EXECUTABLE) (Required is at least version "1.5") -- Strawberry xsltproc found at C:/Strawberry/c/bin/xsltproc.exe. Ignoring. -- Could NOT find XSLTPROC (missing: XSLTPROC_EXECUTABLE) -- Found HTMLHelp: C:/Program Files (x86)/HTML Help Workshop/hhc.exe -- Found python module asn2wrs: C:\Dev\wireshark\tools\asn2wrs.py -- Looking for ssh_userauth_agent -- Looking for ssh_userauth_agent - not found -- Looking for emmintrin.h -- Looking for emmintrin.h - found -- Looking for nmmintrin.h -- Looking for nmmintrin.h - found -- Found python module make-plugin-reg: C:\Dev\wireshark\tools\make-plugin-reg.py -- _fseeki64 and _ftelli64 are present -- C-Flags: /MP /Zo /utf-8 /guard:cf /w34295 /w34100 /w34189 /wd4200 /DWIN32 /D_WINDOWS /W3 /MD /Zi /O2 /Ob1 /DNDEBUG -- CXX-Flags: /MP /Zo /utf-8 /guard:cf /w34295 /w34100 /w34189 /wd4200 /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MD /Zi /O2 /Ob1 /DNDEBUG -- Warnings as errors enabled: /WX -- The following OPTIONAL packages have been found:
- Git
- GMODULE2
- LIBSSH (required version >= 0.6), Library for implementing SSH clients, https://www.libssh.org/ extcap remote SSH interfaces (sshdump, ciscodump)
- PCAP
- AIRPCAP
- MaxMindDB, C library for the MaxMind DB file format, https://github.com/maxmind/libmaxminddb Support for GeoIP lookup
- SMI
- GNUTLS (required version >= 3.2.0)
- KERBEROS
- ZLIB
- Minizip, C library for supporting zip/unzip functionality, https://www.winimage.com/zLibDll/minizip.html Support for profiles import/export
- BROTLI
- LZ4, LZ4 is lossless compression algorithm used in some protocol (CQL...), http://www.lz4.org LZ4 decompression in CQL and Kafka dissectors
- SNAPPY, A fast compressor/decompressor from Google, https://google.github.io/snappy/ Snappy decompression in CQL and Kafka dissectors
- ZSTD (required version >= 1.0.0), A compressor/decompressor from Facebook providing better compression than Snappy at a cost of speed, https://facebook.github.io/zstd/ Zstd decompression in Kafka dissector
- NGHTTP2, HTTP/2 C library and tools, https://nghttp2.org Header decompression in HTTP2
- LUA (required version >= 5.1)
- SBC, Bluetooth low-complexity, subband codec (SBC) decoder, https://git.kernel.org/pub/scm/bluetooth/sbc.git Support for playing SBC codec in RTP player
- SPANDSP, a library of many DSP functions for telephony, https://www.soft-switch.org Support for G.722 and G.726 codecs in RTP player
- BCG729, G.729 decoder, https://www.linphone.org/technical-corner/bcg729/overview Support for G.729 codec in RTP player
- ILBC, iLBC decoder, https://github.com/TimothyGu/libilbc Support for iLBC codec in RTP player
- LibXml2
- WinSparkle
- HTMLHelp
-- The following REQUIRED packages have been found:
- PowerShell
- GLIB2 (required version >= 2.32.0)
- GTHREAD2
- GCRYPT (required version >= 1.4.2)
- CARES (required version >= 1.5.0), Library for asynchronous DNS requests, https://c-ares.haxx.se/ DNS name resolution for captures
- LEX
- YACC
- Perl
- Python3 (required version >= 3.4)
- Qt5Core
- Qt5LinguistTools
- Qt5Network (required version >= 5.12.9)
- Qt5Gui (required version >= 5.12.9)
- Qt5Multimedia
- Qt5PrintSupport
- Qt5Widgets
- Qt5WinExtras
- POD
-- The following OPTIONAL packages have not been found:
- DOXYGEN
- SpeexDSP, SpeexDSP is a patent-free, Open Source/Free Software DSP library, https://www.speex.org/ RTP audio resampling
- Asciidoctor (required version >= 1.5)
- XSLTPROC
-- Configuring done CMake Error in epan/CMakeLists.txt: Target "epan" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"C:/Dev/wireshark/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/include"
which is prefixed in the source directory.
CMake Error in epan/CMakeLists.txt: Target "epan" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"C:/Dev/wireshark/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/include"
which is prefixed in the source directory.
CMake Error in wsutil/CMakeLists.txt: Target "wsutil" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"C:/Dev/wireshark/wireshark-win64-libs/libgcrypt-1.8.3-win64ws/include"
which is prefixed in the source directory.
CMake Error in wsutil/CMakeLists.txt: Target "wsutil" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"C:/Dev/wireshark/wireshark-win64-libs/gnutls-3.6.3-1-win64ws/include"
which is prefixed in the source directory.
-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly.