2018-02-05 16:59:45 +00:00
// WSDG Chapter Tools
2014-08-08 00:30:45 +00:00
2022-01-16 18:55:52 +00:00
[#ChapterTools]
2014-02-01 01:47:21 +00:00
== Tool Reference
2022-01-16 18:55:52 +00:00
[#ChToolsIntro]
2014-02-01 01:47:21 +00:00
=== Introduction
2018-05-02 00:33:27 +00:00
This chapter will provide you with information about the various tools
needed for Wireshark development. None of the tools mentioned in this
chapter are needed to run Wireshark. They are only needed to build it.
Most of these tools have their roots on UNIX or UNIX-like platforms such
as Linux, but Windows ports are also available. Therefore the tools are
available in different "flavours":
2018-05-15 06:53:34 +00:00
* UNIX and UNIX-like platforms: The tools should be commonly available
2019-01-08 18:12:43 +00:00
on the supported UNIX and UNIX-like platforms. Cygwin is unsupported.
2018-05-02 00:33:27 +00:00
* Windows native: Some tools are available as native Windows tools, no
special emulation is required. Many of these tools can be installed
2019-07-20 15:13:59 +00:00
(and updated) using https://chocolatey.org[Chocolatey], a Windows
2018-05-02 00:33:27 +00:00
package manager similar to the Linux package managers apt-get or yum.
2014-02-01 01:47:21 +00:00
[WARNING]
.Follow the directions
====
Unless you know exactly what you are doing, you should strictly follow the recommendations given in <<ChapterSetup>>.
====
The following sections give a very brief description of
what a particular tool is doing, how it is used in the
Wireshark project and how it can be installed and
tested.
Documentation for these tools is outside the scope of this document. If you need
further information on using a specific tool you should find lots of useful
information on the web, as these tools are commonly used. You can also get help
2018-03-16 22:20:18 +00:00
for the UNIX based tools with `**toolname** --help` or the man page via `man
**toolname**`.
2014-02-01 01:47:21 +00:00
You will find explanations of the tool usage for some of the specific
development tasks in <<ChapterSources>>.
2022-01-16 18:55:52 +00:00
[#ChToolsChocolatey]
2014-08-22 23:21:45 +00:00
=== Chocolatey
Chocolatey is a Windows package manager that can be used to install (and update)
2017-08-04 20:53:14 +00:00
many of the packages required for Wireshark development. Chocolatey can be
2019-07-20 15:13:59 +00:00
obtained from the https://chocolatey.org[website] or from a Command Prompt:
2014-08-22 23:21:45 +00:00
2018-03-16 22:20:18 +00:00
[source,cmd]
2014-08-22 23:21:45 +00:00
----
2018-02-04 19:39:56 +00:00
C:\>@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString(_https://chocolatey.org/install.ps1_))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
2014-08-22 23:21:45 +00:00
----
or a Powershell prompt:
2018-03-16 22:20:18 +00:00
[source,cmd]
2014-08-22 23:21:45 +00:00
----
2018-02-04 19:39:56 +00:00
PS:\>iex ((new-object net.webclient).DownloadString(_https://chocolatey.org/install.ps1_))
2014-08-22 23:21:45 +00:00
----
2018-05-02 00:33:27 +00:00
Chocolatey sometimes installs packages in unexpected locations. Python
is a notable example. While it's typically installed in a top-level
2018-10-13 13:56:02 +00:00
directory, e.g. _C:\Python37_ or in %PROGRAMFILES%, e.g. _C:\Program
Files\Python37_, Chocolatey tends to install it under
2018-05-02 00:33:27 +00:00
_C:\ProgramData\chocolatey_ or _C:\Tools_. If you want to avoid this
2020-10-11 21:24:12 +00:00
behavior you'll probably want to install Python using the packages from
2018-05-02 00:33:27 +00:00
python.org.
2017-08-04 20:53:14 +00:00
2020-05-26 23:57:19 +00:00
Other package managers for Windows include the https://docs.microsoft.com/en-us/windows/package-manager/[Windows Package Manager (winget)] and https://scoop.sh/[Scoop].
2022-01-08 21:21:41 +00:00
As of January 2022 neither option provides all of the packages we require, but that might change in the future.
2020-05-26 23:57:19 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsCMake]
2017-08-04 20:53:14 +00:00
2018-03-16 00:19:06 +00:00
=== CMake
2021-12-31 20:47:01 +00:00
Wireshark’ s build environment can be configured using CMake on various UNIX-like platforms, including Linux, macOS, and *BSD, and on Windows.
CMake is designed to support out-of-tree builds - so much so that in-tree builds do not work properly in all cases.
Along with being cross-platform, CMake supports many build tools and environments including traditional make, Ninja, and MSBuild.
2017-08-04 20:53:14 +00:00
Building with CMake typically includes creating a build directory and
specifying a *generator*, aka a build tool. For example, to build
2018-02-04 19:39:56 +00:00
Wireshark using Ninja in the directory _wireshark-ninja_ you might
2017-08-04 20:53:14 +00:00
run the following commands:
2018-03-16 22:20:18 +00:00
[source,sh]
2017-08-04 20:53:14 +00:00
----
# Starting from your Wireshark source directory, create a build directory
# alongside it.
$ cd ..
2017-08-18 19:32:17 +00:00
$ mkdir wireshark-ninja
$ cd wireshark-ninja
2017-08-04 20:53:14 +00:00
# Assumes your source directory is named "wireshark".
$ cmake -G Ninja ../wireshark
$ ninja (or cmake --build .)
----
2022-04-22 17:56:49 +00:00
Using CMake on Windows is described further in <<ChWindowsGenerate>>.
2017-08-04 20:53:14 +00:00
Along with specifying a generator with the `-G` flag you can set variables
using the `-D` flag. Useful variables and generators include the following:
2018-03-16 17:33:58 +00:00
-DBUILD_wireshark=OFF:: Don't build the Wireshark GUI application.
Each command line utility has its own BUILD_xxx flag as well. For
example, you can use -DBUILD_mmdbresolve=OFF to disable mmdbresolve.
2022-05-23 16:47:04 +00:00
-DENABLE_CCACHE=ON:: Build using the ccache compiler cache.
2017-08-04 20:53:14 +00:00
-DENABLE_CAP=OFF:: Disable the POSIX capabilities check
-DCMAKE_BUILD_TYPE=Debug:: Enable debugging symbols
2018-03-16 17:33:58 +00:00
-DCARES_INCLUDE_DIR=/your/custom/cares/include, -DCARES_LIBRARY=/your/custom/cares/lib/libcares.so::
Let you set the path to a locally-compiled version of c-ares. Most
optional libraries have xxx_INCLUDE_DIR and xxx_LIB flags that let you
control their discovery.
2017-08-04 20:53:14 +00:00
2020-05-27 22:50:10 +00:00
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.12::
Specify the minimum macOS version for Wireshark and each command line utility.
Note that this doesn’ t affect the minimum target for third-party libraries.
For example, if you’ re building for macOS 10.12 you’ ll need to install https://doc.qt.io/archives/qt-5.13/supported-platforms.html[Qt 5.14 or earlier] and ensure that other libraries support macOS 10.12, for example by running `tools/macos-setup.sh -t 10.12`.
2017-08-04 20:53:14 +00:00
-DENABLE_APPLICATION_BUNDLE=OFF:: Disable building an application bundle (Wireshark.app) on macOS
2018-03-16 17:33:58 +00:00
You can list all build variables (with help) by running `cmake -LH [options]
../<Name_of_WS_source_dir>`. This lists the cache of build variables
2017-08-04 20:53:14 +00:00
after the cmake run. To only view the current cache, add option `-N`.
2022-06-03 20:47:41 +00:00
Depending on your needs, it might be useful to save your CMake configuration options in a file outside your build directory.
CMake supports this via its https://cmake.org/cmake/help/v3.23/manual/cmake-presets.7.html[presets] option.
For example, adding the follwing to `CMakeUserPresets.json` would let you build using Ninja in the `build` directory, enable ccache, and set a custom Qt directory by running `cmake --preset mydev`:
[source,json]
----
{
2022-08-23 10:35:42 +00:00
"version": 4,
2022-06-03 20:47:41 +00:00
"configurePresets": [
{
"name": "mydev",
"displayName": "Local development",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
2022-08-23 10:35:42 +00:00
"ENABLE_CCACHE": "ON"
2022-06-03 20:47:41 +00:00
},
"environment": {
"CMAKE_PREFIX_PATH": "/usr/local/Qt6"
}
}
]
}
----
2022-05-23 16:47:04 +00:00
2018-03-16 17:33:58 +00:00
After running cmake, you can always run `make help` to see a list of all possible make targets.
2017-08-04 20:53:14 +00:00
Note that CMake honors user umask for creating directories as of now. You should set
the umask explicitly before running the `install` target.
CMake links:
2018-03-16 17:33:58 +00:00
The home page of the CMake project: https://cmake.org/
2017-08-04 20:53:14 +00:00
Official documentation: https://cmake.org/documentation/
2019-07-20 15:13:59 +00:00
About CMake in general and why KDE4 uses it: https://lwn.net/Articles/188693/
2017-08-04 20:53:14 +00:00
2019-07-20 15:13:59 +00:00
Useful variables: https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/Useful-Variables
2017-08-04 20:53:14 +00:00
2019-07-20 15:13:59 +00:00
Frequently Asked Questions: https://gitlab.kitware.com/cmake/community/wikis/FAQ
2017-08-04 20:53:14 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsGNUChain]
2018-03-16 00:19:06 +00:00
2019-01-03 22:21:59 +00:00
=== GNU Compiler Toolchain (UNIX And UNIX-like Platforms)
2018-03-16 00:19:06 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsGCC]
2018-03-16 00:19:06 +00:00
2019-01-03 22:21:59 +00:00
==== gcc (GNU Compiler Collection)
2018-03-16 00:19:06 +00:00
2019-01-03 22:21:59 +00:00
The GCC C compiler is available for most UNIX and UNIX-like operating
systems.
2018-03-16 00:19:06 +00:00
If GCC isn't already installed or available
as a package for your platform, you can get it at:
2019-07-20 15:13:59 +00:00
https://gcc.gnu.org/[].
2018-03-16 00:19:06 +00:00
After correct installation, typing at the
bash command line prompt:
2018-03-16 22:20:18 +00:00
[source,sh]
2018-03-16 00:19:06 +00:00
----
$ gcc --version
----
should result in something like
----
gcc (Ubuntu 4.9.1-16ubuntu6) 4.9.1
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
----
Your version string may vary, of course.
2022-01-16 18:55:52 +00:00
[#ChToolsGDB]
2014-02-01 01:47:21 +00:00
2019-01-03 22:21:59 +00:00
==== gdb (GNU Project Debugger)
2014-02-01 01:47:21 +00:00
GDB is the debugger for the GCC compiler. It is
2014-12-28 18:03:49 +00:00
available for many (if not all) UNIX-like platforms.
2014-02-01 01:47:21 +00:00
2019-01-03 22:21:59 +00:00
If you don't like debugging using the command line, many
https://sourceware.org/gdb/wiki/GDB%20Front%20Ends[GUI frontends for it
available], including Qt Creator, CLion, and Eclipse.
2014-02-01 01:47:21 +00:00
If gdb isn't already installed or available
as a package for your platform, you can get it at:
2019-07-20 15:13:59 +00:00
https://www.gnu.org/software/gdb/gdb.html[].
2014-02-01 01:47:21 +00:00
After correct installation:
2018-03-16 22:20:18 +00:00
[source,sh]
2014-02-01 01:47:21 +00:00
----
$ gdb --version
----
should result in something like:
----
2019-07-20 15:13:59 +00:00
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
2014-12-28 18:03:49 +00:00
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
2019-07-20 15:13:59 +00:00
There is NO WARRANTY, to the extent permitted by law.
2014-02-01 01:47:21 +00:00
----
Your version string may vary, of course.
2022-01-16 18:55:52 +00:00
[#ChToolsGNUmake]
2014-02-01 01:47:21 +00:00
==== make (GNU Make)
[NOTE]
2014-08-22 23:21:45 +00:00
.GNU make isn't supported either for Windows
2014-02-01 01:47:21 +00:00
GNU Make is available for most of the UNIX-like
2014-08-22 23:21:45 +00:00
platforms.
2014-02-01 01:47:21 +00:00
If GNU Make isn't already installed or
available as a package for your platform, you can get it at:
2019-07-20 15:13:59 +00:00
https://www.gnu.org/software/make/[].
2014-02-01 01:47:21 +00:00
After correct installation:
2018-03-16 22:20:18 +00:00
[source,sh]
2014-02-01 01:47:21 +00:00
----
$ make --version
----
should result in something like:
----
2014-12-28 18:03:49 +00:00
GNU Make 4.0
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2013 Free Software Foundation, Inc.
Licence GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
2014-02-01 01:47:21 +00:00
----
Your version string may vary, of course.
2018-05-15 06:53:34 +00:00
==== Ninja
Ninja is an alternative to make, and is available for many of the
UNIX-like platforms. It runs builds faster than make does.
It is designed to have its build files generated by tools such as CMake;
to generate build files for Ninja, run CMake with the `-G Ninja` flag.
If Ninja isn't already installed, see the list of suggestions for Ninja
packages at:
https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages.
If Ninja isn't already installed and isn't
available as a package for your platform, you can get it from:
https://ninja-build.org. You can download the source code or binaries
for Linux, macOS, and Windows (we have not tested Ninja on Windows).
2022-01-16 18:55:52 +00:00
[#ChToolsMSChain]
2018-10-12 21:14:07 +00:00
2014-08-08 00:30:45 +00:00
=== Microsoft compiler toolchain (Windows native)
2014-02-01 01:47:21 +00:00
2018-02-04 19:39:56 +00:00
To compile Wireshark on Windows using the Microsoft C/{cpp}
2021-05-05 20:37:56 +00:00
compiler (MSVC), you'll need:
2014-02-01 01:47:21 +00:00
2018-02-04 19:39:56 +00:00
. C compiler (_cl.exe_)
2014-02-01 01:47:21 +00:00
2018-02-04 19:39:56 +00:00
. Assembler (_ml.exe_ for 32-bit targets and _ml64.exe_ for 64-bit targets)
2014-02-01 01:47:21 +00:00
2018-02-04 19:39:56 +00:00
. Linker (_link.exe_)
2014-02-01 01:47:21 +00:00
2018-02-04 19:39:56 +00:00
. Resource Compiler (_rc.exe_)
2017-08-04 20:53:14 +00:00
2019-02-08 20:26:42 +00:00
. C runtime headers and libraries (e.g. _stdio.h_, _vcruntime140.lib_)
2014-02-01 01:47:21 +00:00
. Windows platform headers and libraries (e.g.
2019-04-30 22:48:06 +00:00
_windows.h_, _WS2_32.lib_)
2014-02-01 01:47:21 +00:00
2017-08-04 20:53:14 +00:00
==== Official Toolchain Packages And Alternatives
2014-02-01 01:47:21 +00:00
2019-02-08 20:26:42 +00:00
Official releases are or were built with the following Visual {cpp} versions:
2022-01-31 03:01:06 +00:00
// * Wireshark 4.0.x: Microsoft Visual {cpp} 2022.
2021-12-05 18:41:32 +00:00
* Wireshark 3.6.x: Microsoft Visual {cpp} 2019.
2021-05-05 20:37:56 +00:00
* Wireshark 3.4.x: Microsoft Visual {cpp} 2019.
2019-11-20 19:27:17 +00:00
* Wireshark 3.2.x: Microsoft Visual {cpp} 2019.
2019-02-08 20:26:42 +00:00
* Wireshark 3.0.x: Microsoft Visual {cpp} 2017.
* Wireshark 2.6.x: Microsoft Visual {cpp} 2017.
* Wireshark 2.4.x: Microsoft Visual {cpp} 2015.
* Wireshark 2.2.x: Microsoft Visual {cpp} 2013.
* Wireshark 2.0.x: Microsoft Visual {cpp} 2013.
* Wireshark 1.12.x: Microsoft Visual {cpp} 2010 SP1.
* Wireshark 1.10.x: Microsoft Visual {cpp} 2010 SP1.
* Wireshark 1.8.x: Microsoft Visual {cpp} 2010 SP1.
* Wireshark 1.6.x: Microsoft Visual {cpp} 2008 SP1.
* Wireshark 1.4.x: Microsoft Visual {cpp} 2008 SP1.
* Wireshark 1.2.x: Microsoft Visual {cpp} 2008 SP1.
* Wireshark 1.0.x and earlier: Microsoft Visual {cpp} 6.0.
2014-08-22 23:21:45 +00:00
2017-08-04 20:53:14 +00:00
Using the release compilers is recommended for Wireshark development work.
2014-08-22 23:21:45 +00:00
2019-02-08 20:26:42 +00:00
“Community” editions of Visual Studio such as “Visual Studio Community
2022-01-31 03:01:06 +00:00
2022” can be used to compile Wireshark but any PortableApps packages you
2019-02-08 20:26:42 +00:00
create with them might require the installation of a separate Visual
{cpp} Redistributable package on any machine on which the PortableApps
package is to be used. See <<msvc-runtime-redistributable>> below for
more details.
2014-02-01 01:47:21 +00:00
2018-02-04 19:39:56 +00:00
However, you might already have a different Microsoft {cpp} compiler
2018-10-12 19:11:06 +00:00
installed. It should be possible to use any of the following with the
considerations listed. You will need to sign up for a
https://visualstudio.microsoft.com/dev-essentials/[Visual Studio Dev
Essentials] account if you don't have a Visual Studio (MSDN)
subscription. The older versions can be downloaded from
https://visualstudio.microsoft.com/vs/older-downloads/[].
2014-02-01 01:47:21 +00:00
2022-01-31 03:01:06 +00:00
==== Visual {cpp} 2022 Community Edition
IDE + Debugger?:: Yes
SDK required for 64-bit builds?:: No
CMake Generator: *`Visual Studio 17`*
You can use Chocolatey to install Visual Studio, e.g:
[source,cmd]
----
PS:\> choco install visualstudiocommunity2022 visualstudio2022-workload-nativedesktop
----
==== Visual {cpp} 2019 Community Edition
2014-02-01 01:47:21 +00:00
2014-08-22 23:21:45 +00:00
IDE + Debugger?:: Yes
2018-10-12 19:11:06 +00:00
SDK required for 64-bit builds?:: No
2019-11-20 19:27:17 +00:00
CMake Generator: *`Visual Studio 16`*
2018-10-12 19:11:06 +00:00
2014-08-22 23:21:45 +00:00
You can use Chocolatey to install Visual Studio, e.g:
2014-02-01 01:47:21 +00:00
2018-03-16 22:20:18 +00:00
[source,cmd]
2014-08-22 23:21:45 +00:00
----
2019-11-20 19:27:17 +00:00
PS:\> choco install visualstudiocommunity2019 visualstudio2019-workload-nativedesktop
2014-08-22 23:21:45 +00:00
----
2014-02-01 01:47:21 +00:00
==== cl.exe (C Compiler)
The following table gives an overview of the possible
Microsoft toolchain variants and their specific C compiler
versions ordered by release date.
2019-09-16 17:27:45 +00:00
|===
2022-01-31 03:01:06 +00:00
| Compiler Package | cl.exe | _MSC_VER
| Visual Studio 2019 | 16.0.0 | 1920
| Visual Studio 2019 | 16.1.2 | 1921
| Visual Studio 2019 | 16.2.3 | 1922
| Visual Studio 2019 | 16.3.2 | 1923
| Visual Studio 2022 | 17.0 | 1930
| Visual Studio 2022 | 17.1 | 1931
2019-09-16 17:27:45 +00:00
|===
2014-02-01 01:47:21 +00:00
After correct installation of the toolchain, typing
2014-08-22 23:21:45 +00:00
at the Visual Studio Command line prompt (cmd.exe):
2014-02-01 01:47:21 +00:00
2018-03-16 22:20:18 +00:00
[source,cmd]
2014-02-01 01:47:21 +00:00
----
> cl
----
should result in something like:
----
2019-11-20 19:27:17 +00:00
Microsoft (R) C/C++ Optimizing Compiler Version 19.23.28106.4 for x64
2014-08-22 23:21:45 +00:00
Copyright (C) Microsoft Corporation. All rights reserved.
2014-02-01 01:47:21 +00:00
2019-11-20 19:27:17 +00:00
usage: cl [ option... ] filename... [ /link linkoption... ]
2014-02-01 01:47:21 +00:00
----
However, the version string may vary.
2022-01-31 03:01:06 +00:00
Documentation on recent versions of the compiler can be found at
https://docs.microsoft.com/en-us/cpp/build/reference/compiling-a-c-cpp-program[Microsoft Docs]
2014-08-22 23:21:45 +00:00
2014-02-01 01:47:21 +00:00
==== link.exe (Linker)
2014-08-22 23:21:45 +00:00
After correct installation, typing at the Visual Studio Command line prompt (cmd.exe):
2018-03-16 22:20:18 +00:00
[source,cmd]
2014-08-22 23:21:45 +00:00
----
> link
----
should result in something like:
----
2019-11-20 19:27:17 +00:00
Microsoft (R) Incremental Linker Version 14.23.28106.4
2014-08-22 23:21:45 +00:00
Copyright (C) Microsoft Corporation. All rights reserved.
usage: LINK [options] [files] [@commandfile]
...
----
However, the version string may vary.
2022-01-31 03:01:06 +00:00
Documentation on recent versions of the linker can be found at
https://docs.microsoft.com/en-us/cpp/build/reference/linking[Microsoft Docs]
2014-02-01 01:47:21 +00:00
2022-01-16 18:55:52 +00:00
[#msvc-runtime-redistributable]
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
==== Visual {cpp} Runtime “Redistributable” Files
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
Please note: The following is not legal advice. Ask your preferred
lawyer instead. It’ s the authors view and this view might be wrong.
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
Wireshark and its libraries depend on POSIX functions such as fopen()
and malloc(). On Windows, these functions are provided by the Microsoft
2021-06-16 12:51:07 +00:00
Visual {cpp} C Runtime (CRT). There are many different versions of the CRT and
Visual {cpp} 2015 and later use the _Universal CRT_ (UCRT).
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
The Universal CRT comes standard with Windows 10 and is installed as part
of Windows Update on earlier versions of Windows. The Wireshark .exe
2022-01-31 03:01:06 +00:00
installers include redistributables (_vc_redist.x64.exe_ or
_vc_redist.x86.exe_) which ensure that the Universal CRT is installed and
2019-01-03 20:01:19 +00:00
up to date.
2014-02-01 01:47:21 +00:00
[NOTE]
.Make sure you're allowed to distribute this file
====
The files to redistribute must be mentioned in the
redist.txt file of the compiler package. Otherwise it
can't be legally redistributed by third parties like
us.
====
2018-10-12 19:11:06 +00:00
The following Microsoft Docs link is recommended for the
2014-02-01 01:47:21 +00:00
interested reader:
2022-01-31 03:01:06 +00:00
https://docs.microsoft.com/en-us/cpp/windows/redistributing-visual-cpp-files[Redistributing Visual {cpp} Files]
2014-02-01 01:47:21 +00:00
2022-01-31 03:01:06 +00:00
In all cases where _vc_redist.x64.exe_ or _vc_redist.x86.exe_ is
2019-01-03 20:01:19 +00:00
downloaded it should be downloaded to the directory into which the
support libraries for Wireshark have been downloaded and installed. This
directory is specified by the `WIRESHARK_BASE_DIR` or
`WIRESHARK_LIB_DIR` environment variables. It need not, and should not,
be run after being downloaded.
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
==== Windows Platform SDK
2014-02-01 01:47:21 +00:00
The Windows Platform SDK (PSDK) or Windows SDK is a free
(as in beer) download and contains platform specific headers and
2019-01-03 20:01:19 +00:00
libraries (e.g. _windows.h_, _WSock32.lib_, etc.). As new Windows
features evolve in time, updated SDKs become available that
2014-02-01 01:47:21 +00:00
include new and updated APIs.
2018-10-12 22:03:08 +00:00
When you purchase a commercial Visual Studio or use the Community
Edition, it will include an SDK.
2014-02-01 01:47:21 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsDocumentationToolchain]
2018-03-06 16:30:42 +00:00
=== Documentation Toolchain
2021-06-18 10:20:51 +00:00
Wireshark’ s documentation is split across two directories.
The `doc` directory contains man pages written in Asciidoctor markup.
The `docbook` directory contains the User’ s Guide, Developer’ s Guide, and the release notes, which are also written in Asciidoctor markup.
The split is for historical reasons (described below), and the documentation will likely be consolidated into one directory in the future.
2018-03-06 16:30:42 +00:00
Our various output formats are generated using the following tools.
Intermediate formats are in _italics_.
2021-06-18 10:20:51 +00:00
Man page roff:: Asciidoctor
Man page HTML:: Asciidoctor
2020-04-14 18:49:04 +00:00
2018-03-06 16:30:42 +00:00
Guide HTML:: Asciidoctor → _DocBook XML_ → xsltproc + DocBook XSL
Guide PDF:: Asciidoctor
Release notes HTML:: Asciidoctor
Release notes text:: Asciidoctor → _HTML_ → html2text.py
==== Asciidoctor
2014-02-01 01:47:21 +00:00
2021-06-22 21:42:09 +00:00
https://asciidoctor.org/[Asciidoctor] comes in several flavors: a Ruby gem (Asciidoctor), a Java bundle (AsciidoctorJ), and transpiled JavaScript (Asciidoctor.js).
2021-09-22 18:43:18 +00:00
The Ruby and Java flavors can be used to build Wireshark’ s documentation, but the JavaScript flavor doesn’ t support all of the features that we require.
// We need docbook5, PDF & EPUB output and macros
2014-02-01 01:47:21 +00:00
2020-04-14 18:49:04 +00:00
The guides and release notes were originally written in DocBook (hence the directory name).
They were later converted to AsciiDoc and then migrated to Asciidoctor.
2021-06-18 10:20:51 +00:00
The man pages were originally in Perl’ s POD (Plain Old Documentation) format and were later converted to Asciidoctor.
2022-07-22 20:47:59 +00:00
We use Asciidoctor’ s modern (>= 1.5.0) syntax.
2014-02-01 01:47:21 +00:00
2021-06-22 21:42:09 +00:00
PDF output requires Asciidoctor’ s PDF backend.
2021-09-22 18:43:18 +00:00
It is included with AsciidoctorJ but _not_ with Asciidoctor.
2018-03-06 16:30:42 +00:00
2020-04-14 18:49:04 +00:00
==== DocBook XML and XSL
2021-06-02 00:02:08 +00:00
Converting from DocBook to HTML requires the DocBook DTD
(http://www.sagehill.net/docbookxsl/ToolsSetup.html)
and DocBook stylesheets
2020-04-14 18:49:04 +00:00
(http://www.sagehill.net/docbookxsl/InstallStylesheets.html).
These are available via installable packages on most Linux distributions, Chocolatey, and Homebrew.
==== xsltproc
2018-03-06 16:30:42 +00:00
2020-04-14 18:49:04 +00:00
http://xmlsoft.org/xslt/[xsltproc] converts DocBook XML to various formats based on XSL stylesheets.
It either ships as part of the operating system or is available via an installable package on most Linux distributions, Chocolatey, and Homebrew.
2018-03-06 16:30:42 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsDebugger]
2014-02-01 01:47:21 +00:00
2020-04-14 18:49:04 +00:00
=== Debugger
2014-02-01 01:47:21 +00:00
Using a good debugger can save you a lot of development time.
The debugger you use must match the C compiler Wireshark was compiled with,
otherwise the debugger will simply fail or you will only see a lot of garbage.
2022-01-16 18:55:52 +00:00
[#ChToolsMSVCDebugger]
2014-02-01 01:47:21 +00:00
2020-04-14 18:49:04 +00:00
==== Visual Studio Integrated Debugger
2014-02-01 01:47:21 +00:00
You can use the integrated debugger of Visual Studio if your toolchain includes
2016-07-05 15:06:16 +00:00
it. Open the solution in your build directory and build and debug as normal
with a Visual Studio solution.
To set the correct paths for Visual Studio when running Wireshark under the
debugger, add the build output directory to the path before opening Visual
Studio from the same command prompt, e.g.
2018-03-16 22:20:18 +00:00
[source,cmd]
2016-07-05 15:06:16 +00:00
----
2019-11-28 09:08:13 +00:00
C:\Development\wsbuild64>set PATH="%PATH%;C:\Development\wsbuild64\run\RelwithDebInfo"
C:\Development\wsbuild64>wireshark.sln
2016-07-05 15:06:16 +00:00
----
for PowerShell use
2018-03-16 22:20:18 +00:00
[source,cmd]
2016-07-05 15:06:16 +00:00
----
2019-11-28 09:08:13 +00:00
PS C:\Development\wsbuild64>$env:PATH += ";$(Convert-Path run\RelWithDebInfo)"
PS C:\Development\wsbuild64>wireshark.sln
2016-07-05 15:06:16 +00:00
----
When Visual Studio has finished loading the solution, set the executable to
be run in the debugger, e.g. Executables\Wireshark, by right clicking it in
the Solution Explorer window and selecting "Set as StartUp Project". Also
set the Solution Configuration (usually RelWithDebInfo) from the droplist on
the toolbar.
NOTE: Currently Visual Studio regards a command line build as incomplete, so
will report that some items need to be built when starting the debugger. These
can either be rebuilt or ignored as you wish.
2014-02-01 01:47:21 +00:00
2014-12-28 18:03:49 +00:00
The normal build is an optimised release version so debugging can be a bit
difficult as variables are optimised out into registers and the execution
order of statements can jump around.
2015-11-01 21:07:42 +00:00
If you require a non-optimised version, then build using a debug configuration.
2014-02-01 01:47:21 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsMSDebuggingTools]
2014-02-01 01:47:21 +00:00
2020-04-14 18:49:04 +00:00
==== Debugging Tools For Windows
2014-02-01 01:47:21 +00:00
You can also use the Microsoft Debugging Tools for Windows toolkit, which is a
2018-02-04 23:15:02 +00:00
standalone GUI debugger. Although it’ s not that comfortable compared to
2014-02-01 01:47:21 +00:00
debugging with the Visual Studio integrated debugger it can be helpful if you
have to debug on a machine where an integrated debugger is not available.
2014-12-28 18:03:49 +00:00
You can get it free of charge from Microsoft in several ways, see the
2018-10-12 19:11:06 +00:00
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/[Debugging tools for Windows] page.
2014-02-01 01:47:21 +00:00
2014-08-22 23:21:45 +00:00
You can also use Chocolatey to install WinDbg:
2018-03-16 22:20:18 +00:00
[source,cmd]
2014-08-22 23:21:45 +00:00
----
2015-02-02 22:32:28 +00:00
PS:\> choco install windbg
2014-08-22 23:21:45 +00:00
----
2014-02-01 01:47:21 +00:00
2014-12-28 18:03:49 +00:00
To debug Wireshark using WinDbg, open the built copy of Wireshark using
the File -> Open Executable... menu,
2019-11-28 09:08:13 +00:00
i.e. C:\Development\wsbuild64\run\RelWithDebInfo\Wireshark.exe. To set a
2014-12-28 18:03:49 +00:00
breakpoint open the required source file using the File -> Open Source File...
menu and then click on the required line and press F9. To run the program,
press F5.
2015-11-01 21:07:42 +00:00
If you require a non-optimised version, then build using a debug configuration, e.g.
2017-08-18 19:32:17 +00:00
*`msbuild /m /p:Configuration=Debug Wireshark.sln`*. The build products will be found
2019-11-28 09:08:13 +00:00
in C:\Development\wsbuild64\run\Debug\.
2015-11-01 21:07:42 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsBash]
2014-02-01 01:47:21 +00:00
=== bash
The bash shell is needed to run several shell scripts.
2022-01-16 18:55:52 +00:00
[#ChToolsGNUBash]
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
[discrete]
==== Unix
2014-02-01 01:47:21 +00:00
2018-05-02 00:33:27 +00:00
Bash (the GNU Bourne-Again SHell) is available for most UNIX and
UNIX-like platforms. If it isn't already installed or available as a
package for your platform, you can get it at
2019-07-20 15:13:59 +00:00
https://www.gnu.org/software/bash/bash.html[].
2014-02-01 01:47:21 +00:00
After correct installation, typing at the bash command line prompt:
2018-03-16 22:20:18 +00:00
[source,sh]
2014-02-01 01:47:21 +00:00
----
$ bash --version
----
should result in something like:
----
2018-05-02 00:33:27 +00:00
GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.
2014-02-01 01:47:21 +00:00
----
2018-05-02 00:33:27 +00:00
Your version string will likely vary.
2014-02-01 01:47:21 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsPython]
2014-02-01 01:47:21 +00:00
=== Python
2022-08-07 19:21:26 +00:00
https://python.org/[Python] is an interpreted programming language.
It is used to generate some source files, documentation, testing and other tasks.
Python 3.6 and later is required.
Python 2 is no longer supported.
2014-02-01 01:47:21 +00:00
2014-08-08 00:30:45 +00:00
Python is either included or available as a package on most UNIX-like platforms.
2018-10-13 13:56:02 +00:00
Windows packages and source are available at https://python.org/download/[].
2014-02-01 01:47:21 +00:00
2014-08-22 23:21:45 +00:00
You can also use Chocolatey to install Python:
2018-03-16 22:20:18 +00:00
[source,cmd]
2016-08-16 23:23:30 +00:00
----
2021-06-17 08:41:30 +00:00
PS:\> choco install python3
2016-08-16 23:23:30 +00:00
----
2018-10-13 13:56:02 +00:00
Chocolatey installs Python into _C:\Python37_ by
2016-08-16 23:23:30 +00:00
default. You can verify your Python version by running
2014-02-01 01:47:21 +00:00
2018-03-16 22:20:18 +00:00
[source,sh]
2014-02-01 01:47:21 +00:00
----
2018-10-13 13:56:02 +00:00
$ python3 --version
2014-02-01 01:47:21 +00:00
----
2018-05-15 06:53:34 +00:00
on UNIX-like platforms and
2014-02-01 01:47:21 +00:00
2018-03-16 22:20:18 +00:00
[source,cmd]
2014-02-01 01:47:21 +00:00
----
2015-02-02 22:32:28 +00:00
rem Official package
2016-08-16 23:23:30 +00:00
C:> cd python35
C:Python35> python --version
2015-02-02 22:32:28 +00:00
rem Chocolatey
2016-08-16 23:23:30 +00:00
C:> cd \tools\python3
C:\tools\python3> python --version
2014-02-01 01:47:21 +00:00
----
2014-08-08 00:30:45 +00:00
on Windows. You should see something like
2014-02-01 01:47:21 +00:00
----
2016-08-16 23:23:30 +00:00
Python 3.5.1
2014-02-01 01:47:21 +00:00
----
2014-08-08 00:30:45 +00:00
Your version string may vary of course.
2014-02-01 01:47:21 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsFlex]
2014-02-01 01:47:21 +00:00
2014-08-07 23:56:17 +00:00
=== Flex
2014-02-01 01:47:21 +00:00
2018-02-04 23:15:02 +00:00
Flex is a lexical analyzer generator used for Wireshark’ s display filters, some
2014-08-07 23:56:17 +00:00
file formats, and other features.
2014-02-01 01:47:21 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsUnixFlex]
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
[discrete]
==== Unix
2014-02-01 01:47:21 +00:00
2018-05-02 00:33:27 +00:00
Flex is available for most UNIX and UNIX-like platforms. See the next
section for native Windows options.
2014-02-01 01:47:21 +00:00
2014-08-07 23:56:17 +00:00
If GNU flex isn't already installed or available as a package for your platform
2019-07-20 15:13:59 +00:00
you can get it at https://www.gnu.org/software/flex/[].
2014-08-07 23:56:17 +00:00
After correct installation running the following
2014-02-01 01:47:21 +00:00
2018-03-16 22:20:18 +00:00
[source,sh]
2014-02-01 01:47:21 +00:00
----
$ flex --version
----
should result in something like:
----
flex version 2.5.4
----
2014-08-07 23:56:17 +00:00
Your version string may vary.
2014-02-01 01:47:21 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsWindowsFlex]
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
[discrete]
==== Windows
2014-02-01 01:47:21 +00:00
2020-11-19 01:39:19 +00:00
A native Windows version of flex is available in the _winflexbison3_
2014-08-07 23:56:17 +00:00
https://chocolatey.org/[Chocolatey] package. Note that the executable is named
2018-02-04 19:39:56 +00:00
_win_flex_.
2014-08-07 23:56:17 +00:00
2018-03-16 22:20:18 +00:00
[source,cmd]
2014-08-22 23:21:45 +00:00
----
2020-11-19 01:39:19 +00:00
PS:\> choco install winflexbison3
2014-08-22 23:21:45 +00:00
----
2014-08-07 23:56:17 +00:00
Native packages are available from other sources such as
http://gnuwin32.sourceforge.net/packages/flex.htm[GnuWin]. They aren't
officially supported but _should_ work.
2014-02-01 01:47:21 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsGit]
2014-02-01 01:47:21 +00:00
=== Git client
2017-08-04 20:53:14 +00:00
The Wireshark project uses its own Git repository to keep track of all
the changes done to the source code. Details about the usage of Git in
the Wireshark project can be found in <<ChSrcGitRepository>>.
If you want to work with the source code and are planning to commit your
changes back to the Wireshark community, it is recommended to use a Git
client to get the latest source files. For detailed information about
the different ways to obtain the Wireshark sources, see <<ChSrcObtain>>.
You will find more instructions in <<ChSrcGit>> on how to use the Git
2014-02-01 01:47:21 +00:00
client.
2022-01-16 18:55:52 +00:00
[#ChToolsUnixGit]
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
[discrete]
==== Unix
2014-02-01 01:47:21 +00:00
2018-05-02 00:33:27 +00:00
Git is available for most UNIX and UNIX-like platforms. If Git isn't
already installed or available as a package for your platform, you can
2019-07-20 15:13:59 +00:00
get it at: https://git-scm.com/[].
2014-02-01 01:47:21 +00:00
After correct installation, typing at the bash command line prompt:
2018-03-16 22:20:18 +00:00
[source,sh]
2014-02-01 01:47:21 +00:00
----
$ git --version
----
should result in something like:
----
2018-03-16 22:20:18 +00:00
git version 2.14.1
2014-02-01 01:47:21 +00:00
----
Your version will likely be different.
2022-01-16 18:55:52 +00:00
[#ChToolsWindowsGit]
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
[discrete]
==== Windows
2014-02-01 01:47:21 +00:00
2014-08-08 00:30:45 +00:00
The Git command line tools for Windows can be found at
2019-07-20 15:13:59 +00:00
https://git-scm.com/download/win[] and can also be installed using Chocolatey:
2014-08-22 23:21:45 +00:00
2018-03-16 22:20:18 +00:00
[source,cmd]
2014-08-22 23:21:45 +00:00
----
2015-02-02 22:32:28 +00:00
PS:\> choco install git
2014-08-22 23:21:45 +00:00
----
2014-02-01 01:47:21 +00:00
After correct installation, typing at the command
line prompt (cmd.exe):
2018-03-16 22:20:18 +00:00
[source,cmd]
2014-02-01 01:47:21 +00:00
----
2018-03-16 22:20:18 +00:00
> git --version
2014-02-01 01:47:21 +00:00
----
should result in something like:
----
2018-03-16 22:20:18 +00:00
git version 2.16.1.windows.1
2014-02-01 01:47:21 +00:00
----
However, the version string may vary.
2022-01-16 18:55:52 +00:00
[#ChToolsGitPowerShellExtensions]
2014-08-22 23:21:45 +00:00
2019-01-03 20:01:19 +00:00
=== Git Powershell Extensions (Optional)
2014-08-22 23:21:45 +00:00
A useful tool for command line git on Windows is https://github.com/dahlbyk/posh-git[PoshGit].
Poshgit provides git command completion and alters the prompt to indicate the local working
copy status. You can install it using Chocolatey:
2018-03-16 22:20:18 +00:00
[source,cmd]
2014-08-22 23:21:45 +00:00
----
2019-11-26 17:06:03 +00:00
PS:\> choco install poshgit
2014-08-22 23:21:45 +00:00
----
2022-01-16 18:55:52 +00:00
[#ChToolsGitGUI]
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
=== Git GUI Client (Optional)
2014-02-01 01:47:21 +00:00
Along with the traditional command-line client, several
GUI clients are available for a number of platforms. See
2019-07-20 15:13:59 +00:00
https://git-scm.com/downloads/guis[] for details.
2014-02-01 01:47:21 +00:00
// [[ChToolsUnixGitGUI]]
// XXX Add Gui client section
2022-07-22 20:47:59 +00:00
[#ChToolsPerl]
=== Perl (Optional)
https://www.perl.org[Perl] is an interpreted programming language.
Perl is used to convert various text files into usable source code and for various source code checks.
Perl version 5.6 and above should work fine.
[#ChToolsUnixPerl]
[discrete]
==== Unix
Perl is available for most UNIX and UNIX-like platforms. If it isn't
already installed or available as a package for your platform, you can
get it at https://www.perl.org/[].
After correct installation, typing at the
bash command line prompt:
[source,sh]
----
$ perl --version
----
should result in something like:
----
This is perl 5, version 26, subversion 0 (v5.26.0) built for x86_64-linux-gnu-thread-multi
(with 62 registered patches, see perl -V for more detail)
Copyright 1987-2017, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
----
However, the version string may vary.
[#ChToolsWindowsPerl]
[discrete]
==== Windows
A native Windows Perl package can be obtained from
http://strawberryperl.com/[Strawberry Perl] or
https://www.activestate.com[Active State]. The installation should be
straightforward.
You may also use Chocolatey to install either package:
----
PS:\> choco install strawberryperl
----
or
----
PS:\> choco install activeperl
----
After correct installation, typing at the command
line prompt (cmd.exe):
----
> perl -v
----
should result in something like:
----
This is perl, v5.8.0 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2002, Larry Wall
Binary build 805 provided by ActiveState Corp. http://www.ActiveState.com
Built 18:08:02 Feb 4 2003
...
----
However, the version string may vary.
2022-01-16 18:55:52 +00:00
[#ChToolsPatch]
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
=== patch (Optional)
2014-02-01 01:47:21 +00:00
The patch utility is used to merge a diff file into your own source tree. This
tool is only needed, if you want to apply a patch (diff file) from someone else
(probably from the developer mailing list) to try out in your own private source
tree.
2021-01-11 19:54:32 +00:00
It most cases you may not need the patch tool installed. Git should
2014-02-01 01:47:21 +00:00
handle patches for you.
2020-07-28 01:11:02 +00:00
// You will find more instructions in <<ChSrcPatchApply>>on how to use the patch tool.
2014-02-01 01:47:21 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsUnixPatch]
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
[discrete]
==== Unix
2014-02-01 01:47:21 +00:00
2018-05-02 00:33:27 +00:00
Patch is available for most UNIX and UNIX-like platforms. If GNU patch
isn't already installed or available as a package for your platform, you
2019-07-20 15:13:59 +00:00
can get it at https://www.gnu.org/software/patch/patch.html[].
2014-02-01 01:47:21 +00:00
After correct installation, typing at the
bash command line prompt:
2018-03-16 22:20:18 +00:00
[source,sh]
2014-02-01 01:47:21 +00:00
----
$ patch --version
----
should result in something like:
----
patch 2.5.8
Copyright (C) 1988 Larry Wall
Copyright (C) 2002 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
written by Larry Wall and Paul Eggert
----
However, the version string may vary.
2022-01-16 18:55:52 +00:00
[#ChToolsWindowsPatch]
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
[discrete]
==== Windows
2014-02-01 01:47:21 +00:00
2015-04-06 18:30:33 +00:00
The Windows native Git tools provide patch. A native Windows patch package can be obtained from
2014-02-01 01:47:21 +00:00
http://gnuwin32.sourceforge.net/[]. The
installation should be straightforward.
2022-01-16 18:55:52 +00:00
[#ChToolsNSIS]
2014-02-01 01:47:21 +00:00
2019-01-03 20:01:19 +00:00
=== Windows: NSIS (Optional)
2014-02-01 01:47:21 +00:00
The NSIS (Nullsoft Scriptable Install System) is used to generate
2021-12-17 21:30:05 +00:00
_Wireshark-win64-{wireshark-version}.exe_ from all the files
2014-02-01 01:47:21 +00:00
needed to be installed, including all required DLLs, plugins, and supporting
files.
2017-01-31 00:30:45 +00:00
To install it, download the latest released version from
2019-01-03 20:01:19 +00:00
https://nsis.sourceforge.net[]. NSIS v3 is required. You can also install
2018-03-16 21:19:59 +00:00
it using Chocolatey:
2015-02-02 22:32:28 +00:00
2018-03-16 22:20:18 +00:00
[source,cmd]
2015-02-02 22:32:28 +00:00
----
PS$> choco install nsis
----
2014-02-01 01:47:21 +00:00
2014-09-02 19:18:20 +00:00
You can find more instructions on using NSIS in <<ChSrcNSIS>>.
2022-01-16 18:55:52 +00:00
[#ChToolsWiX]
2019-01-03 20:01:19 +00:00
=== Windows: WiX Toolset (Optional)
2020-03-05 23:36:47 +00:00
The Wix Toolset can be used to generate Windows Installer (_.msi_) packages.
You can download it from the link:https://wixtoolset.org/[WiX web site] or install it using Chocolatey:
2019-01-03 20:01:19 +00:00
[source,cmd]
----
PS$> choco install wixtoolset
----
2022-01-31 03:01:06 +00:00
This also requires the Visual C++ redistributable merge modules, which can be installed by selecting “Individual Components -> {cpp} 2022 Redistributable MSMs” or “...2019 Redistributable MSMs” as appropriate for your compiler in the Visual Studio installer.
2020-03-05 23:36:47 +00:00
Wireshark’ s .msi packaging is currently experimental and the generated packages may be incomplete.
2019-01-03 20:01:19 +00:00
2022-01-16 18:55:52 +00:00
[#ChToolsPortableApps]
2019-01-03 20:01:19 +00:00
=== Windows: PortableApps (Optional)
2014-09-02 19:18:20 +00:00
The PortableApps.com Installer is used to generate
2021-06-19 21:36:10 +00:00
_WiresharkPortable64-{wireshark-version}.paf.exe_ and
_WiresharkPortable32-{wireshark-version}.paf.exe_ from all the files
2014-09-02 19:18:20 +00:00
needed to be installed, including all required DLLs, plugins, and supporting
files.
To install it, do the following:
* Download the latest PortableApps.com Platform release from
2019-07-20 15:13:59 +00:00
https://portableapps.com/[].
2014-09-02 19:18:20 +00:00
* Install the following applications in the PortableApps.com environment:
** PortableApps.com Installer
** PortableApps.com Launcher
You can find more instructions on using the PortableApps.com Installer in
<<ChSrcPortableApps>>.
2014-02-01 01:47:21 +00:00
2018-02-05 16:59:45 +00:00
// End of WSDG Chapter Tools
2014-02-25 20:22:50 +00:00
// vim: set syntax=asciidoc: