I am trying to add a dissector to the new 2.0 build for Windows and need a bit of help as this is my first time using the new cmake structure.
The dissector is a CORBA dissector generated from our IDL using the wireshark_be.py script for omniorb.
I have put the .c file in epan/dissectors and added it to epan/CMakeListsCustom.txt
I've run cmake and can see it including the custom list.
I then run msbuild /m /p:Configuration=RelWithDebInfo wireshark.sln. This appears to compile my dissector with no errors and the.obj file exists with all the other packet-*.obj files.
But when I run Wireshark my dissector isn't in the list. So what is the step I'm missing to get the dissector linked in.
Thanks for any help
asked 04 Nov '15, 08:05
The documentation on this is somewhat lacking, all contributions accepted.
If this is really a plugin, then epan\CMakeListsCustom.txt is not the place for this as that's for built in dissectors.
For a plugin, you need to add the plugin directory to the list of plugin directories, I'm not entirely sure how you do this. In the main CMakeLists.txt there is a variable
You'll also need an appropriate CMakeLists.txt in your plugin source directory.
answered 04 Nov '15, 08:46