Ask Your Question
0

Running CMake on Windows for Wireshark fails near the end

asked 2020-09-25 18:47:20 +0000

chewtoy gravatar image

updated 2020-09-25 18:56:44 +0000

Guy Harris gravatar image

I have followed the guide here https://www.wireshark.org/docs/wsdg_h... 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 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-09-25 19:01:52 +0000

Chuckc gravatar image

Have you set the _BASE_DIR variables ?
Similar question here
Contents of setup script I use:

C:\Development>type set_dirs.bat
rem Let CMake determine the library download directory name under
rem WIRESHARK_BASE_DIR or set it explicitly by using WIRESHARK_LIB_DIR.
rem Set *one* of these.
set WIRESHARK_BASE_DIR=C:\Development
rem set WIRESHARK_LIB_DIR=c:\wireshark-win64-libs
rem Set the Qt installation directory
set QT5_BASE_DIR=C:\qt\5.14.2\msvc2017_64
rem Append a custom string to the package version. Optional.
rem set WIRESHARK_VERSION_EXTRA=-CDC_16562
set WIRESHARK_VERSION_EXTRA=-CDC_200911
C:\Development>
edit flag offensive delete link more

Comments

Ah, I did. But I did "set WIRESHARK_BASE_DIR=C:\Dev\wireshark" and when I changed it to "C:\Dev" it finally worked. Thanks for the help!

chewtoy gravatar imagechewtoy ( 2020-09-25 20:29:01 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2020-09-25 18:47:20 +0000

Seen: 383 times

Last updated: Sep 25 '20