You can download and install all required libraries by using the setup
target
of Makefile.nmake from the source package.
![]() | Use the setup target |
---|---|
It’s a really good idea to use the Win32 automated library download to install the required libraries as it makes this download very easy. Before you start the download, you must have installed both the required tools (see Chapter 4, Tool Reference) and the Wireshark sources (see Section 3.3, “Obtain the Wireshark sources”). |
By default the libraries will be downloaded and installed into C:\wireshark-win32-libs for x86 builds and C:\wireshark-win64-libs for x86_64 builds. You can change this to any other location by editing config.nmake and changing the line containing WIRESHARK_LIB_DIR to your favourite place. You must use an absolute path.
Then run the command
> nmake -f Makefile.nmake setup
This will first check for all the various tools needed to build Wireshark as described in Section 2.2.7, “Verify installed tools”.
Then it will download the zipped libraries (together around 30MB!) from the server location at http://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/ into the directory specified by WIRESHARK_LIB_DIR and install (unzip) all required library files there.
If you have problems downloading the library files, you might be connected to the internet through a proxy. In this case see the wget proxy comment in Section 4.14, “Win32: GNU wget (optional)”.
As new versions of the libraries become available, maybe with bugfixes or some new functionality, your libraries get outdated.
You could simply remove everything in the WIRESHARK_LIB_DIR dir and call the
setup
target again, but that would require a download of every file again,
which isn’t necessary.
The following will bring your libraries up to date:
Execute the library setup command as described above.
> nmake -f Makefile.nmake setup
Note that this command will automatically do a clean-setup
which will
remove all files previously unzipped from the downloaded files in your
WIRESHARK_LIB_DIR library path (all the subdirs, e.g.
c:\wireshark-win32-libs\gtk+),
except for the zip files located at the toplevel, which are the files
downloaded the last time(s).
Also note that as wget will download only the missing (updated) files, existing zip files in the WIRESHARK_LIB_DIR dir won’t be downloaded again. Remaining (outdated) zip files shouldn’t do any harm.