1、修改配置文件
\Mosquitto-1.5\CMakeLists.txt,手动新增以下内容
#firecat add option(WITH_EPOLL "Include epoll support?" ON) if (${WITH_EPOLL} STREQUAL ON) add_definitions("-DWITH_EPOLL") endif (${WITH_EPOLL} STREQUAL ON)
2、使用CMake编译源码,如果没有安装,请参考:CentOS 7安装cmake 2.8.12.2
在路径\Mosquitto-1.5\执行
cmake .
make
生成的可执行文件在\Mosquitto-1.5\src