Wireshark-dev: [Wireshark-dev] Win10 CMakeList.txt Error
From: "T. Scholz" <scholzt234@xxxxxxxxxxxxxx>
Date: Mon, 14 Mar 2016 10:57:26 +0100
Hello everyone,

today I tried to compile Wireshark for my laptop. (win10 - x64)
Therefore I just did the same as I did before for win7 compilation
mentioned in the dev guide. Right now I'm getting an Error using CMake:

################################
CMake Error at CMakeLists.txt:758 (add_subdirectory):
  add_subdirectory given source
  "D:/Development/wireshark-win64-libs/zlib-1.2.8-ws" which is not an
  existing directory.


CMake Error at CMakeLists.txt:763 (set_target_properties):
  set_target_properties Can not find target to add properties to: zlib


CMake Error at CMakeLists.txt:765 (set_target_properties):
  set_target_properties Can not find target to add properties to:
zlibstatic


-- Packagelist:
AIRPCAP;CAP;CARES;GCRYPT;GEOIP;GLIB2;GMODULE2;GNUTLS;GTHREAD2;GTK2;Gettext;Git;HtmlViewer;KERBEROS;LEX;LIBSSH;LUA;M;PCAP;POD;PORTAUDIO;Perl;PythonInterp;Qt5Core;Qt5LinguistTools;Qt5Multimedia;Qt5PrintSupport;Qt5Svg;Qt5Widgets;Qt5WinExtras;SBC;SED;SETCAP;SH;SMI;WINSPARKLE;YACC;YAPP;ZLIB
-- Could NOT find AIRPCAP (missing:  AIRPCAP_INCLUDE_DIR AIRPCAP_LIBRARY)
-- AIRPCAP NOT FOUND
-- 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
-- Could NOT find CARES (missing:  CARES_LIBRARY CARES_INCLUDE_DIR)
-- CARES NOT FOUND
-- Could NOT find GCRYPT (missing:  GCRYPT_LIBRARY GCRYPT_INCLUDE_DIR)
(Required is at least version "1.4.2")
-- GCRYPT NOT FOUND
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'geoip'
-- Could NOT find GEOIP (missing:  GEOIP_LIBRARY GEOIP_INCLUDE_DIR)
-- GEOIP NOT FOUND
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Checking for one of the modules 'glib-2.0>=2.14.0'
CMake Error at
C:/ProgramData/chocolatey/lib/cmake.portable/tools/cmake-3.5.0-win32-x86/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148
(message):
  Could NOT find GLIB2 (missing: GLIB2_LIBRARY GLIB2_MAIN_INCLUDE_DIR)
Call Stack (most recent call first):
C:/ProgramData/chocolatey/lib/cmake.portable/tools/cmake-3.5.0-win32-x86/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388
(_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindGLIB2.cmake:90 (find_package_handle_standard_args)
  CMakeLists.txt:829 (find_package)


-- Configuring incomplete, errors occurred!
See also "D:/Development/wsbuild64_VS2013/CMakeFiles/CMakeOutput.log".
See also "D:/Development/wsbuild64_VS2013/CMakeFiles/CMakeError.log".
################################

Here is my batch file content:
################################
@echo off

echo Adding Environment Vars for Wireshark-Qt ...
set CYGWIN=nodosfilewarning
set WIRESHARK_BASE_DIR=D:\Development
set WIRESHARK_TARGET_PLATFORM=win64
set QT5_BASE_DIR=D:\Development\Qt5.5\5.5\msvc2013_64
set WIRESHARK_VERSION_EXTRA=(x64_TS_PS)
set WIRESHARK_CYGWIN_INSTALL_PATH=C:\Cygwin
set VisualStudioVersion=12.0
title Command Prompt (VS 2013 x64)
echo Finished settings for enironment vars ...
echo Adding new directory for Wireshark x64 ...
mkdir D:\Development\wsbuild64_VS2013
cd D:\Development\wsbuild64_VS2013
echo Ready for preparing VS_Cmd_x64 ...
################################

Since Zlib is responsible for the error, I checked my Cygwin
installation whether it is installed. Looking on the package list of
cygwin, "zlib", "zlib-devel" and "zlib0"  v1.2.8.3 are installed.

Is it possible to compile Wireshark for win10 machines or did I just
make a simple mistake, which I haven't notieced yet?

Regards

T. Scholz


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus