Index
CV
USA/Internship
USA/Vehicle
USA/RentACar
USA/EastCoast
USA/Tourism
Electronic/Geiger
Dev/Wireshark
Mecanique/ZX6R 1998/Carburation
Mecanique/ZX6R 1998/Distribution
Latex
Linux/Super-dd
Linux/Bash
Musique/Tablatures
AsmX86
Basic
Creative Commons License

Build Wireshark

Introduction

This page shows an over-simple way to compile Wireshark from the source code, in the Windows XP Professional x64 environment. Also, it explains the procedure to add a dissector to that release, built out of an .IDL file. Through a complete example, we're going to compile a custom version of Wireshark, that includes a special Corba dissector (in our case, an ASAM ODS dissector).

Theory

We're going to follow this procedure:

Prerequisites

Here is the necessary software:

Procedure

Direction

We're going to create a build folder. In our case, that'll be C:\ASAMWireshark\. Don't put spaces into that folder, as it'll simplify the whole procedure (or adapt the scripts - see scripts section below). At the end of the installation procedure, its content will be:

After the installation of all the necessary software, in our case, the following folders will appear (not exhaustive):

Install the 2 Python versions

Install Cygwin

Install Microsoft Visual Studio Express 2008

Inflate the OmniIDL package

Inflate the Wireshark source

Create the Build scripts

Important! I personally chose to copy the following folders into the development folder, so the scripts need be changed a little to reflect your installation (but that should not be too much of a hassle):

The scripts:

One minor change to the Wireshark tools chain

OmniIDL runs better with Python 1.5, but the Wireshark's latest tools chain does not! The wireshark-1.9.0-SVN-43268\tools\wireshark_gen.py and wireshark-1.9.0-SVN-43268\tools\wireshark_be.py Python scripts (from the Wireshark's source code) are called by the OmniIDL module, which uses Python 1.5. In order to make the Wireshark's latest tools compile with Python 1.5, do:

Some minor changes to the Wireshark source code

Ready?

We're now ready to generate that dissector, and compile Wireshark! Execute, using the Windows Explorer (double-clicks), in that order:

You should have a new folder, wireshark-1.9.0-SVN-43268\wireshark-gtk2: it contains your new Wireshark custom program!

Sources

I've extended the following tutorials:

22/06/2012