wireshark/doc/plugins.example
João Valverde 681c175f90 Update plugins.example/README
Change-Id: Ib428859b75e1c196cf9fa81ebae4969bbce079f2
Reviewed-on: https://code.wireshark.org/review/30396
Reviewed-by: João Valverde <j@v6e.pt>
2018-10-27 23:58:31 +00:00
..
CMakeLists.txt CMake: Modernize config-file package support 2018-08-25 18:07:21 +00:00
README Update plugins.example/README 2018-10-27 23:58:31 +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 WiresharkConfig.cmake file is not in one of the standard cmake search
paths you will have to tell cmake where to find it. You can do so using
CMAKE_PREFIX_PATH, for example

$ cmake -DCMAKE_PREFIX_PATH="/opt/wireshark" ..