for X86
1、#autoreconf -i
如果报错连续执行两次,执行后会产生configure文件。
2、打开configure文件,在12658行附近的内容,更改如下:
# Check whether --with-libev was given.
if test "${with_libev+set}" = set; then :
withval=$with_libev; WITH_LIBEV=$withval
else
WITH_LIBEV=yes
fi
WITH_LIBEV="/home/jcy/HuiTu/libev/libev-4.24-X86/libev-4.24/x86"
LIBEV_CFLAGS="-I$WITH_LIBEV/include"
LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
ac_config_headers="$ac_config_headers config.h"
ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile example/Makefile"
备注:/home/jcy/HuiTu/libev/libev-4.24-X86/libev-4.24/x86是的libev编译目录
3、执行#./configure
备注:如果是嵌入式编译,则configure命令为"#./configure --host=arm-linux"
4、执行#make
编译不会出错,并在example目录产生文件server执行文件