This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

i was following the build procedure for 2.2.5 as shown in the Developers Guide Sect 2.2.

is the installation of QT is mandatory? or the copying of lib files should be fine?

As i'm facing the below build issue:

D:\Development\msbuild64>cmake -DENABLE_CHM_GUIDES=on -G "Visual Studio 12 Win64" ..\wireshark
-- Generating build using CMake 3.7.2
-- Building for win64 using Visual Studio 12 2013 Win64
Working in D:\Development\WireShark\wireshark-win64-libs
Tag 2017-02-15 found. Skipping.
-- No custom file found in D:/Development/WireShark
-- Configuration types: Debug;Release;MinSizeRel;RelWithDebInfo
-- CMAKE_C_FLAGS_RELWITHDEBINFO: /MD /Zi /O2 /Ob1 /DNDEBUG
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: /MD /Zi /O2 /Ob1 /DNDEBUG
-- V: 2.3.0, MaV: 2, MiV: 3, PL: 0, EV: .
-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.11")
-- Found python module asn2wrs: D:\Development\WireShark\tools\asn2wrs.py
-- Checking for c-compiler flag: /MP
-- Performing Test C__MP_VALID
-- Performing Test C__MP_VALID - Success
-- Checking for c-compiler flag: /Zo
-- Performing Test C__Zo_VALID
-- Performing Test C__Zo_VALID - Failed
-- Checking for c-compiler flag: /w34295 /w34189 /wd4200
-- Performing Test C__w34295_w34189_wd4200_VALID
-- Performing Test C__w34295_w34189_wd4200_VALID - Success
-- Checking for c++-compiler flag: /MP
-- Performing Test CXX__MP_VALID
-- Performing Test CXX__MP_VALID - Success
-- Checking for c++-compiler flag: /Zo
-- Performing Test CXX__Zo_VALID
-- Performing Test CXX__Zo_VALID - Failed
-- Checking for c++-compiler flag: /w34295 /w34189 /wd4200
-- Performing Test CXX__w34295_w34189_wd4200_VALID
-- Performing Test CXX__w34295_w34189_wd4200_VALID - Success
statuscheck linker flag - test linker flags: -Wl,--as-needed
-- Performing Test WS_LD_FLAG_VALID0
-- Performing Test WS_LD_FLAG_VALID0 - Failed
statuscheck linker flag - test linker flags: -pie
-- Performing Test WS_LD_FLAG_VALID1
-- Performing Test WS_LD_FLAG_VALID1 - Failed
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Packagelist: AIRPCAP;CAP;CARES;GCRYPT;GEOIP;GLIB2;GMODULE2;GNUTLS;GTHREAD2;Gettext;Git;KERBEROS;LEX;LIBSSH;LUA;LZ4;M;NGHTTP2;PCAP;POD;Perl;PythonInterp;Qt5Core;Qt5Ling
uistTools;Qt5Multimedia;Qt5PrintSupport;Qt5Svg;Qt5Widgets;Qt5WinExtras;SBC;SED;SETCAP;SH;SMI;SNAPPY;SPANDSP;WINSPARKLE;YACC;YAPP;ZLIB
-- Found AIRPCAP: D:/Development/WireShark/wireshark-win64-libs/AirPcap_Devpack_4_1_0_1622/Airpcap_Devpack/include
-- AIRPCAP FOUND
-- AIRPCAP includes: D:/Development/WireShark/wireshark-win64-libs/AirPcap_Devpack_4_1_0_1622/Airpcap_Devpack/include
-- AIRPCAP libs: D:/Development/WireShark/wireshark-win64-libs/AirPcap_Devpack_4_1_0_1622/Airpcap_Devpack/lib/airpcap.lib
-- Found PkgConfig: C:/cygwin64/bin/pkg-config.exe (found version "0.29.1")
-- Checking for one of the modules 'libcap'
-- Could NOT find CAP (missing:  CAP_LIBRARY CAP_INCLUDE_DIR)
-- CAP NOT FOUND
-- Found CARES: D:/Development/WireShark/wireshark-win64-libs/c-ares-1.12.0-win64ws/lib/libcares-2.lib
-- CARES FOUND
-- CARES includes: D:/Development/WireShark/wireshark-win64-libs/c-ares-1.12.0-win64ws/include
-- CARES libs: D:/Development/WireShark/wireshark-win64-libs/c-ares-1.12.0-win64ws/lib/libcares-2.lib
-- Found GCRYPT: D:/Development/WireShark/wireshark-win64-libs/libgcrypt-1.7.6-win64ws/bin/libgcrypt-20.lib (found suitable version "1.7.6", minimum required is "1.4.2")

-- GCRYPT FOUND
-- GCRYPT includes: D:/Development/WireShark/wireshark-win64-libs/libgcrypt-1.7.6-win64ws/include
-- GCRYPT libs: D:/Development/WireShark/wireshark-win64-libs/libgcrypt-1.7.6-win64ws/bin/libgcrypt-20.lib;D:/Development/WireShark/wireshark-win64-libs/libgcrypt-1.7.6-w
in64ws/bin/libgpg-error6-0.lib
-- Checking for one of the modules 'geoip'
-- Found GEOIP: D:/Development/WireShark/wireshark-win64-libs/GeoIP-1.6.6-win64ws/lib/libGeoIP-1.lib
-- Looking for GeoIP_country_name_by_ipnum_v6
-- Looking for GeoIP_country_name_by_ipnum_v6 - found
-- GEOIP FOUND
-- GEOIP includes: D:/Development/WireShark/wireshark-win64-libs/GeoIP-1.6.6-win64ws/include
-- GEOIP libs: D:/Development/WireShark/wireshark-win64-libs/GeoIP-1.6.6-win64ws/lib/libGeoIP-1.lib
-- Checking for one of the modules 'glib-2.0>=2.22.0'
-- Found GLIB2: D:/Development/WireShark/wireshark-win64-libs/gtk2/lib/glib-2.0.lib
-- GLIB2 FOUND
-- GLIB2 includes: D:/Development/WireShark/wireshark-win64-libs/gtk2/include/glib-2.0;D:/Development/WireShark/wireshark-win64-libs/gtk2/lib/glib-2.0/include
-- GLIB2 libs: D:/Development/WireShark/wireshark-win64-libs/gtk2/lib/glib-2.0.lib
-- Checking for one of the modules 'gmodule-2.0'
-- GMODULE2 FOUND
-- GMODULE2 includes: /usr/include/glib-2.0;/usr/lib/glib-2.0/include
-- GMODULE2 libs: gmodule-2.0;glib-2.0;intl
-- Checking for one of the modules 'gnutls'
-- Found GNUTLS: D:/Development/WireShark/wireshark-win64-libs/gnutls-3.4.11-1.35-win64ws/bin/libgnutls-30.lib (found suitable version "3.4.11", minimum required is "2.12
.0")
-- GNUTLS FOUND
-- GNUTLS includes: D:/Development/WireShark/wireshark-win64-libs/gnutls-3.4.11-1.35-win64ws/include
-- GNUTLS libs: D:/Development/WireShark/wireshark-win64-libs/gnutls-3.4.11-1.35-win64ws/bin/libgnutls-30.lib
-- Checking for one of the modules 'gthread-2.0'
-- GTHREAD2 FOUND
-- GTHREAD2 includes: /usr/include/glib-2.0;/usr/lib/glib-2.0/include
-- GTHREAD2 libs: gthread-2.0;glib-2.0;intl
-- Could NOT find Gettext (missing:  GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE)
-- GETTEXT NOT FOUND
-- Found Git: C:/cygwin64/bin/git.exe (found version "2.8.3")
-- Git FOUND
-- Git includes:
-- Git libs:
-- Checking for one of the modules 'krb5;mit-krb5;heimdal-krb5'
-- Found KERBEROS: D:/Development/WireShark/wireshark-win64-libs/kfw-3-2-2-x64-ws/lib/krb5_64.lib
-- Looking for heimdal_version
-- Looking for heimdal_version - not found
-- KERBEROS FOUND
-- KERBEROS includes: D:/Development/WireShark/wireshark-win64-libs/kfw-3-2-2-x64-ws/include
-- KERBEROS libs: D:/Development/WireShark/wireshark-win64-libs/kfw-3-2-2-x64-ws/lib/krb5_64.lib
-- Found LEX: C:/cygwin64/bin/flex.exe
-- LEX FOUND
-- LEX includes:
-- LEX libs:
-- LEX executable: C:/cygwin64/bin/flex.exe
-- Found LIBSSH: D:/Development/WireShark/wireshark-win64-libs/libssh-0.7.3-win64ws/lib/ssh.lib (found suitable version "0.7.3", minimum required is "0.6")
-- LIBSSH FOUND
-- LIBSSH includes: D:/Development/WireShark/wireshark-win64-libs/libssh-0.7.3-win64ws/include
-- LIBSSH libs: D:/Development/WireShark/wireshark-win64-libs/libssh-0.7.3-win64ws/lib/ssh.lib
-- Checking for one of the modules 'lua5.2;lua-5.2;lua52;lua5.1;lua-5.1;lua51;lua5.0;lua-5.0;lua50'
-- Checking for one of the modules 'lua<=5.2.99'
-- Found LUA: D:/Development/WireShark/wireshark-win64-libs/lua5.2.4/lua52.lib (found version "502")
-- LUA FOUND
-- LUA includes: D:/Development/WireShark/wireshark-win64-libs/lua5.2.4/include
-- LUA libs: D:/Development/WireShark/wireshark-win64-libs/lua5.2.4/lua52.lib
-- Checking for one of the modules 'lz4;liblz4'
-- Found LZ4: D:/Development/WireShark/wireshark-win64-libs/lz4-r131-win64ws/include
-- LZ4 FOUND
-- LZ4 includes: D:/Development/WireShark/wireshark-win64-libs/lz4-r131-win64ws/include
-- LZ4 libs: D:/Development/WireShark/wireshark-win64-libs/lz4-r131-win64ws/lib/lz4.lib
-- Could NOT find M (missing:  M_LIBRARY)
-- M NOT FOUND
-- Checking for one of the modules 'libnghttp2'
-- Found Nghttp2: D:/Development/WireShark/wireshark-win64-libs/nghttp2-1.14.0-win64ws/include
-- NGHTTP2 FOUND
-- NGHTTP2 includes: D:/Development/WireShark/wireshark-win64-libs/nghttp2-1.14.0-win64ws/include
-- NGHTTP2 libs: D:/Development/WireShark/wireshark-win64-libs/nghttp2-1.14.0-win64ws/lib/nghttp2.lib
-- Found PCAP: D:/Development/WireShark/wireshark-win64-libs/WpdPack/Include
-- Looking for pcap_open_dead
-- Looking for pcap_open_dead - found
-- Looking for pcap_freecode
-- Looking for pcap_freecode - found
-- Looking for pcap_breakloop
-- Looking for pcap_breakloop - found
-- Looking for pcap_create
-- Looking for pcap_create - found
-- Looking for pcap_datalink_name_to_val
-- Looking for pcap_datalink_name_to_val - found
-- Looking for pcap_datalink_val_to_description
-- Looking for pcap_datalink_val_to_description - found
-- Looking for pcap_datalink_val_to_name
-- Looking for pcap_datalink_val_to_name - found
-- Looking for pcap_findalldevs
-- Looking for pcap_findalldevs - found
-- Looking for pcap_free_datalinks
-- Looking for pcap_free_datalinks - found
-- Looking for pcap_get_selectable_fd
-- Looking for pcap_get_selectable_fd - not found
-- Looking for pcap_lib_version
-- Looking for pcap_lib_version - found
-- Looking for pcap_list_datalinks
-- Looking for pcap_list_datalinks - found
-- Looking for pcap_set_datalink
-- Looking for pcap_set_datalink - found
-- Looking for bpf_image
-- Looking for bpf_image - found
-- Looking for pcap_setsampling
-- Looking for pcap_setsampling - found
-- Looking for pcap_set_tstamp_precision
-- Looking for pcap_set_tstamp_precision - not found
-- Looking for pcap_open
-- Looking for pcap_open - found
-- PCAP FOUND
-- PCAP includes: D:/Development/WireShark/wireshark-win64-libs/WpdPack/Include
-- PCAP libs: D:/Development/WireShark/wireshark-win64-libs/WpdPack/Lib/x64/wpcap.lib
-- Found POD: C:/cygwin64/bin/pod2man
-- POD FOUND
-- POD includes:
-- POD libs:
-- Found Perl: C:/Perl64/bin/perl.exe (found version "5.20.1")
-- PERL FOUND
-- Perl includes:
-- Perl libs:
-- Perl executable: C:/Perl64/bin/perl.exe
-- Found PythonInterp: C:/Python27/python.exe (found suitable version "2.7.11", minimum required is "2")
-- PYTHONINTERP FOUND
-- PythonInterp includes:
-- PythonInterp libs:
CMake Error at C:/cygwin64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:27 (message):
  The imported target "Qt5::Core" references the file

     "C:/cygwin64/include/qt5/"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "C:/cygwin64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  C:/cygwin64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:68 (_qt5_Core_check_file_exists)
  CMakeLists.txt:911 (find_package)

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

asked 22 Mar '17, 03:25

DhanuShalz's gravatar image

DhanuShalz
36101115
accept rate: 100%

edited 22 Mar '17, 04:36

grahamb's gravatar image

grahamb ♦
19.8k330206


Qt5 is mandatory for Windows 2.2.x or later builds and should be installed as per Sect 2.2.4 of the Developers Guide.

permanent link

answered 22 Mar '17, 04:40

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

same error appears even after installing the QT5.6

(23 Mar '17, 23:31) DhanuShalz

Did you delete the build dir and rerun the cmake step after adding Qt?

(24 Mar '17, 02:28) Anders ♦

Did you set the required environment variables for QT5_BASE_DIR as in the Developers Guide Section 2.2.10?

As @Anders noted you might have to either delete CMakeCache.txt or delete the entire build directory to get the installed Qt version picked up by CMake.

If the CMake output is identical, then it would appear that CMake is picking up some Cygwin related Qt items which can't be used for the build. Please confirm if this is the case, if not please repost the output from the CMake generation step.

(24 Mar '17, 02:41) grahamb ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×28
×4

question asked: 22 Mar '17, 03:25

question was seen: 1,858 times

last updated: 24 Mar '17, 02:44

p​o​w​e​r​e​d by O​S​Q​A