makefile - How do I compile this plugin? -
i'm following foo dissector example know how compile it.
the foo dissector example shown in link: http://www.wireshark.org/docs/wsdg_html_chunked/chdissectadd.html
you'll notice mentions interlink directory contains examples of support files can use , need modify makefile.am & makefile.common etc. i've modified reflect foo module.
however, i'd know how build it. tried running automake complains there there no configure.in. sorry i'm not familar gnu build environment yet.
also, possible build module standalone? or need other wireshark sources available? have of course installed wireshark-dev under ubuntu.
i went through readme.plugins procedure , here i've got:
1) under plugins directory, rename
- custom.m4.example custom.m4
- custom.make.example custom.make
- custom.nmake.example custom.nmake
2) rename of foo occurrences in files protocol name
3) go top-level wireshark directory , run autogen , configure root
./autogen.sh ./configure
side note: make sure there no warnings or errors during steps. compile plugin copy following files gryphon plugin newly created protocol folder along source files , replace gryphon occurrences protocol name
- authors
- copying
- changelog
- cmakelists.txt
- makefile.am
- makefile.common
- makefile.in
- makefile.nmake
- moduleinfo.h
- moduleinfo.nmake
- plugin.c
- plugin.rc.in
4) compile plugins using following command. run make install in case
make -c plugins make install
5) , run wireshark following command
wireshark_run_from_build_directory=1 ./wireshark
6) if successful, see plugin listed under wireshark, plugins tab. had trouble plugin version @ first. including following line after #include "config.h" fixed it:
#include "moduleinfo.h"
Comments
Post a Comment