如何编译snort for windows

如何编译snort for windows

怎么编译snort for windows?
我到snort的官方网站上下了个snort-2.8.0.rc1。里面有个

snort-2.8.0.rc1srcwin32,请问这个就是snort for windows 的源码吗?

snort-2.8.0.rc1srcwin32WIN32-Prj里有个dsw文件,我用VC6.0编译,开始时

是报子目录或文件 ..include 已经存在,重新打开后编译,就报了681个错误。 
用什么方法能编译通过?有那种直接在windows下编译成功的snort源码吗? 
先谢了。


win32版本应该也有个makefile吧,需要从控制台编译。


打开包后看看README,一般都有说明


楼主有个Windows Binaries包
http://www.snort.org/dl/prerelease/2.8.0-b67/Snort_2_8_0_Installer.exe


有的软件不是用vc开发的,而是直接用win32 sdk,这样的话就会有makefile。


需要cygwin才能编译过去。 
我首先把build_all files设为release并且为active project 
然后你看sf_dynamic_initlaize的project setting下左边的stream_api.h的setting的cutstom build下面有如下的三行命令: 

mkdir ..include
copy $(InputPath) ..include$(InputName).h.new
c:cygwinbinsed -e "s/Packet /SFSnortPacket /" -e "s/decode.h/sf_snort_packet.h/" ../include/$(InputName).h.new > ../include/$(InputName).h

所以你要先装个cygwin才能编译过去。

如何编译snort for windows

相关文章:

你感兴趣的文章:

标签云: