wireshark/doc/plugins.example
João Valverde 6b9beb6ca1 Fix comment.
Change-Id: Ib41b9a84333a3d3d34ae9c0797dbae10141f9e53
Reviewed-on: https://code.wireshark.org/review/29235
Reviewed-by: João Valverde <j@v6e.pt>
2018-08-21 23:11:04 +00:00
..
CMakeLists.txt Fix comment. 2018-08-21 23:11:04 +00:00
README Expand doc/pugins.example README a bit. 2018-05-23 14:32:07 +00:00
hello.c plugins: Minor interface improvement 2018-08-21 19:56:12 +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"