Hi,
i have followed the steps in https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html. first thing i must mention is that the git clone does not work: git clone https://code.wireshark.org/review/wireshark.
so i have downloaded the source code from the site: https://1.eu.dl.wireshark.org/src/wireshark-2.0.5.tar.bz2
now when i use cmake i get the following: this is the output of the VS2013 x64 Native Tool Command Prompt:
C:\wireshark-2.0.5\wsbuild64>cmake -DENABLE_CHM_GUIDES=on -G "Visual Studio 12 Win64" ..\
-- Generating build using CMake 3.6.1
-- Building for win64 using Visual Studio 12 2013 Win64
Working in C:\wireshark-2.0.5\Wireshark-win64-libs-2.0
Tag 2016-06-03 found. Skipping.
-- No custom file found in C:/wireshark-2.0.5
-- Configuration types: Debug;Release;MinSizeRel;RelWithDebInfo
-- RelWithDebInfo: /MD /Zi /O2 /Ob1 /DNDEBUG
-- V: 2.0.5, MaV: 2, MiV: 0, PL: 5, EV: .
-- Checking for c-compiler flag: /MP
-- Checking for c-compiler flag: /Zo
-- Checking for c-compiler flag: /w34295 /w34189
-- Checking for c++-compiler flag: /MP
-- Checking for c++-compiler flag: /Zo
-- Checking for c++-compiler flag: /w34295 /w34189
-- Packagelist: AIRPCAP;CAP;CARES;GCRYPT;GEOIP;GLIB2;GMODULE2;GNUTLS;GTHREAD2;GTK2;Gettext;Git;HtmlViewer;KERBEROS;LEX;LUA;M;PCAP;POD;PORTAUDIO;Perl;PythonInterp;Qt5Core;Qt5LinguistTools;Qt5Multimedia;Qt5PrintSupport;Qt5Svg;Qt5Widgets;Qt5WinExtras;SBC;SED;SETCAP;SH;SMI;WINSPARKLE;YACC;YAPP;ZLIB
-- AIRPCAP FOUND
-- AIRPCAP includes: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/AirPcap_Devpack_4_1_0_1622/Airpcap_Devpack/include
-- AIRPCAP libs: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/AirPcap_Devpack_4_1_0_1622/Airpcap_Devpack/lib/airpcap.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'libcap'
-- Could NOT find CAP (missing: CAP_LIBRARY CAP_INCLUDE_DIR)
-- CAP NOT FOUND
-- CARES FOUND
-- CARES includes: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/c-ares-1.11.0-win64ws/include
-- CARES libs: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/c-ares-1.11.0-win64ws/lib/libcares-2.lib
-- GCRYPT FOUND
-- GCRYPT includes: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gnutls-3.2.15-2.9-win64ws/include
-- GCRYPT libs: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gnutls-3.2.15-2.9-win64ws/bin/libgcrypt-20.lib;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gnutls-3.2.15-2.9-win64ws/bin/libgpg-error6-0.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'geoip'
-- GEOIP FOUND
-- GEOIP includes: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/GeoIP-1.6.6-win64ws/include
-- GEOIP libs: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/GeoIP-1.6.6-win64ws/lib/libGeoIP-1.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'glib-2.0>=2.14.0'
-- GLIB2 FOUND
-- GLIB2 includes: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/include/glib-2.0;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/glib-2.0/include
-- GLIB2 libs: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/glib-2.0.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'gmodule-2.0'
-- GMODULE2 FOUND
-- GMODULE2 includes: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/include/glib-2.0
-- GMODULE2 libs: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/gmodule-2.0.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'gnutls'
-- GNUTLS FOUND
-- GNUTLS includes: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gnutls-3.2.15-2.9-win64ws/include
-- GNUTLS libs: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gnutls-3.2.15-2.9-win64ws/bin/libgnutls-28.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'gthread-2.0'
-- GTHREAD2 FOUND
-- GTHREAD2 includes: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/include/glib-2.0/glib
-- GTHREAD2 libs: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/glib-2.0.lib
-- GTK2 FOUND
-- GTK2 includes: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/include/gtk-2.0;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/include;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/include/freetype2;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/include/glib-2.0;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/glib-2.0/include;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/include/atk-1.0;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/include/gdk-pixbuf-2.0;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/include/cairo;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/include/pango-1.0;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/gtk-2.0/include
-- GTK2 libs: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/glib-2.0.lib;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/gobject-2.0.lib;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/atk-1.0.lib;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/gmodule-2.0.lib;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/gdk_pixbuf-2.0.lib;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/cairo.lib;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/pango-1.0.lib;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/pangocairo-1.0.lib;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/gdk-win32-2.0.lib;C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/gtk2/lib/gtk-win32-2.0.lib
-- Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE)
-- GETTEXT NOT FOUND
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Git NOT FOUND
-- HTML_VIEWER NOT FOUND
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'krb5;mit-krb5;heimdal-krb5'
-- KERBEROS FOUND
-- KERBEROS includes: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/kfw-3-2-2-x64-ws/include
-- KERBEROS libs: C:/wireshark-2.0.5/Wireshark-win64-libs-2.0/kfw-3-2-2-x64-ws/lib/krb5_64.lib
CMake Error at C:/Program Files/CMake/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find LEX (missing: LEX_EXECUTABLE)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.c
make:388 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindLEX.cmake:23 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:810 (find_package)
– Configuring incomplete, errors occurred!
See also "C:/wireshark-2.0.5/wsbuild64/CMakeFiles/CMakeOutput.log".
See also "C:/wireshark-2.0.5/wsbuild64/CMakeFiles/CMakeError.log".
if any other information is needed please let me know.
Thanks in advance, Ran
asked 24 Aug ‘16, 01:41
Ran
11●2●2●5
accept rate: 0%
edited 24 Aug ‘16, 03:06
grahamb ♦
19.8k●3●30●206
you were right i over looked the package installation of cygwin, after i installed them it compiled.
thanks.
For others which have the same issue, I had to add C:\ProgramData\chocolatey\bin; to the system PATH environment variable.
As the OP didn't have either the Cygwin flex or winflex (via chocolatey) then this advice would not have helped.
Chocolatey normally adds itself to your user PATH, so if you had to add it manually, either:
@grahamb, I agree, I wrote this comment as a note for other users having similar issues.
I was in the third situation you've listed (removed chocolatey from the PATH) because I had other errors and I was trying to "clean" my PATH.