wireshark/README.msys2

55 lines
1.5 KiB
Plaintext
Raw Normal View History

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 MSYS shell.
2021-10-26 15:04:08 +00:00
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.
2021-10-26 15:04:08 +00:00
2023-01-12 16:07:04 +00:00
How to build the Wireshark MSYS2 package:
2021-10-26 15:04:08 +00:00
1. Open the UCRT64 shell.
2021-10-26 15:04:08 +00:00
2. (Optional) Build and install some missing dependencies in the MSYS2 repository.
$ cd $srcdir/packaging/msys2/mingw-w64-bcg729
$ makepkg-mingw -si
2021-10-26 15:04:08 +00:00
$ cd $srcdir/packaging/msys2/mingw-w64-libsmi
$ makepkg-mingw -si
2021-10-26 15:04:08 +00:00
$ cd $srcdir/packaging/msys2/mingw-w64-sbc
$ makepkg-mingw -si
3. Build and install Wireshark
2021-10-26 15:04:08 +00:00
$ cd $srcdir/packaging/msys2/mingw-w64-wireshark-git
$ makepkg-mingw -si
2021-10-26 15:04:08 +00:00
The application should be launched using the same shell (UCRT64 in this case).
2021-10-26 15:04:08 +00:00
Currently the MSYS2 build has the following limitations compared to
the build using Visual Studio (MSVC):
2021-10-26 15:04:08 +00:00
* The Event Tracing for Windows (ETW) extcap cannot be compiled using MinGW-w64.
* 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
* Kerberos dependency for enhanced Kerberos dissection is not available
in the repositories.
* AirPcap is not available and there is no plan to support it.
2023-01-12 16:07:04 +00:00
* There is currently no way to build a stand-alone distributable binary
installer, similar to the Wireshark NSIS installer using MSVC.
2021-10-26 15:04:08 +00:00
References:
[1]https://github.com/Lekensteyn/lua-unicode