This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to easily build wireshark dissector plugin as dll?

0

Hi, I modified an unclompete Wireshark dissector plugin, i.e. I did some modifications to the already existing c-files. I neither added a new file in the plugin directory nor did I add some new includes in the c-files. I just added some missing functionality in the c-files. Now I want to build a dll file out of the source files. Is there a way to do this without installing the whole toolchain (Visual Studion, Qt, Cygwin, Python, ...) and building the whole Wireshark as described here https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html? I just want to compile the few c-files with gcc (MinGW), put them into a dll and replace the old dll with the new one.

This question is marked "community wiki".

asked 02 Jul '15, 09:25

Obs's gravatar image

Obs
6112
accept rate: 0%


One Answer:

0

Nope. You'll need to have a working build environment on Windows to build the plugin DLL. Also note you really should (must ??) use the same version of Visual Studio to build the plugin as was used to build the version of Wireshark that you wish to add the plugin to, i.e. for Wireshark 1.12.x that means Visual Studio 2010.

Building with MinGW on windows isn't supported.

Also make sure you're complying with the GPL regarding distribution and access to the sources of the plugin.

answered 02 Jul '15, 09:40

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%