This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

Wireshark rebuild

asked Oct 19 '26

Hi, I have tried to rebuild Wireshark following instructions provided in Developer's guide and worked fine in rebuilding from current main branch but trying it with a previous releases it fails, in particular the build files generation fails. Any idea about how i can solve this isssue ?

Thanks Davide

Comments

Can you provide the failure output.
Did you start with a clean build directory?

User 2763 ( Oct 19 '26 )

Hi, yes I started with a clean build directory. For example with v4.6.9 code tthis is the output before the failure (I'm not able to copy all the output for text char length limitation of this window ...

-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.56.0.windows.2")
-- Found GLIB2: debug;C:/Development/wireshark/wireshark-x64-libs-4.6/glib-bundle-2026.04.28-1-x64-windows-ws/installed/x64-windows/debug/lib/glib-2.0.lib;optimized;C:/Development/wireshark/wireshark-x64-libs-4.6/glib-bundle-2026.04.28-1-x64-windows-ws/installed/x64-windows/lib/glib-2.0.lib (found suitable version "2.88.0", minimum required is "2.54.0")
-- Found GMODULE2: debug;C:/Development/wireshark/wireshark-x64-libs-4.6/glib-bundle-2026.04.28-1-x64-windows-ws/installed/x64-windows/debug/lib/gmodule-2.0.lib;optimized;C:/Development/wireshark/wireshark-x64-libs-4.6/glib-bundle-2026.04.28-1-x64-windows-ws/installed/x64-windows/lib/gmodule-2.0.lib
-- Found GTHREAD2: debug;C:/Development/wireshark/wireshark-x64-libs-4.6/glib-bundle-2026.04.28-1-x64-windows-ws/installed/x64-windows/debug/lib/gthread-2.0.lib;optimized;C:/Development/wireshark/wireshark-x64-libs-4.6/glib-bundle-2026.04.28-1-x64-windows-ws/installed/x64-windows/lib/gthread-2.0.lib
-- Found GCRYPT: C:/Development/wireshark/wireshark-x64-libs-4.6/libgcrypt-bundle-1.12.4-1-x64-mingw-dynamic-ws/lib/libgcrypt-20.lib (found suitable version "1.12.4", minimum required is "1.8.0")
-- Found CARES: C:/Development/wireshark/wireshark-x64-libs-4.6/c-ares-1.34.8-1-x64-windows-ws/installed/x64-windows/lib/cares.lib (found suitable version "1.34.8", minimum required is "1.13.0")
CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find LEX (missing: LEX_EXECUTABLE)
Call Stack (most recent call first):
  C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindLEX.cmake:21 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:1344 (find_package)

-- Configuring incomplete, errors occurred!

User 75468 ( Oct 19 '26 )

1 Answer

0

answered Oct 20 '26

Could NOT find LEX (missing: LEX_EXECUTABLE)

The Developer's Guide is missing lex/flex under the Windows setup section. The Unix section lists it.

Section 4.10. Flex gives instructions to add it from Chocolatey:

A native Windows version of flex is available in the winflexbison3 Chocolatey package. Note that the executable is named win_flex.

PS:\> choco install winflexbison3

Comments

Thanks, so why with main branch all worked fine ? Is flex not needed anymore in newest version ?

User 75468 ( Oct 20 '26 )

The build process "automagically" installs it after this change.
23129: Download winbisonflex as an external artifact in CMAKE directly

User 2763 ( Oct 20 '26 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.