1、安装Visual Studio 2010(SP1)
2、安装Cygwin(32位)http://www.cygwin.com/
安装包
Archive/unzip
Devel/bison
Devel/flex
Interpreters/perl
Web/wget
3、安装Python2.7
4、设置路径变量
c:\Program Files\Microsoft Visual Studio 10.0\VC\bin;c:\cygwin\bin;c:\Python27
5、命令行运行D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat
进入wireshark源代码目录
确认环境 nmake -f Makefile.nmake verify_tools
安装环境 nmake -f Makefile.nmake setup
编译 nmake -f Makefile.nmake all
清理 nmake -f Makefile.nmake distclean
6、测试生成文件
wireshark-gtk2目录
源代码下载地址:
ftp://ftp.wireshark.org/
http://wiresharkdownloads.riverbed.com/wireshark/src/
可以使用Visual Studio , Qt Creator, Source Insight, UltraEdit等工具进行代码的编辑、编译、辅助分析等。