uhd/tools/dissectors
Martin Braun 44eb7a473b dissectors: Fix inclusion of glib.h and Python version
Previously, we were doing this:

```cpp
extern "C" {
}
```

This is not how glib.h is supposed to be included, according to their
documentation. It turns out that it happened to work for a long time,
and lots of projects include glib.h that way, and the glib devs are
trying to accommodate for those cases. How nice of them!

However, on Fedora 34, we have a version of glib which does not have
a workaround patch, so we include glib.h the it should be.

The second issue was that a build script required the existence of
a `python` executable, which is not always available. A `python3`
executable can be assumed, since that's a dependency for UHD, too.
2021-09-28 12:14:00 -07:00
..
cmake/Modules tools: Update dissectors for Wireshark major version 3, new CHDR 2019-11-26 11:49:35 -08:00
epan dissectors: Fix inclusion of glib.h and Python version 2021-09-28 12:14:00 -07:00
.gitignore Combined dissectors and added Wireshark 2 support 2016-08-24 12:46:36 -07:00
CMakeLists.txt tools: Update rfnoc dissector to support multiple CHDR widths. 2020-12-01 10:07:47 -08:00
make-plugin-reg.py dissectors: Fix inclusion of glib.h and Python version 2021-09-28 12:14:00 -07:00
README.txt tools: Rfnoc dissectors are now built and named based on CHDR width 2020-12-01 10:07:47 -08:00

# Installing the Ettus Wireshark dissectors


1. Make sure you have the Wireshark 'dev' files available. On some
   distributions, this requires a separate package (e.g. on Ubuntu,
   you will need to install the wireshark-dev package)
2. Run these commands inside this directory:

    $ mkdir build
    $ cd build
    $ cmake ..
    $ make && make install

   This will build and install the CHDR dissector. By default, the
   RFNOC_CHDR_WIDTH is 64, but you can change it by setting the
   desired width like so:

   $ cmake .. -DRFNOC_CHDR_WIDTH=512

3. To build and install the other dissectors, re-run the commands
   like so:

    $ cmake .. -DETTUS_DISSECTOR_NAME=zpu
    $ make && make install

   Replace "zpu" with the name of the dissector you wish to install
   (e.g. "octoclock").