Memo of Wireshark building under Windows

 1. build a clear wireshark on windows firstly. It is possible that code in repository has broken the build.

2. change files

3. if you have wrote your own plugin and used variable from epan/dissectos/xxx.h, you might get error message. e.g. 
       error LNK2019: unresolved external symbol _mtp3_standard

  Sample Solution: add mtp3_standard into epan/libwireshark.defs and change "extern gint mtp3_standard;" to "WS_VAR_IMPORT gint mtp3_standard;"
4. the final build command is "nmake -f packaging" and the installer is generated at C:/wireshark/packaging/nsis/

 

p.s. commands used for making installer


"C:/Program Files/Microsoft Platform SDK for Windows Server 2003 R2/SetEnv.Cmd"
"C:/Program Files/Microsoft Visual Studio 8/VC/bin/vcvars32.bat"
cd c:/wireshark
nmake -f Makefile.nmake verify_tools
nmake -f Makefile.nmake setup
nmake -f Makefile.nmake distclean
nmake -f Makefile.nmake all
nmake -f Makefile.nmake packaging

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值