2023-01-12 16:07:04 +00:00
|
|
|
This document contains instructions to build and install Wireshark on Windows
|
2021-10-26 15:04:08 +00:00
|
|
|
using GCC and MinGW-w64 with the MSYS2 distribution.
|
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
How to setup MSYS2:
|
2021-10-26 15:04:08 +00:00
|
|
|
|
|
|
|
1. Download and install MSYS2 from https://www.msys2.org.
|
|
|
|
|
|
|
|
2. Open the MSYS2 MSYS shell.
|
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
3. Update with "pacman -Syu" as many times as necessary. You also need to
|
|
|
|
have base-devel installed: pacman -S base-devel. Anytime you
|
2021-10-26 15:04:08 +00:00
|
|
|
want to run pacman it's recommended to do so from the MSYS shell.
|
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
How to build the Wireshark MSYS2 package:
|
2021-10-26 15:04:08 +00:00
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
1. Open the MSYS2 MSYS shell.
|
2021-10-26 15:04:08 +00:00
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
2. Create a build directory and copy the PKGBUILD from the source tree:
|
2021-11-14 19:31:25 +00:00
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
$ mkdir build && cd build
|
|
|
|
$ wget https://gitlab.com/wireshark/wireshark/-/raw/master/packaging/msys2/mingw-w64-wireshark-git/PKGBUILD
|
2021-10-26 15:04:08 +00:00
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
3. Build the package:
|
2021-10-26 15:04:08 +00:00
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
$ makepkg-mingw -sCLf
|
2021-11-14 19:31:25 +00:00
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
4. Install it:
|
2021-10-26 15:04:08 +00:00
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
$ pacman -U mingw-w64-*-wireshark-*-any.pkg.tar.zst
|
2021-10-26 15:04:08 +00:00
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
The application must be run from the MINGW64 shell.
|
2021-10-26 15:04:08 +00:00
|
|
|
|
2023-01-15 19:52:21 +00:00
|
|
|
Currently the MinGW-w64 build has the following limitations compared to
|
|
|
|
the MSVC build:
|
2021-10-26 15:04:08 +00:00
|
|
|
|
2023-01-15 19:52:21 +00:00
|
|
|
* The Event Tracing for Windows (ETW) extcap is not supported.
|
|
|
|
|
|
|
|
* Lua version is 5.1 (MSVC uses Lua 5.2) and does not have UTF-8 patches[1].
|
2021-10-26 15:04:08 +00:00
|
|
|
|
|
|
|
* Some optional dependencies are not available in the official MSYS2
|
2021-11-07 20:37:00 +00:00
|
|
|
repositories. These are:
|
2021-11-14 19:31:25 +00:00
|
|
|
|
|
|
|
- AirPcap
|
|
|
|
- libsmi
|
|
|
|
- Kerberos
|
|
|
|
- SBC codec
|
|
|
|
- BCG729 codec
|
2021-11-07 20:37:00 +00:00
|
|
|
|
2023-01-12 16:07:04 +00:00
|
|
|
* There is currently no way to build a stand-alone distributable binary
|
|
|
|
package, similar to the Wireshark NSIS installer built using Visual Studio.
|
2021-10-26 15:04:08 +00:00
|
|
|
|
2023-01-15 19:52:21 +00:00
|
|
|
References:
|
|
|
|
|
|
|
|
[1]https://github.com/Lekensteyn/lua-unicode
|