The sources contain several documentation files. It’s a good idea to read these files first. After obtaining the sources, tools and libraries, the first place to look at is doc/README.developer. Inside you will find the latest information for Wireshark development for all supported platforms.
|Build Wireshark before changing anything|
It is a very good idea to first test your complete build environment (including running and debugging Wireshark) before making any changes to the source code (unless otherwise noted).
Building Wireshark for the first time depends on your platform.
autogen.sh script at the top-level wireshark directory to configure
your build directory.
$ ./autogen.sh $ ./configure $ make
If you need to build with a non-standard configuration, you can run
$ ./configure --help
to see what options you have.
Ensure you have correctly set your build environment as discussed in Section 2.2.9, “Open a Visual Studio Command Prompt”
You should then cleanup any intermediate files, which are shipped for convenience of Unix users, by typing at the command line prompt:
> nmake -f Makefile.nmake distclean
After doing this, typing at the command line prompt:
> nmake -f Makefile.nmake all
will start the whole Wireshark build process.
After the build process has successfully finished, you should find a
wireshark.exe and some other files
in the root directory.