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

How to “Compile the dissector to a DLL or shared library”?

0

I have successfully built Wireshark from source code using the instructions in section 2.2 of the developers guide(win64 setup). I am now trying to build my dissector using the instructions in section 9.2. At the end of Section 9.2.1 it says, "Compile the dissector to a DLL or shared library ...". Can someone tell me how to do this?

I found some old examples online, but they are not working. Do I use the "msbuild" command, as in section 2.2.12?

Thanks

asked 24 Mar '16, 12:10

rbw006's gravatar image

rbw006
6223
accept rate: 0%


One Answer:

1

Yep, just rebuild the whole solution again and it will all work, assuming you've made the correct changes. If you've created a plugin dissector you can just rebuild your plugin by substituting the path to the plugin project file on the msbuild command line, e.g.

msbuild /m /p:Configuration=RelWithDebInfo plugins\myplugin\myplugin.vcxproj

You must have previously built Wireshark in the build directory though before compiling the plugin on it's own in this manner. You'll find in practice there's only a little time difference between the "full" build and just building the plugin.

answered 24 Mar '16, 15:51

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Thank you Grahamb, I have got it working now.

(24 Mar '16, 19:40) rbw006

If an answer has solved your issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer. Please read the FAQ for more information.

(25 Mar '16, 01:01) Jaap ♦