1、libevent-2.0.22-stable.tar.gz下载,网址为:http://libevent.org/
2、将libevent-2.0.22-stable.tar.gz 解压到指定目录
3、以管理员身份启动cmd窗口,并切换到libevent-2.0.22-stable目录。
4、依次执行以下命令,其中vs2013相关路径需根据各自机器情况进行修改。
SET PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE
SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include
SET INCLUDE=%INCLUDE%;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include
SET LIB=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib
SET LIB=%LIB%;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib
nmake /F Makefile.nmake clean
nmake /f Makefile.nmake
5、执行结束后,可在libevent-2.0.22-stable目录下获得新编译的文件,如下图所示: