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

Hi everyone,

I've just installed NSIS to create a Wireshark installer. So I wanted to generate the build files after the installation but I get the following output

-- Generating build using CMake 3.4.1
-- Building for win64 using Visual Studio 12 2013 Win64
Working in C:\Development\wireshark-win64-libsTag 2015-12-11 found. Skipping.-- No custom file found in C:/Development/wireshark
-- Configuration types: Debug;Release;MinSizeRel;RelWithDebInfo
-- CMAKE_C_FLAGS_RELWITHDEBINFO: /MD /Zi /O2 /Ob1 /D NDEBUG
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: /MD /Zi /O2 /Ob1 /D NDEBUG
-- V: 2.1.0-1508-g6e90ca0, MaV: 2, MiV: 1, PL: 0, EV: -1508-g6e90ca0.
-- 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;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
-- AIRPCAP FOUND
-- AIRPCAP includes: C:/Development/wireshark-win64-libs/AirPcap_Devpack_4_1_0_1622/Airpcap_Devpack/include
-- AIRPCAP libs: C:/Development/wireshark-win64-libs/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:/Development/wireshark-win64-libs/c-ares-1.9.1-1-win64ws/include
-- CARES libs: C:/Development/wireshark-win64-libs/c-ares-1.9.1-1-win64ws/lib/libcares-2.lib
-- GCRYPT FOUND
-- GCRYPT includes: C:/Development/wireshark-win64-libs/gnutls-3.2.15-2.9-win64ws/include
-- GCRYPT libs: C:/Development/wireshark-win64-libs/gnutls-3.2.15-2.9-win64ws/bin/libgcrypt-20.lib;C:/Development/wireshark-win64-libs/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:/Development/wireshark-win64-libs/GeoIP-1.6.6-win64ws/include
-- GEOIP libs: C:/Development/wireshark-win64-libs/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:/Development/wireshark-win64-libs/gtk2/include/glib-2.0;C:/Development/wireshark-win64-libs/gtk2/lib/glib-2.0/include
-- GLIB2 libs: C:/Development/wireshark-win64-libs/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:/Development/wireshark-win64-libs/gtk2/include/glib-2.0
-- GMODULE2 libs: C:/Development/wireshark-win64-libs/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:/Development/wireshark-win64-libs/gnutls-3.2.15-2.9-win64ws/include
-- GNUTLS libs: C:/Development/wireshark-win64-libs/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:/Development/wireshark-win64-libs/gtk2/include/glib-2.0/glib
-- GTHREAD2 libs: C:/Development/wireshark-win64-libs/gtk2/lib/glib-2.0.lib
-- GTK2 FOUND
-- GTK2 includes: C:/Development/wireshark-win64-libs/gtk2/include/gtk-2.0;C:/Development/wireshark-win64-libs/gtk2/include;C:/Development/wireshark-win64-

libs/gtk2/include/freetype2;C:/Development/wireshark-win64-libs/gtk2/include/glib-2.0;C:/Development/wireshark-win64-libs/gtk2/lib/glib-2.0/include;C:/Development/wireshark-

win64-libs/gtk2/include/atk-1.0;C:/Development/wireshark-win64-libs/gtk2/include/gdk-pixbuf-2.0;C:/Development/wireshark-win64-

libs/gtk2/include/cairo;C:/Development/wireshark-win64-libs/gtk2/include/pango-1.0;C:/Development/wireshark-win64-libs/gtk2/lib/gtk-2.0/include
-- GTK2 libs: C:/Development/wireshark-win64-libs/gtk2/lib/glib-2.0.lib;C:/Development/wireshark-win64-libs/gtk2/lib/gobject-2.0.lib;C:/Development/wireshark-win64-

libs/gtk2/lib/atk-1.0.lib;C:/Development/wireshark-win64-libs/gtk2/lib/gmodule-2.0.lib;C:/Development/wireshark-win64-libs/gtk2/lib/gdk_pixbuf-

2.0.lib;C:/Development/wireshark-win64-libs/gtk2/lib/cairo.lib;C:/Development/wireshark-win64-libs/gtk2/lib/pango-1.0.lib;C:/Development/wireshark-win64-

libs/gtk2/lib/pangocairo-1.0.lib;C:/Development/wireshark-win64-libs/gtk2/lib/gdk-win32-2.0.lib;C:/Development/wireshark-win64-libs/gtk2/lib/gtk-win32-2.0.lib
-- Could NOT find Gettext (missing:  GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE) 
-- GETTEXT 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:/Development/wireshark-win64-libs/kfw-3-2-2-x64-ws/include
-- KERBEROS libs: C:/Development/wireshark-win64-libs/kfw-3-2-2-x64-ws/lib/krb5_64.lib
-- LEX FOUND
-- LEX includes: 
-- LEX libs: 
-- LEX executable: C:/cygwin64/bin/flex.exe
-- Could NOT find LIBSSH (missing:  LIBSSH_LIBRARIES LIBSSH_INCLUDE_DIRS LIBSSH_VERSION) (Required is at least version "0.6")
-- LIBSSH NOT FOUND
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- 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'
-- LUA FOUND
-- LUA includes: C:/Development/wireshark-win64-libs/lua5.2.3/include
-- LUA libs: C:/Development/wireshark-win64-libs/lua5.2.3/lua52.lib
-- Could NOT find M (missing:  M_LIBRARY) 
-- M NOT FOUND
-- PCAP FOUND
-- PCAP includes: C:/Development/wireshark-win64-libs/WpdPack/Include
-- PCAP libs: C:/Development/wireshark-win64-libs/WpdPack/Lib/x64/wpcap.lib
-- POD FOUND
-- POD includes: 
-- POD libs: 
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Checking for one of the modules 'portaudio-2.0'
-- PORTAUDIO FOUND
-- PORTAUDIO includes: C:/Development/wireshark-win64-libs/portaudio_v19_2/include;C:/Development/wireshark-win64-libs/portaudio_v19_2/src/common;C:/Development/wireshark-

win64-libs/portaudio_v19_2/src/os/win
-- PORTAUDIO libs: 
-- PERL FOUND
-- Perl includes: 
-- Perl libs: 
-- Perl executable: C:/cygwin64/bin/perl.exe
-- PYTHONINTERP FOUND
-- PythonInterp includes: 
-- PythonInterp libs: 
-- Qt5Core NOT FOUND
-- Qt5LinguistTools NOT FOUND
-- Qt5Multimedia NOT FOUND
-- Qt5PrintSupport NOT FOUND
-- Qt5Svg NOT FOUND
-- Qt5Widgets NOT FOUND
-- Qt5WinExtras NOT FOUND
-- Could NOT find SBC (missing:  SBC_INCLUDE_DIR SBC_LIBRARY) 
-- SBC NOT FOUND
-- SED FOUND
-- SED includes: 
-- SED libs: 
-- SED executable: C:/cygwin64/bin/sed.exe
-- Could NOT find SETCAP (missing:  SETCAP_EXECUTABLE) 
-- SETCAP NOT FOUND
-- SH FOUND
-- SH includes: 
-- SH libs: 
-- SH executable: C:/cygwin64/bin/bash.exe
-- SMI FOUND
-- SMI includes: C:/Development/wireshark-win64-libs/libsmi-svn-40773-win64ws/include
-- SMI libs: C:/Development/wireshark-win64-libs/libsmi-svn-40773-win64ws/lib/libsmi-2.lib
-- WINSPARKLE FOUND
-- WINSPARKLE includes: C:/Development/wireshark-win64-libs/WinSparkle-0.3-44-g2c8d9d3-win64ws
-- WINSPARKLE libs: C:/Development/wireshark-win64-libs/WinSparkle-0.3-44-g2c8d9d3-win64ws/WinSparkle.lib
-- YACC FOUND
-- YACC includes: 
-- YACC libs: 
-- YACC executable: C:/cygwin64/bin/bison.exe
-- Could NOT find YAPP (missing:  YAPP_EXECUTABLE) 
-- YAPP NOT FOUND
-- ZLIB FOUND
-- ZLIB includes: C:/Development/wireshark-win64-libs/zlib-1.2.8-ws;C:/Development/wsbuild64/zlib
-- ZLIB libs: zlib
-- C-Flags:  /MP /Zo /w34295 /w34189  /DWIN32 /D_WINDOWS /W3
-- CXX-Flags:  /MP /Zo /w34295 /w34189  /DWIN32 /D_WINDOWS /W3 /GR /EHsc
-- Warnings as errors: /WX
-- No custom file found in C:/Development/wireshark/asn1
-- Using Cygwin a2x
-- No custom file found in C:/Development/wireshark/epan
-- No custom file found in C:/Development/wireshark/ui/gtk
-- docdir: 
-- 
-- The following OPTIONAL packages have been found:

 * AIRPCAP
 * CARES
 * GCRYPT (required version >= 1.4.2)
 * GEOIP
 * GMODULE2
 * GNUTLS (required version >= 2.12.0)
 * GTK2
 * HtmlViewer
 * KERBEROS
 * LUA
 * PCAP
 * POD
 * PORTAUDIO
 * Perl
 * SH
 * SMI
 * WINSPARKLE
 * ZLIB
 * LYNX
 * SED
 * XSLTPROC
 * XMLLINT
 * ASCIIDOC
 * PythonInterp

-- The following REQUIRED packages have been found:

 * PowerShell
 * GLIB2
 * GTHREAD2
 * LEX
 * YACC

-- The following OPTIONAL packages have not been found:

 * CAP
 * Gettext
 * LIBSSH (required version >= 0.6) , libssh is library for ssh connections and it is needed to build sshdump , <www: https://www.libssh.org/get-it/>
 * M
 * PkgConfig
 * Qt5Core
 * Qt5LinguistTools
 * Qt5Multimedia
 * Qt5PrintSupport
 * Qt5Svg
 * Qt5Widgets
 * Qt5WinExtras
 * SBC , SBC Codec for Bluetooth A2DP stream playing , <www: http://git.kernel.org/cgit/bluetooth/sbc.git>
 * SETCAP
 * YAPP
 * HTMLHelp

-- Configuring done
CMake Error at packaging/nsis/CMakeLists.txt:199 (add_custom_command):
  Error evaluating generator expression:

    $< TARGET_FILE:wireshark>

  No target "wireshark"
Call Stack (most recent call first):
  CMakeLists.txt:2320 (ADD_NSIS_PACKAGE_TARGET)

CMake Error at packaging/nsis/CMakeLists.txt:199 (add_custom_command):
  Error evaluating generator expression:

    $< TARGET_FILE:wireshark>

  No target "wireshark"
Call Stack (most recent call first):
  CMakeLists.txt:2320 (ADD_NSIS_PACKAGE_TARGET)

CMake Error at packaging/nsis/CMakeLists.txt:199 (add_custom_command):
  Error evaluating generator expression:

    $< TARGET_FILE:wireshark>

  No target "wireshark"
Call Stack (most recent call first):
  CMakeLists.txt:2320 (ADD_NSIS_PACKAGE_TARGET)

CMake Error at packaging/nsis/CMakeLists.txt:199 (add_custom_command):
  Error evaluating generator expression:

    $< TARGET_FILE:wireshark>

  No target "wireshark"
Call Stack (most recent call first):
  CMakeLists.txt:2320 (ADD_NSIS_PACKAGE_TARGET)

-- Generating done
-- Build files have been written to: C:/Development/wsbuild64

I followed the instruction of the developer guide. Could someone tell me what to do?

Thanks!

asked 21 Jan '16, 00:24

Lumi's gravatar image

Lumi
16459
accept rate: 0%

edited 21 Jan '16, 01:37

We'll need to see the complete output from the CMake generation step to help. Please update your question with that info.

(21 Jan '16, 01:26) grahamb ♦

@grahamb: done :)

(21 Jan '16, 01:38) Lumi

You have either not installed Qt, or not set the QT5_BASE_DIR env var for it:

-- Qt5Core NOT FOUND
-- Qt5LinguistTools NOT FOUND
-- Qt5Multimedia NOT FOUND
-- Qt5PrintSupport NOT FOUND
-- Qt5Svg NOT FOUND
-- Qt5Widgets NOT FOUND
-- Qt5WinExtras NOT FOUND

See the Developers Guide section on installing Qt.

Arguably, the nsis installer target should be able to cope without Qt, but as that's the main item we're building I'm not sure.

permanent link

answered 21 Jan '16, 02:46

grahamb's gravatar image

grahamb ♦
19.8k330205
accept rate: 22%

The QT5_BASE_DIR wasn't set properly. Thanks a lot!

(21 Jan '16, 04:15) Lumi
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:

×15
×11

question asked: 21 Jan '16, 00:24

question was seen: 2,591 times

last updated: 21 Jan '16, 04:16

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