• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

READMEH A D29-Dec-20211.2 KiB3323

hello.cH A D29-Dec-20211.5 KiB6240

README

1
2This is an example of how to build a Wireshark plugin out-of-tree. This
3is an alternative, more recent way to build Wireshark binary plugins,
4than the one in 'README.plugins', that describes in detail how to
5include a new plugin into the project source tree (here called in-tree
6build). Building a plugin out-of-tree doesn't require rebuilding the whole
7Wireshark source tree every time.
8
9You always need to rebuild plugins for each major.minor Wireshark version.
10Binary compatibility is never guaranteed between those releases and Wireshark
11will explicitly check for which version the plugin was built and refuse
12to load it otherwise.
13
14Note that this method builds the plugin against Wireshark's *system installion*,
15using CMake's Config-file mechanism[1] for configuration.
16
17You should of course adapt this trivial example to your own needs.
18
19To build/install the plugin:
20
21$ mkdir build && cd build
22$ cmake ..
23$ make
24$ sudo make install
25
26If your WiresharkConfig.cmake file is not in one of the standard cmake search
27paths you will have to tell cmake where to find it. You can do so using
28CMAKE_PREFIX_PATH, for example:
29
30$ cmake -DCMAKE_PREFIX_PATH="/opt/wireshark" ..
31
32[1]https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#config-file-packages
33