Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Can't build GTK only using CMake on Windows7

From: Robert Cragie <robert.cragie@xxxxxxxxxxxxx>
Date: Tue, 29 Mar 2016 15:04:14 +0100
I did the following:

1) Merged my fork with the latest upstream
2) Downloaded and installed Qt

I tried to rebuild using CMake but it still failed. Note the same code builds fine using nmake and GTK only. Here are the lines with FAILED and error in from the output of the build:

    91>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\generate_developer-guide.xml.vcxproj" (default targets) -- FAILED.
    29>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\generate_developer-guide.xml.vcxproj.metaproj" (default targets) -- FAILED.
    92>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\generate_user-guide.xml.vcxproj" (default targets) -- FAILED.
    30>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\generate_user-guide.xml.vcxproj.metaproj" (default targets) -- FAILED.
    79>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\wsutil\wsutil.vcxproj" (default targets) -- FAILED.
    76>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\wsutil\wsutil.vcxproj.metaproj" (default targets) -- FAILED.
   101>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\release_notes_html.vcxproj" (default targets) -- FAILED.
    50>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\release_notes_html.vcxproj.metaproj" (default targets) -- FAILED.
    87>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\epan\dissectors\dissectors.vcxproj" (default targets) -- FAILED.
    19>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\epan\dissectors\dissectors.vcxproj.metaproj" (default targets) -- FAILED.
     2>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\ALL_BUILD.vcxproj.metaproj" (default targets) -- FAILED.
     1>Done Building Project "C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\Wireshark.sln" (default targets) -- FAILED.
Build FAILED.

    91>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 9009. [C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\generate_developer-guide.xml.vcxproj]
    92>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 9009. [C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\generate_user-guide.xml.vcxproj]
    79>LINK : fatal error LNK1181: cannot open input file 'gmodule-2.0.lib' [C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\wsutil\wsutil.vcxproj]
   101>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 9009. [C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\release_notes_html.vcxproj]
         Generating run/RelWithDebInfo/dtds/xcap-error.dtd
    87>./asn1/kerberos/packet-kerberos-template.c(268): fatal error C1083: Cannot open include file: 'krb5.h': No such file or directory (C:\Users\robcra01\Documents\WiresharkBitbucket\wireshark\epan\dissectors\packet-kerberos.c) [C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\epan\dissectors\dissectors.vcxproj]
         C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 9009. [C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\generate_developer-guide.xml.vcxproj]
         C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 9009. [C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\generate_user-guide.xml.vcxproj]
         LINK : fatal error LNK1181: cannot open input file 'gmodule-2.0.lib' [C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\wsutil\wsutil.vcxproj]
         C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 9009. [C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\docbook\release_notes_html.vcxproj]
         ./asn1/kerberos/packet-kerberos-template.c(268): fatal error C1083: Cannot open include file: 'krb5.h': No such file or directory (C:\Users\robcra01\Documents\WiresharkBitbucket\wireshark\epan\dissectors\packet-kerberos.c) [C:\Users\robcra01\Documents\WiresharkBitbucket\wsbuild\epan\dissectors\dissectors.vcxproj]
    5 Error(s)

Robert

On 29 March 2016 at 10:29, Robert Cragie <robert.cragie@xxxxxxxxxxxxx> wrote:
It's a fork from 3771a79 with some custom changes. We tend to use the GTK version as it used to be more stable than the Qt version. I am not sure if that still is the case and I know GTK will be deprecated - is it at the point now where Qt version is better maintained, i.e. from the point of view more people are generally using it these days in preference to the GTK version?

I don't mind adding in Qt if I have to but was managing fine to build just GTK previously. I guess the "Can't find Qt. It will become a problem at some point" warning is now true :-)

Robert

On 27 March 2016 at 20:00, Joerg Mayer <jmayer@xxxxxxxxx> wrote:
Hello,

On Fri, Mar 25, 2016 at 02:46:35AM +0000, Robert Cragie wrote:
> Following the announcement about deprecating nmake (which I have been using
> successfully for years), I thought I would try using CMake. I deliberately
> only want to build the GTK version so I use the following options with
> CMake:
>
> cmake -DENABLE_CHM_GUIDES=on -DBUILD_wireshark=off -G "Visual Studio 12"
> ..\wireshark
>
> CMake runs but there are some errors at the end:
>
> CMake Error at packaging/nsis/CMakeLists.txt:199 (add_custom_command):
>   Error evaluating generator _expression_:
>
>     $<TARGET_FILE:wireshark>
>
>   No target "wireshark"
...
> Any ideas here?

Which version of wireshark?
And why do you want to build the GTK-Only version?

   Jörg
--
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe