@echo off set baseDir=%cd% set WIRESHARK_LIB_DIR=%baseDir%/libs/wireshark-win32-libs-2.2 set WIRESHARK_LIBS=%baseDir%/libs/wireshark-win32-libs-2.2 set WIRESHARK_CYGWIN_INSTALL_PATH=D:\GNU\CygWin set DEVENVCOM="%VS120COMNTOOLS%..\..\Common7\IDE\devenv.com" cd build cmake -G"Visual Studio 12 2013" ../wireshark-2.2.1 %DEVENVCOM% Wireshark.sln /rebuild "Debug|Win32" pause
建議使用vs 2013,vs2015編譯報錯bash
參考:http://blog.csdn.net/mawu_1014/article/details/51693766svn
設置cygwin組件,若是安裝遺漏能夠在http://mirrors.163.com/cygwin/x86_64/release/找到對應的包,解壓放入對應目錄ui
下載https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/全部程序和庫,放在目錄wireshark-win32-libs-2.2.net
將上面的批處理腳本保存位build.bat,修改對應目錄:cygwin + WIRESHARK_LIB_DIR + WIRESHARK_LIBScode
目錄結構以下:blog