Wireshark-dev: Re: [Wireshark-dev] Custom dissector forgotten in building process
From: Jaap Keuter <[email protected]>
Date: Tue, 13 May 2008 08:37:54 +0200

Read doc/README.plugins very carefully and implement *all* changes listed in there. That should make things work.

Frédéric Courchesne - Paradox Innovation wrote:

I made a custom dissector for a custom protocol we are triyng to develop, but it is not included/recognized when I do a “nmake all” or a “packaging (nsis)” command.

1^st problem :

- I am using the 1.0.99 (SVN) version of wireshark sources with Microsoft Visual Studio 2005 environnement.
- I did put my own dissector source code in the 
C:\wireshark\plugins\my-plugin directory. (Plugin based on the example 
given by Ken Thompson : 
- I modified the file *C:\ wireshark\plugins\Makefile.nmake* to add my 
plugin in the *process-plugins* and the *install-plugins* sections
- When I run the command *C:\wireshark> nmake –f Makefile.nmake all*, 
the custom dissector is correctly built, but not copied to the 
*wireshark-gtk2\plugins\1.0.99\* directory.
- If I manually copy the file, the plugin works well.

2^nd problem :

- I modified the *C:\wireshark\packaging\nsis\Makefile.nmake* to add my custom dissector in the PLUGINS section.
- When I run the command *C:\wireshark> nmake –f Makefile.nmake 
packaging*, the custom dissector is absent of the package.

I looked almost every Makefile.nmake, Makefile.common, config.nmake of 
all folders, but I can’t find how to include my dissector. Do I have to 
open the whole project with Microsoft Visual Studio?

Frédéric Courchesne