### Getting the sources You have two options to get souces: * use prepared tarball/archive with applied patch * use the latest code from version control #### Using prepared tarball Download archive file from https://db.tt/0UUO7NKb and extract sources into some folder (for example `~/wireshark`). You should not apply any patches: all patches are included in archive. Goto **Build steps**. #### Using latest code from version control If you wish to use the latest code from version control, first ensure that you have a *Subversion* client (if you don't have one, install a client for your platform from https://subversion.apache.org/packages.html). To download sources, use "svn co", e.g. $ svn co http://anonsvn.wireshark.org/wireshark/trunk/ wireshark If you're behind a proxy that doesn't allow Subversion access you can use SSL: $ svn co https://anonsvn.wireshark.org/wireshark/trunk/ wireshark ### Applying a patch Download patch-file from https://db.tt/d4R2DX8c #### Linux Then goto WireShark sources folder `$ cd wireshark`and run the following comand: $ patch -p0 -i path/to/patch-file/ws_dcbx.patch #### Windows For apply patch under windows you can use *TortoiseMerge* (part of TortoiseSVN http://tortoisesvn.net/). Or you can install *patch* on *Cygwin* (http://www.cygwin.com/) and act as in Linux case. ### Required Libraries and Packages * GTK+ and GLib (http://www.gtk.org/) * libpcap (http://www.tcpdump.org/) or Winpcap for Windows (http://www.winpcap.org/) * Perl (http://www.perl.com/) * Python (http://www.python.org/) * sed (http://directory.fsf.org/GNU/sed.html) * flex (http://www.gnu.org/software/flex/) * bison (http://www.gnu.org/software/bison/bison.html) ### Build steps #### Linux Install required libraries and packages: sudo apt-get install build-essential automake autoconf libgtk2.0-dev libgtk-3-dev libglib2.0-dev libpcap0.8-dev flex bison Then goto wireshark sources folder and configure your build directory: $ ./autogen.sh $ ./configure [options] And finally build by running: $ make **NOTE:**: if build fails with error message `all warnings being treated as errors` run `./configure` with option `--disable-warnings-as-errors` #### Windows Building Wireshark under Windows is a bit **complicated**. But there is a detailed **Win32/64: Step-by-Step Guide** on Wireshark site (http://bit.ly/WireSharkWinBuild). -------------- Sources * http://wiki.wireshark.org/Development * https://wireshark.org/develop.html * https://wireshark.org/docs/wsdg_html_chunked/