



ethereal编译环境搭建经验
第一步:安装cygwin
The setup will ask you for some settings, the defaults should usually work well for a first start. At the "Select Packages" page, you'll need to select some additional packages, which are not installed by default. Navigate to the required Category/Package row and click on the "Skip" item in the "New" column so it shows a version number for:
确保以下模块被选择:
Archive/unzip
Devel/bison
Devel/flex
Interpreters/perl
Interpreters/python
Utils/patch
Web/wget
第二步:安装VC6编译环境:
After clicking the Next button several times, the setup will then download and install the selected packages (this may take a while).
注意:
vcvars32.bat : 运行nmake前设置vc环境
第三步,PATH设置
vc6:
C:\Program Files\Microsoft Visual Studio\VC98\Bin
cygwin:
X:\cygwin\bin加到PATH的
dll:
ethereal的运行dll目录加入path.编译后产生的dll.有利于编译后的ethereal运行减少麻烦。
第四步:源码操作配置
你可以用
nmake -f Makefile.nmake verify_tools
确认这些工具到位了。
如有一项提示不对头,就继续修正,直至全部到位。
运行库目录需要在源码的config.nmake中设置。ETHEREAL_LIBS=e:\temp\ethereal-win32-libs
至于下载库,也不用手工去下,执行
nmake -f Makefile.nmake setup
即可自动下载。
第五步, 开始编译
Then you should cleanup any intermediate files, which are shipped for convenience of Unix users, by typing inside the command line (cmd.exe):
> nmake -f Makefile.nmake distclean
After doing this, typing inside the command line (cmd.exe):
> nmake -f Makefile.nmake all
will start the whole Ethereal build process.