wireshark/doc/plugins.example
João Valverde 1a80691ee7 Expand doc/pugins.example README a bit.
Change-Id: Ife25fe9aaa333ffcdce3f2a48faed565dc83aebf
Reviewed-on: https://code.wireshark.org/review/27746
Reviewed-by: João Valverde <j@v6e.pt>
2018-05-23 14:32:07 +00:00
..
CMakeLists.txt Fixups to doc/plugins.example build 2018-05-23 13:53:44 +00:00
README Expand doc/pugins.example README a bit. 2018-05-23 14:32:07 +00:00
hello.c replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later. 2018-02-08 14:57:36 +00:00

README

This is an example of how to build a Wireshark plugin out-of-tree.

Tested on Linux using GCC 7. Note this builds against Wireshark's *installed*
version. You should of course adapt to your own needs.

To build/install the plugin:

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

If your wireshark.pc file is not in one of the standard pkg-config search paths
you will have to tell pkg-config where to find it. Arguably the easiest way to
do so is setting PKG_CONFIG_PATH in your build environment, for example:

$ export PKG_CONFIG_PATH="/usr/local/lib64/pkgconfig"