55 lines
1.5 KiB

This document contains instructions to build and install Wireshark on Windows
using GCC and MinGW-w64 with the MSYS2 distribution.
How to setup MSYS2:
1. Download and install MSYS2 from https://www.msys2.org.
2. Open the MSYS2 MSYS shell.
3. Update with "pacman -Syu" as many times as necessary. You also need to
have base-devel installed: pacman -S base-devel. Anytime you
want to run pacman it's recommended to do so from the MSYS shell.
How to build the Wireshark MSYS2 package:
1. Open the MSYS2 MSYS shell.
2. Create a build directory and copy the PKGBUILD from the source tree:
$ mkdir build && cd build
$ wget https://gitlab.com/wireshark/wireshark/-/raw/master/packaging/msys2/mingw-w64-wireshark-git/PKGBUILD
3. Build the package:
$ makepkg-mingw -sCLf
4. Install it:
$ pacman -U mingw-w64-*-wireshark-*-any.pkg.tar.zst
The application must be run from the MINGW64 shell.
Currently the MinGW-w64 build has the following limitations compared to
the MSVC build:
* 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].
* Some optional dependencies are not available in the official MSYS2
repositories. These are:
- AirPcap
- libsmi
- Kerberos
- SBC codec
- BCG729 codec
* There is currently no way to build a stand-alone distributable binary
package, similar to the Wireshark NSIS installer built using Visual Studio.