Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

windows wireshark build error:CAN NOT FIND GLIB2

hi, i'am a linux user that know nothing in windows develop,but i just wanna to build wireshark in windows. As i follow the developer's guide book,dowload a lot env.the build the wireshark,error happened:

D:\wsbuild\326build64> cmake -G "Visual Studio 16 2019" -A x64 ..\wireshark-3.2.6 -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17763. -- The C compiler identification is MSVC 19.28.29334.0 -- The CXX compiler identification is MSVC 19.28.29334.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: D:/install/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: D:/install/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Generating build using CMake 3.18.20081302-MSVC_2 CMake Warning (dev) at D:/install/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message): The package name passed to find_package_handle_standard_args (POWERSHELL) does not match the name of the calling package (PowerShell). This can lead to problems in calling code that expects find_package result variables (e.g., _FOUND) to follow a certain pattern. Call Stack (most recent call first): cmake/modules/FindPowerShell.cmake:17 (find_package_handle_standard_args) CMakeLists.txt:64 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

-- Found POWERSHELL: C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -- Building for win64 using Visual Studio 16 2019 Working in D:\wsbuild\wireshark-win64-libs-3.2 Tag 2020-06-30-3.2 not found. Refreshing. Found 7-zip at C:\ProgramData\chocolatey\tools\7z.exe Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/npcap-0.9994.exe into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\npcap-0.9994.exe Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/USBPcapSetup-1.5.4.0.exe into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\USBPcapSetup-1.5.4.0.exe Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/AirPcap_Devpack_4_1_0_1622.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\AirPcap_Devpack_4_1_0_1622.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/bcg729-1.0.4-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\bcg729-1.0.4-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/brotli-1.0.2-4-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\brotli-1.0.2-4-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/c-ares-1.15.0-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\c-ares-1.15.0-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/gnutls-3.6.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\gnutls-3.6.3-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/krb5-1.17-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\krb5-1.17-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/libgcrypt-1.8.3-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\libgcrypt-1.8.3-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/libsmi-svn-40773-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\libsmi-svn-40773-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/libssh-0.7.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\libssh-0.7.3-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/lua-5.2.4-unicode-win64-vc14.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\lua-5.2.4-unicode-win64-vc14.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/lz4-1.8.3-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\lz4-1.8.3-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/MaxMindDB-1.3.2-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\MaxMindDB-1.3.2-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/minizip-1.2.11-4-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\minizip-1.2.11-4-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/nghttp2-1.39.2-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\nghttp2-1.39.2-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/sbc-1.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\sbc-1.3-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/snappy-1.1.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\snappy-1.1.3-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/spandsp-0.0.6-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\spandsp-0.0.6-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/vcpkg-export-20190318-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\vcpkg-export-20190318-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/WinSparkle-0.5.7.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\WinSparkle-0.5.7.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/WpdPack_4_1_2.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\WpdPack_4_1_2.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/zstd-1.4.0-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\zstd-1.4.0-win64ws.zip -- CMake build type: RelWithDebInfo -- V: 3.2.6-PersionalVersion, MaV: 3, MiV: 2, PL: 6, EV: -PersionalVersion. -- 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.29.2.windows.2") CMake Error at D:/install/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): Could NOT find GLIB2 (missing: GLIB2_LIBRARY GLIB2_MAIN_INCLUDE_DIR GLIB2_INTERNAL_INCLUDE_DIR) (Required is at least version "2.32.0") Call Stack (most recent call first): D:/install/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE) cmake/modules/FindGLIB2.cmake:108 (find_package_handle_standard_args) CMakeLists.txt:1023 (find_package)

-- Configuring incomplete, errors occurred! See also "D:/wsbuild/326build64/CMakeFiles/CMakeOutput.log". See also "D:/wsbuild/326build64/CMakeFiles/CMakeError.log".

Is that a vistual studio error? the CMakeError.log tells me error MSB8040 happened and i need to download Spectre. But i download all "Spectre" options but is useless.

I really need your help

windows wireshark build error:CAN NOT FIND GLIB2

hi, i'am a linux user that know nothing in windows develop,but i just wanna to build wireshark in windows. As i follow the developer's guide book,dowload a lot env.the build the wireshark,error happened:

D:\wsbuild\326build64> cmake -G "Visual Studio 16 2019" -A x64 ..\wireshark-3.2.6 ..\wireshark-3.2.6
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17763. 10.0.17763.
-- The C compiler identification is MSVC 19.28.29334.0 19.28.29334.0
-- The CXX compiler identification is MSVC 19.28.29334.0 19.28.29334.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info -- Detecting C compiler ABI info - done - done
-- Check for working C compiler: D:/install/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped skipped
-- Detecting C compile features
-- Detecting C compile features -- Detecting C compile features - done - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done - done
-- Check for working CXX compiler: D:/install/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped skipped
-- Detecting CXX compile features
-- Detecting CXX compile features -- Detecting CXX compile features - done - done
-- Generating build using CMake 3.18.20081302-MSVC_2 CMake Warning (dev) at D:/install/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message): The package name passed to find_package_handle_standard_args (POWERSHELL) does not match the name of the calling package (PowerShell). This can lead to problems in calling code that expects find_package result variables (e.g., _FOUND) to follow a certain pattern. pattern.
Call Stack (most recent call first): cmake/modules/FindPowerShell.cmake:17 (find_package_handle_standard_args) (find_package_handle_standard_args)
CMakeLists.txt:64 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

it. -- Found POWERSHELL: C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -- Building for win64 using Visual Studio 16 2019 Working in D:\wsbuild\wireshark-win64-libs-3.2 Tag 2020-06-30-3.2 not found. Refreshing. Refreshing. Found 7-zip at C:\ProgramData\chocolatey\tools\7z.exe C:\ProgramData\chocolatey\tools\7z.exe Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/npcap-0.9994.exe into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\npcap-0.9994.exe D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\npcap-0.9994.exe Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/USBPcapSetup-1.5.4.0.exe into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\USBPcapSetup-1.5.4.0.exe D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\USBPcapSetup-1.5.4.0.exe Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/AirPcap_Devpack_4_1_0_1622.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\AirPcap_Devpack_4_1_0_1622.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\AirPcap_Devpack_4_1_0_1622.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/bcg729-1.0.4-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\bcg729-1.0.4-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\bcg729-1.0.4-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/brotli-1.0.2-4-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\brotli-1.0.2-4-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\brotli-1.0.2-4-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/c-ares-1.15.0-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\c-ares-1.15.0-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\c-ares-1.15.0-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/gnutls-3.6.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\gnutls-3.6.3-1-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\gnutls-3.6.3-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/krb5-1.17-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\krb5-1.17-1-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\krb5-1.17-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/libgcrypt-1.8.3-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\libgcrypt-1.8.3-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\libgcrypt-1.8.3-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/libsmi-svn-40773-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\libsmi-svn-40773-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\libsmi-svn-40773-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/libssh-0.7.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\libssh-0.7.3-1-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\libssh-0.7.3-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/lua-5.2.4-unicode-win64-vc14.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\lua-5.2.4-unicode-win64-vc14.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\lua-5.2.4-unicode-win64-vc14.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/lz4-1.8.3-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\lz4-1.8.3-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\lz4-1.8.3-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/MaxMindDB-1.3.2-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\MaxMindDB-1.3.2-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\MaxMindDB-1.3.2-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/minizip-1.2.11-4-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\minizip-1.2.11-4-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\minizip-1.2.11-4-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/nghttp2-1.39.2-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\nghttp2-1.39.2-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\nghttp2-1.39.2-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/sbc-1.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\sbc-1.3-1-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\sbc-1.3-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/snappy-1.1.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\snappy-1.1.3-1-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\snappy-1.1.3-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/spandsp-0.0.6-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\spandsp-0.0.6-1-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\spandsp-0.0.6-1-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/vcpkg-export-20190318-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\vcpkg-export-20190318-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\vcpkg-export-20190318-win64ws.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/WinSparkle-0.5.7.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\WinSparkle-0.5.7.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\WinSparkle-0.5.7.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/WpdPack_4_1_2.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\WpdPack_4_1_2.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\WpdPack_4_1_2.zip Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/zstd-1.4.0-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\zstd-1.4.0-win64ws.zip D:\wsbuild\wireshark-win64-libs-3.2 Verifying D:\wsbuild\wireshark-win64-libs-3.2\zstd-1.4.0-win64ws.zip -- CMake build type: RelWithDebInfo RelWithDebInfo -- V: 3.2.6-PersionalVersion, MaV: 3, MiV: 2, PL: 6, EV: -PersionalVersion. -PersionalVersion. -- Performing Test C_Qspectre_VALID -- Performing Test C_Qspectre_VALID - Failed -- Performing Test C_Qspectre_VALID - Failed CXX_Qspectre_VALID -- Performing Test CXX_Qspectre_VALID -- Performing Test CXX_Qspectre_VALID - Failed - Failed -- Linker flags: /LARGEADDRESSAWARE /MANIFEST:NO /INCREMENTAL:NO /RELEASE /guard:cf /guard:cf -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.29.2.windows.2") "2.29.2.windows.2") CMake Error at D:/install/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): Could NOT find GLIB2 (missing: GLIB2_LIBRARY GLIB2_MAIN_INCLUDE_DIR GLIB2_INTERNAL_INCLUDE_DIR) (Required is at least version "2.32.0") "2.32.0") Call Stack (most recent call first): D:/install/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE) (_FPHSA_FAILURE_MESSAGE) cmake/modules/FindGLIB2.cmake:108 (find_package_handle_standard_args) CMakeLists.txt:1023 (find_package)

(find_package) -- Configuring incomplete, errors occurred! See also "D:/wsbuild/326build64/CMakeFiles/CMakeOutput.log". See also "D:/wsbuild/326build64/CMakeFiles/CMakeError.log".

"D:/wsbuild/326build64/CMakeFiles/CMakeError.log".

Is that a vistual studio error? the CMakeError.log tells me error MSB8040 happened and i need to download Spectre. But i download all "Spectre" options but is useless.

I really need your help

windows wireshark build error:CAN NOT FIND GLIB2

hi, i'am a linux user that know nothing in windows develop,but i just wanna to build wireshark in windows. As i follow the developer's guide book,dowload a lot env.the build the wireshark,error happened:

D:\wsbuild\326build64> cmake -G "Visual Studio 16 2019" -A x64 ..\wireshark-3.2.6
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17763.
-- The C compiler identification is MSVC 19.28.29334.0
-- The CXX compiler identification is MSVC 19.28.29334.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/install/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/install/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Generating build using CMake 3.18.20081302-MSVC_2 3.18.20081302-MSVC_2
CMake Warning (dev) at D:/install/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message): (message):
  The package name passed to find_package_handle_standard_args (POWERSHELL) does not match the name of the calling package (PowerShell). (PowerShell).
  This can lead to problems in calling code that expects find_package result variables (e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first): first):
  cmake/modules/FindPowerShell.cmake:17 (find_package_handle_standard_args)
 CMakeLists.txt:64 (find_package) (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found POWERSHELL: C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
-- Building for win64 using Visual Studio 16 2019 Working in D:\wsbuild\wireshark-win64-libs-3.2 D:\wsbuild\wireshark-win64-libs-3.2
Tag 2020-06-30-3.2 not found. Refreshing.
Found 7-zip at C:\ProgramData\chocolatey\tools\7z.exe
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/npcap-0.9994.exe into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\npcap-0.9994.exe
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/USBPcapSetup-1.5.4.0.exe into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\USBPcapSetup-1.5.4.0.exe
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/AirPcap_Devpack_4_1_0_1622.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\AirPcap_Devpack_4_1_0_1622.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/bcg729-1.0.4-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\bcg729-1.0.4-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/brotli-1.0.2-4-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\brotli-1.0.2-4-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/c-ares-1.15.0-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\c-ares-1.15.0-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/gnutls-3.6.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\gnutls-3.6.3-1-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/krb5-1.17-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\krb5-1.17-1-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/libgcrypt-1.8.3-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\libgcrypt-1.8.3-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/libsmi-svn-40773-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\libsmi-svn-40773-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/libssh-0.7.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\libssh-0.7.3-1-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/lua-5.2.4-unicode-win64-vc14.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\lua-5.2.4-unicode-win64-vc14.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/lz4-1.8.3-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\lz4-1.8.3-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/MaxMindDB-1.3.2-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\MaxMindDB-1.3.2-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/minizip-1.2.11-4-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\minizip-1.2.11-4-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/nghttp2-1.39.2-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\nghttp2-1.39.2-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/sbc-1.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\sbc-1.3-1-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/snappy-1.1.3-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\snappy-1.1.3-1-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/spandsp-0.0.6-1-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\spandsp-0.0.6-1-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/vcpkg-export-20190318-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\vcpkg-export-20190318-win64ws.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/WinSparkle-0.5.7.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\WinSparkle-0.5.7.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/WpdPack_4_1_2.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\WpdPack_4_1_2.zip
Downloading https://anonsvn.wireshark.org/wireshark-win64-libs/tags/2020-06-30-3.2/packages/zstd-1.4.0-win64ws.zip into D:\wsbuild\wireshark-win64-libs-3.2
Verifying D:\wsbuild\wireshark-win64-libs-3.2\zstd-1.4.0-win64ws.zip
-- CMake build type: RelWithDebInfo
-- V: 3.2.6-PersionalVersion, MaV: 3, MiV: 2, PL: 6, EV: -PersionalVersion.
-- 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.29.2.windows.2")
CMake Error at D:/install/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): (message):
  Could NOT find GLIB2 (missing: GLIB2_LIBRARY GLIB2_MAIN_INCLUDE_DIR GLIB2_INTERNAL_INCLUDE_DIR) (Required is at least version "2.32.0")
Call Stack (most recent call first): first):
  D:/install/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindGLIB2.cmake:108 (find_package_handle_standard_args) CMakeLists.txt:1023 (find_package)

-- Configuring incomplete, errors occurred! See also "D:/wsbuild/326build64/CMakeFiles/CMakeOutput.log". See also "D:/wsbuild/326build64/CMakeFiles/CMakeError.log".

Is that a vistual studio error? the CMakeError.log tells me error MSB8040 happened and i need to download Spectre. But i download all "Spectre" options but is useless.

I really need your help