wireshark Windows源码编译及C语言插件开发总结
一、Windows源码编译环境配置(vs2015,32bit)
1、wireshark源码下载地址https://www.wireshark.org/;
2、下载qt-opensource-linux-x64-5.5.1.run安装Qt5.9.1; 下载安装cygwin。
3、创建插件开发目录wireshark2.4.2_dev,wireshark源码解压到C语言插件开发目录wireshark2.4.2_dev,在该目录下创建project目录,目录结构如下:
wireshark2.4.2_dev
|
------project
|
------wireshark-2.4.2
4、启动vs2015命令行窗口,Visual Studio 2015 → Visual Studio Tools → Windows Desktop Command Prompts → vs2015 x86本机工具命令提示符
5、在命令行窗口下配置编译选项:
rem Let CMake determine the library download directory name under
rem WIRESHARK_BASE_DIR or set it explicitly by using WIRESHARK_LIB_DIR.
rem Set *one* of these.
set WIRESHARK_BASE_DIR=
一、Windows源码编译环境配置(vs2015,32bit)
1、wireshark源码下载地址https://www.wireshark.org/;
2、下载qt-opensource-linux-x64-5.5.1.run安装Qt5.9.1; 下载安装cygwin。
3、创建插件开发目录wireshark2.4.2_dev,wireshark源码解压到C语言插件开发目录wireshark2.4.2_dev,在该目录下创建project目录,目录结构如下:
wireshark2.4.2_dev
|
------project
|
------wireshark-2.4.2
4、启动vs2015命令行窗口,Visual Studio 2015 → Visual Studio Tools → Windows Desktop Command Prompts → vs2015 x86本机工具命令提示符
5、在命令行窗口下配置编译选项:
rem Let CMake determine the library download directory name under
rem WIRESHARK_BASE_DIR or set it explicitly by using WIRESHARK_LIB_DIR.
rem Set *one* of these.
set WIRESHARK_BASE_DIR=