Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Errors building on Windows

I am coming back to building and debugging Wireshark after a while and cannot get it to build any more. I had no problem previously but the build method seems to have changed again. I followed the instructions here but can't get CMake to set up properly:

cmake -G "Visual Studio 15 2017 Win64" ..\wireshark
-- The C compiler identification is MSVC 19.16.27027.1
-- The CXX compiler identification is MSVC 19.16.27027.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/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.10.1
-- Found POWERSHELL: C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
-- Building for win64 using Visual Studio 15 2017 Win64
Working in C:\Users\robcra01\Documents\WiresharkUM\Clean\wireshark-win64-libs
Tag 2019-07-17 found. Skipping.
-- CMake build type: RelWithDebInfo
-- V: 3.1.1-Arm, MaV: 3, MiV: 1, PL: 1, EV: -Arm.
-- Performing Test C_Qspectre_VALID
-- Performing Test C_Qspectre_VALID - Success
-- Performing Test CXX_Qspectre_VALID
-- Performing Test CXX_Qspectre_VALID - Success
-- Linker flags: /LARGEADDRESSAWARE /MANIFEST:NO /INCREMENTAL:NO /RELEASE /guard:cf
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.21.0.windows.1")
-- Found GLIB2: C:/Users/robcra01/Documents/WiresharkUM/Clean/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: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/lib/gmodule-2.0.lib
-- Found GTHREAD2: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/lib/gthread-2.0.lib
-- Found GCRYPT: C:/Users/robcra01/Documents/WiresharkUM/Clean/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 LEX: C:/Program Files/win_flex_bison/win_flex.exe
-- Found YACC: C:/Program Files/win_flex_bison/win_bison.exe
-- Found Perl: C:/cygwin64/bin/perl.exe (found version "5.26.3")
-- Found PythonInterp: C:/Users/robcra01/AppData/Local/Programs/Python/Python37/python.exe (found suitable version "3.7.2", minimum required is "3.4")
-- Found LIBSSH: C:/Users/robcra01/Documents/WiresharkUM/Clean/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:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/WpdPack/Lib/x64/wpcap.lib
-- Looking for pcap_get_selectable_fd
-- Looking for pcap_get_selectable_fd - not found
-- Looking for pcap_set_tstamp_precision
-- Looking for pcap_set_tstamp_precision - not found
-- Looking for pcap_set_tstamp_type
-- Looking for pcap_set_tstamp_type - not found
-- Found AIRPCAP: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/AirPcap_Devpack_4_1_0_1622/Airpcap_Devpack/lib/airpcap.lib
-- Found MaxMindDB: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/MaxMindDB-1.3.2-win64ws/lib/libmaxminddb-0.lib
-- Found SMI: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/libsmi-svn-40773-win64ws/lib/libsmi-2.lib
-- Found GNUTLS: C:/Users/robcra01/Documents/WiresharkUM/Clean/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:/Users/robcra01/Documents/WiresharkUM/Clean/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
-- Found CARES: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/c-ares-1.15.0-win64ws/installed/x64-windows/lib/cares.lib (found suitable version "1.14.0", minimum required is "1.5.0")
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'zlib'
-- Found ZLIB: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/lib/zlib.lib
-- Found MINIZIP: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/minizip-1.2.11-4-win64ws/installed/x64-windows/lib/minizip.lib
-- Found BROTLI: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/brotli-1.0.2-4-win64ws/installed/x64-windows/lib/brotlidec.lib
-- Found LZ4: C:/Users/robcra01/Documents/WiresharkUM/Clean/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:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/snappy-1.1.3-win64ws/lib/snappy.lib 
-- Found Nghttp2: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/nghttp2-1.14.0-win64ws/lib/nghttp2.lib
-- Found LUA: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/lua-5.2.4-unicode-win64-vc14/lua52.lib (found suitable version "502", minimum required is "5.1")
-- Found SBC: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/sbc-1.3-win64ws/lib/sbc.lib
-- Found SpanDSP: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/spandsp-0.0.6-win64ws/lib/spandsp.lib
-- Found bcg729: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/bcg729-1.0.4-win64ws/lib/bcg729.lib 
-- Found LibXml2: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/vcpkg-export-20190318-win64ws/installed/x64-windows/lib/libxml2.lib (found version "2.9.9")
-- Found WINSPARKLE: C:/Users/robcra01/Documents/WiresharkUM/Clean/wireshark-win64-libs/WinSparkle-0.5.7/x64/Release/WinSparkle.lib
CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find POD (missing: POD2MAN_EXECUTABLE POD2HTML_EXECUTABLE)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindPOD.cmake:30 (find_package_handle_standard_args)
  CMakeLists.txt:1191 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/Users/robcra01/Documents/WiresharkUM/Clean/wsbuild64/CMakeFiles/CMakeOutput.log".
See also "C:/Users/robcra01/Documents/WiresharkUM/Clean/wsbuild64/CMakeFiles/CMakeError.log".

Firstly, it may be recommended to use Chocolatey but I can't install it on my machine due to permissions failure due to running Cybereason (company policy, nothing I can do about this). The instructions for installing asciidoctorj, xsltproc and docbook are not helpful unless using Chocolately.

Can someone either give more comprehensive instructions for installing those files or show me how I can override building the documents (I am not bothered about building documents at the moment)? TBH it always frustrates me how painful it is to build using Windows. I was quite happy using Cygwin before, which has all the required extra bits; why has this been deprecated?