mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
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.
|
||
|---|---|---|
| .. | ||
| cmake/Modules | ||
| epan | ||
| .gitignore | ||
| CMakeLists.txt | ||
| make-plugin-reg.py | ||
| README.txt | ||
# 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").