Wireshark-dev: Re: [Wireshark-dev] Makefile for wireshark dissector
From: Ed Beroset <beroset@xxxxxxxxxxxxxx>
Date: Mon, 18 Jul 2011 09:11:27 -0400 (EDT)
sagar sg wrote:
>         I am trying to compile my dissector independently by writing a
>single make file and Included some wireshark libraries. Can i do this or i
>need to compile it with wireshark s source code only??

If it's a plugin, and you've done things the way the other plugins are done, you can compile just the plugin's .so file by simply going to, say, plugins/myproto and running make.  If it's successful, it will create the myproto.so file in a plugins/myproto/.libs directory.  

For rapid development, I've also been known to temporarily add a target to the makefile which then copies it to the installed location (default is /usr/local/lib/wireshark/plugins/1.7.0/ ) and runs tshark with a sample file, redirecting the output to an output file.

Note that the .so file that you put there must also match the wireshark build, so you'll need to get have the whole wireshark source tree even if all you desire is the plugin.  (OK, technically, you could just get a subset, but it would take longer to figure out exactly what subset you need than to just get the whole thing.)

Ed