diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2018-05-23 15:27:06 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2018-05-23 14:32:07 +0000 |
commit | 1a80691ee765909aaee3cff36221e18191a8e176 (patch) | |
tree | dd2770a643a2067078a71b37aabfcafe57c75ae2 /doc | |
parent | 7f45158f96285141183f6969575728a6181f1696 (diff) |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/plugins.example/README | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/plugins.example/README b/doc/plugins.example/README index 18f553be97..b20a5d12bf 100644 --- a/doc/plugins.example/README +++ b/doc/plugins.example/README @@ -4,11 +4,15 @@ 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 (assuming wireshark was installed in /usr/local): +To build/install the plugin: -$ PREFIX=/usr/local -$ mkdir build -$ cd build -$ PKG_CONFIG_PATH="$PREFIX/lib64/pkgconfig" cmake -DCMAKE_PREFIX_PATH="$PREFIX" .. # Use -DSYSTEM_INSTALLATION=Off to install as single-user +$ 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" |