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

Forgive me for I'm accustom to many years of using "nmkake -f Makefile.nmake" in my source plugin directory to only compile my dissector into a .dll file. I'm at a complete loss of how I would do that now. If I try to target just the plugins\foo\foo.vcxproj with "msbuild /p:Configuration=RelWithDebInfo plugins\foo\adsb.vcxproj", it seems to want to recompile everything in wireshark.

I have added my plugin to CMakeListsCustom.txt in the source tree and it makes the correct folders in my build directory when I do a prepare. I have succesfully made a complete wireshark build and now I just need to debug and recompile my dissector only.

asked 28 Sep '16, 09:31

Mike_P's gravatar image

Mike_P
304410
accept rate: 0%


Search and ye shall find. Sorry, should have done a better search before asking my question. https://ask.wireshark.org/questions/51161/how-to-compile-the-dissector-to-a-dll-or-shared-library I assumed that it was taking so long that I was not doing the command correctly. It would seem its just a lot longer than compared to the old nmake method.

Courtesy of grahamb: 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.

permanent link

answered 28 Sep '16, 09:36

Mike_P's gravatar image

Mike_P
304410
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×637
×254
×173
×41
×6

question asked: 28 Sep '16, 09:31

question was seen: 1,788 times

last updated: 28 Sep '16, 09:36

p​o​w​e​r​e​d by O​S​Q​A