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
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Reply via email to