libevent

C/C++ 2025-08-13

1。建筑和安装

CMAKE(UNIX)

mkdir build && cd build
cmake ..     # Default to Unix Makefiles.
make
make verify  # (optional)

有关更多信息,请参阅UNIX上的文档/建筑物#建筑物。

Cmake(Windows)

安装CMAKE:https://cmake.org/

md build && cd build
cmake -G " Visual Studio 10 " ..   # Or use any generator you want to use. Run cmake --help for a list
cmake --build . --config Release # Or "start libevent .sln" and build with menu in Visual Studio.

有关更多信息,请参见Windows上的文档/建筑物#建筑物。

包装经理

您可以使用VCPKG依赖项管理器下载并安装libevent :

libevent">
git clone https://g*i*thub.c*om/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install libevent

Microsoft团队成员和社区贡献者保持了VCPKG的libevent端口。如果该版本已过时,请在VCPKG存储库上创建问题或拉出请求。

AutoConf

注意,由于2.2已弃用

./configure
make
make verify   # (optional)
sudo make install

有关更多信息,请参见文档/建筑物#AutoConf。

2。有用的链接:

有关libevent最新版本的版本,请参见官方网站https://lib**eve*nt.org/。

在http://www.w**a*ngafu.net/~nickm/libevent-book/上有一个很好的工作手册。

有关libevent的最新开发版本,请通过

$ git clone https://gith*u*b.*com/libevent/ libevent .git

您可以在线浏览git存储库:

https://gith*u*b.*com/libevent/ libevent

报告错误,发出问题或索要新功能:

补丁:https://github.com/libevent/ libevent /pulls

好的,这些不是真正的补丁。您分叉,修改并按下“创建拉请请求”按钮。您仍然可以通过邮件列表提交普通的GIT补丁。

错误,功能[RFC]和问题:https://github.com/libevent/ libevent /essess

或者,您可以通过邮件列表进行。

还有一个libevent - 用户邮寄列表,以讨论libevent使用和开发:

https://archives.s***eul.org/libevent/users/

3。致谢

以下人员帮助了建议,想法,代码或修复错误。

下载源码

通过命令行克隆项目:

git clone https://github.com/libevent/libevent.git