- 安装依赖:
sudo apt install git autoconf libpcap-dev
- 下载源码
修改configure.ac:
每个AC_ARG_ENABLE部分
enable_http_display=no
enable_display=no
enable_debug=no
- 执行
autoreconf -fi
- 修改configure:
CFLAGS添加-static
CFLAGS="-static -O2 -g -DDEBUG" - 解决bug:options.c:247:22: error: ‘options_t’ has no member named ‘enable_gtk_display’; did you mean ‘enable_http_display’?
参考patch:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60574622dfb711016fdabba9deec135d77157485
https://bugs.gentoo.org/744670
删除src/options.h中带#的这两行
+-#ifndef NO_DISPLAY_WINDOW
+ char *savedimgpfx;
+ int enable_gtk_display;
+-#endif