Wireshark mailing list archives
Re: Win10 CMakeList.txt Error
From: Pascal Quantin <pascal.quantin () gmail com>
Date: Mon, 14 Mar 2016 15:22:14 +0100
Hi, 2016-03-14 10:57 GMT+01:00 T. Scholz <scholzt234 () googlemail com>:
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.
We are not using ZLib packages provided by Cygwin, but instead are compiling it from the source code. The CMake process is downloading the various mandatory packages from Wireshark website and is storing it in a folder that for you seesm to be named d:\Development\wireshark-win64-libs. It should contain the following files: AirPcap_Devpack_4_1_0_1622.zip c-ares-1.9.1-1-win64ws.zip current_tag.txt GeoIP-1.6.6-win64ws.zip gnutls-3.2.15-2.9-win64ws.zip gtk+-bundle_2.24.23-3.39_win64ws.zip kfw-3-2-2-x64-ws.zip libsmi-svn-40773-win64ws.zip libssh-0.7.2-win64ws.zip lua-5.2.3_Win64_dll12_lib.zip nasm-2.09.08-win32.zip portaudio_v19_2.zip upx303w.zip USBPcapSetup-1.1.0.0-g794bf26.exe USBPcapSetup-1.1.0.0-g794bf26-1.exe user-guide-gdf2fcdf.zip vcredist_x64.exe WinPcap_4_1_3.exe WinSparkle-0.3-44-g2c8d9d3-win64ws.zip WpdPack_4_1_2.zip zlib-1.2.8-ws.zip And have unzipped all of them. Here it does not seem to be the case (at least for zlib-1.2.8-ws.zip). CMake considers that the environment is ready (files downloaded + unzipped) if the current_tag.txt file is present. You can try to remove it and relaunch CMake. It shoudl download any missing file and unzip them.
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 ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Win10 CMakeList.txt Error T. Scholz (Mar 14)
- Re: Win10 CMakeList.txt Error Graham Bloice (Mar 14)
- Re: Win10 CMakeList.txt Error Born In (Mar 14)
- Re: Win10 CMakeList.txt Error Pascal Quantin (Mar 14)
- Re: Win10 CMakeList.txt Error T. Scholz (Mar 14)
- Re: Win10 CMakeList.txt Error Pascal Quantin (Mar 14)
- Re: Win10 CMakeList.txt Error Graham Bloice (Mar 14)
- Re: Win10 CMakeList.txt Error T. Scholz (Mar 15)
- Re: Win10 CMakeList.txt Error Graham Bloice (Mar 15)
- Re: Win10 CMakeList.txt Error Pascal Quantin (Mar 15)
- Re: Win10 CMakeList.txt Error Graham Bloice (Mar 14)