2015-05-13 00:49:08 -04:00
< p align = "center" >
2019-02-06 00:12:35 +03:00
< img src = "https://libevent.org/libevent3.png" alt = "libevent logo" / >
2015-05-13 00:49:08 -04:00
< / p >
2015-05-13 00:52:40 -04:00
2019-02-24 22:59:33 +03:00
[![Appveyor Win32 Build Status ](https://ci.appveyor.com/api/projects/status/ng3jg0uhy44mp7ik?svg=true )](https://ci.appveyor.com/project/libevent/libevent)
2015-05-13 00:51:07 -04:00
[![Travis Build Status ](https://travis-ci.org/libevent/libevent.svg?branch=master )](https://travis-ci.org/libevent/libevent)
2016-11-01 23:39:41 +03:00
[![Coverage Status ](https://coveralls.io/repos/github/libevent/libevent/badge.svg )](https://coveralls.io/github/libevent/libevent)
2018-04-15 23:02:05 +00:00
[![Join the chat at https://gitter.im/libevent/libevent ](https://badges.gitter.im/libevent/libevent.svg )](https://gitter.im/libevent/libevent?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge& utm_content=badge)
2015-05-13 00:52:40 -04:00
2015-05-13 00:51:07 -04:00
2014-01-14 18:25:07 +01:00
# 0. BUILDING AND INSTALLATION (Briefly)
2009-11-20 12:37:47 -05:00
2014-01-14 18:25:07 +01:00
## Autoconf
2014-01-14 18:41:58 +01:00
$ ./configure
$ make
$ make verify # (optional)
$ sudo make install
2014-01-14 18:25:07 +01:00
2018-08-01 10:29:43 +10:00
## CMake (General)
2015-12-19 01:47:49 -08:00
2018-08-01 10:29:43 +10:00
The following Libevent specific CMake variables are as follows (the values being
2015-12-19 01:47:49 -08:00
the default).
```
2018-11-22 23:00:11 +03:00
# Type of the library to build (SHARED or STATIC)
2018-11-23 00:29:55 +03:00
# Default is: SHARED for MSVC, otherwise BOTH
2018-11-22 23:00:11 +03:00
EVENT__LIBRARY_TYPE:STRING=DEFAULT
2015-12-19 01:47:49 -08:00
# Installation directory for CMake files
EVENT_INSTALL_CMAKE_DIR:PATH=lib/cmake/libevent
# Enable running gcov to get a test coverage report (only works with
# GCC/CLang). Make sure to enable -DCMAKE_BUILD_TYPE=Debug as well.
EVENT__COVERAGE:BOOL=OFF
2018-08-01 10:29:43 +10:00
# Defines if Libevent should build without the benchmark executables
2015-12-19 01:47:49 -08:00
EVENT__DISABLE_BENCHMARK:BOOL=OFF
2018-08-01 10:29:43 +10:00
# Define if Libevent should build without support for a debug mode
2015-12-19 01:47:49 -08:00
EVENT__DISABLE_DEBUG_MODE:BOOL=OFF
2018-08-01 10:29:43 +10:00
# Define if Libevent should not allow replacing the mm functions
2015-12-19 01:47:49 -08:00
EVENT__DISABLE_MM_REPLACEMENT:BOOL=OFF
2018-08-01 10:29:43 +10:00
# Define if Libevent should build without support for OpenSSL encryption
2016-12-23 16:19:35 +08:00
EVENT__DISABLE_OPENSSL:BOOL=OFF
2015-12-19 01:47:49 -08:00
# Disable the regress tests
EVENT__DISABLE_REGRESS:BOOL=OFF
# Disable sample files
EVENT__DISABLE_SAMPLES:BOOL=OFF
# If tests should be compiled or not
EVENT__DISABLE_TESTS:BOOL=OFF
2018-08-01 10:29:43 +10:00
# Define if Libevent should not be compiled with thread support
2015-12-19 01:47:49 -08:00
EVENT__DISABLE_THREAD_SUPPORT:BOOL=OFF
# Enables verbose debugging
EVENT__ENABLE_VERBOSE_DEBUG:BOOL=OFF
2018-08-01 10:20:28 +10:00
# When cross compiling, forces running a test program that verifies that Kqueue
2015-12-19 01:47:49 -08:00
# works with pipes. Note that this requires you to manually run the test program
2018-08-01 10:29:43 +10:00
# on the the cross compilation target to verify that it works. See CMake
2015-12-19 01:47:49 -08:00
# documentation for try_run for more details
EVENT__FORCE_KQUEUE_CHECK:BOOL=OFF
```
__More variables can be found by running `cmake -LAH <sourcedir_path>` __
2014-01-14 18:25:07 +01:00
## CMake (Windows)
2018-08-01 10:21:57 +10:00
Install CMake: < https: / / www . cmake . org >
2014-01-14 18:25:07 +01:00
2014-01-14 18:41:58 +01:00
$ md build & & cd build
$ cmake -G "Visual Studio 10" .. # Or whatever generator you want to use cmake --help for a list.
$ start libevent.sln
2014-01-14 18:25:07 +01:00
## CMake (Unix)
2009-11-20 12:37:47 -05:00
2014-01-14 18:41:58 +01:00
$ mkdir build & & cd build
$ cmake .. # Default to Unix Makefiles.
$ make
$ make verify # (optional)
2014-01-14 18:25:07 +01:00
# 1. BUILDING AND INSTALLATION (In Depth)
## Autoconf
2009-11-20 12:37:47 -05:00
2018-08-01 10:29:43 +10:00
To build Libevent, type
2004-12-01 19:59:00 +00:00
2014-01-14 18:41:58 +01:00
$ ./configure & & make
2004-12-01 19:59:00 +00:00
2018-08-01 10:29:43 +10:00
(If you got Libevent from the git repository, you will
2014-01-14 18:41:58 +01:00
first need to run the included "autogen.sh" script in order to
generate the configure script.)
2007-11-07 22:35:15 +00:00
2009-11-20 12:37:47 -05:00
You can run the regression tests by running
2004-12-01 19:59:00 +00:00
2014-01-14 18:41:58 +01:00
$ make verify
2004-12-01 19:59:00 +00:00
2010-12-09 11:40:35 -05:00
Install as root via
2014-01-14 18:41:58 +01:00
$ make install
2010-12-09 11:40:35 -05:00
2012-10-23 22:09:45 -07:00
Before reporting any problems, please run the regression tests.
2005-04-04 00:35:14 +00:00
2018-08-01 10:20:28 +10:00
To enable low-level tracing, build the library as:
2005-12-17 20:18:10 +00:00
2014-01-14 18:41:58 +01:00
$ CFLAGS=-DUSE_DEBUG ./configure [...]
2009-11-20 12:37:47 -05:00
Standard configure flags should work. In particular, see:
2018-08-01 10:24:50 +10:00
--disable-shared Only build static libraries.
--prefix Install all files relative to this directory.
2009-11-20 12:37:47 -05:00
The configure script also supports the following flags:
2018-08-01 10:24:50 +10:00
--enable-gcc-warnings Enable extra compiler checking with GCC.
--disable-malloc-replacement
Don't let applications replace our memory
management functions.
--disable-openssl Disable support for OpenSSL encryption.
--disable-thread-support Don't support multithreaded environments.
2009-11-20 12:37:47 -05:00
2014-01-14 18:25:07 +01:00
## CMake (Windows)
2014-01-21 14:29:00 -05:00
(Note that autoconf is currently the most mature and supported build
2018-08-01 10:29:43 +10:00
environment for Libevent; the CMake instructions here are new and
experimental, though they _should_ be solid. We hope that CMake will
2014-01-21 14:29:00 -05:00
still be supported in future versions of Libevent, and will try to
make sure that happens.)
2018-08-01 10:21:57 +10:00
First of all install < https: / / www . cmake . org > .
2014-01-14 18:25:07 +01:00
2018-08-01 10:29:43 +10:00
To build Libevent using Microsoft Visual studio open the "Visual Studio Command prompt" and type:
2014-01-14 18:25:07 +01:00
```
$ cd < libevent source dir >
2014-01-14 18:41:58 +01:00
$ mkdir build & & cd build
2014-01-14 18:25:07 +01:00
$ cmake -G "Visual Studio 10" .. # Or whatever generator you want to use cmake --help for a list.
$ start libevent.sln
```
2014-01-14 18:41:58 +01:00
In the above, the ".." refers to the dir containing the Libevent source code.
You can build multiple versions (with different compile time settings) from the same source tree
by creating other build directories.
It is highly recommended to build "out of source" when using
CMake instead of "in source" like the normal behaviour of autoconf for this reason.
2014-01-14 18:25:07 +01:00
2014-01-14 18:41:58 +01:00
The "NMake Makefiles" CMake generator can be used to build entirely via the command line.
2014-01-14 18:25:07 +01:00
To get a list of settings available for the project you can type:
```
$ cmake -LH ..
```
2014-01-14 18:41:58 +01:00
### GUI
2014-01-14 18:25:07 +01:00
CMake also provides a GUI that lets you specify the source directory and output (binary) directory
2014-01-14 18:41:58 +01:00
that the build should be placed in.
2014-01-14 18:25:07 +01:00
# 2. USEFUL LINKS:
2009-11-20 12:37:47 -05:00
For the latest released version of Libevent, see the official website at
2014-01-14 18:41:58 +01:00
< http: / / libevent . org / > .
2009-11-20 12:37:47 -05:00
There's a pretty good work-in-progress manual up at
2014-01-14 18:25:07 +01:00
< http: / / www . wangafu . net / ~ nickm / libevent-book / > .
2009-11-20 12:37:47 -05:00
For the latest development versions of Libevent, access our Git repository
via
2014-01-14 18:25:07 +01:00
```
2015-12-23 02:42:48 -08:00
$ git clone https://github.com/libevent/libevent.git
2014-01-14 18:25:07 +01:00
```
You can browse the git repository online at:
2014-01-14 18:41:58 +01:00
2018-08-01 10:29:43 +10:00
< https: / / github . com / libevent / libevent >
2009-11-20 12:37:47 -05:00
2015-12-23 02:42:48 -08:00
To report bugs, issues, or ask for new features:
__Patches__: https://github.com/libevent/libevent/pulls
2018-08-01 10:17:42 +10:00
> OK, those are not really _patches_. You fork, modify, and hit the "Create Pull Request" button.
> You can still submit normal git patches via the mailing list.
2014-01-14 18:41:58 +01:00
2018-08-01 10:17:42 +10:00
__Bugs, Features [RFC], and Issues__: https://github.com/libevent/libevent/issues
2015-12-23 02:42:48 -08:00
> Or you can do it via the mailing list.
2009-11-20 12:37:47 -05:00
There's also a libevent-users mailing list for talking about Libevent
2014-01-14 18:41:58 +01:00
use and development:
< http: / / archives . seul . org / libevent / users / >
2007-11-07 22:35:15 +00:00
2014-01-14 18:25:07 +01:00
# 3. ACKNOWLEDGMENTS
2005-04-04 00:35:14 +00:00
2005-05-10 17:27:58 +00:00
The following people have helped with suggestions, ideas, code or
fixing bugs:
2005-04-04 00:35:14 +00:00
2014-01-14 18:41:58 +01:00
* Samy Al Bahra
2014-03-16 12:01:44 -04:00
* Antony Antony
2014-01-14 18:41:58 +01:00
* Jacob Appelbaum
* Arno Bakker
* Weston Andros Adamson
* William Ahern
* Ivan Andropov
* Sergey Avseyev
* Avi Bab
* Joachim Bauch
2014-03-16 12:01:44 -04:00
* Andrey Belobrov
2014-01-14 18:41:58 +01:00
* Gilad Benjamini
* Stas Bekman
* Denis Bilenko
* Julien Blache
* Kevin Bowling
* Tomash Brechko
* Kelly Brock
* Ralph Castain
* Adrian Chadd
* Lawnstein Chan
* Shuo Chen
* Ka-Hing Cheung
* Andrew Cox
* Paul Croome
* George Danchev
* Andrew Danforth
* Ed Day
* Christopher Davis
* Mike Davis
2014-03-16 12:01:44 -04:00
* Frank Denis
2014-01-14 18:41:58 +01:00
* Antony Dovgal
* Mihai Draghicioiu
* Alexander Drozdov
* Mark Ellzey
* Shie Erlich
* Leonid Evdokimov
* Juan Pablo Fernandez
* Christophe Fillot
* Mike Frysinger
* Remi Gacogne
* Artem Germanov
* Alexander von Gernler
2014-03-16 12:01:44 -04:00
* Diego Giagio
2014-01-14 18:41:58 +01:00
* Artur Grabowski
* Diwaker Gupta
2014-03-16 12:01:44 -04:00
* Kuldeep Gupta
2014-01-14 18:41:58 +01:00
* Sebastian Hahn
* Dave Hart
* Greg Hazel
* Nicholas Heath
* Michael Herf
* Savg He
* Mark Heily
* Maxime Henrion
* Michael Herf
* Greg Hewgill
* Andrew Hochhaus
* Aaron Hopkins
* Tani Hosokawa
* Jamie Iles
* Xiuqiang Jiang
* Claudio Jeker
* Evan Jones
2014-03-16 12:01:44 -04:00
* Marcin Juszkiewicz
2014-01-14 18:41:58 +01:00
* George Kadianakis
2014-03-16 12:01:44 -04:00
* Makoto Kato
2014-01-14 18:41:58 +01:00
* Phua Keat
* Azat Khuzhin
* Alexander Klauer
* Kevin Ko
* Brian Koehmstedt
* Marko Kreen
2014-03-16 12:01:44 -04:00
* Ondřej Kuzník
2014-01-14 18:41:58 +01:00
* Valery Kyholodov
* Ross Lagerwall
* Scott Lamb
* Christopher Layne
* Adam Langley
* Graham Leggett
* Volker Lendecke
* Philip Lewis
* Zhou Li
* David Libenzi
* Yan Lin
* Moshe Litvin
* Simon Liu
* Mitchell Livingston
* Hagne Mahre
* Lubomir Marinov
* Abilio Marques
2014-03-16 12:01:44 -04:00
* Nicolas Martyanoff
2014-01-14 18:41:58 +01:00
* Abel Mathew
* Nick Mathewson
* James Mansion
* Nicholas Marriott
* Andrey Matveev
* Caitlin Mercer
* Dagobert Michelsen
* Andrea Montefusco
* Mansour Moufid
* Mina Naguib
* Felix Nawothnig
* Trond Norbye
* Linus Nordberg
* Richard Nyberg
* Jon Oberheide
2014-03-16 12:01:44 -04:00
* John Ohl
2014-01-14 18:41:58 +01:00
* Phil Oleson
2014-03-16 12:01:44 -04:00
* Alexey Ozeritsky
2014-01-14 18:41:58 +01:00
* Dave Pacheco
* Derrick Pallas
* Tassilo von Parseval
* Catalin Patulea
* Patrick Pelletier
* Simon Perreault
* Dan Petro
* Pierre Phaneuf
* Amarin Phaosawasdi
* Ryan Phillips
* Dimitre Piskyulev
* Pavel Plesov
* Jon Poland
* Roman Puls
* Nate R
* Robert Ransom
2014-03-16 12:01:44 -04:00
* Balint Reczey
2014-01-14 18:41:58 +01:00
* Bert JW Regeer
* Nate Rosenblum
* Peter Rosin
* Maseeb Abdul Qadir
* Wang Qin
* Alex S
* Gyepi Sam
* Hanna Schroeter
* Ralf Schmitt
* Mike Smellie
* Steve Snyder
2014-03-16 12:01:44 -04:00
* Nir Soffer
2014-01-14 18:41:58 +01:00
* Dug Song
* Dongsheng Song
* Hannes Sowa
* Joakim Soderberg
2014-03-16 12:01:44 -04:00
* Joseph Spadavecchia
* Kevin Springborn
* Harlan Stenn
* Andrew Sweeney
2014-01-14 18:41:58 +01:00
* Ferenc Szalai
* Brodie Thiesfield
* Jason Toffaletti
2014-03-16 12:01:44 -04:00
* Brian Utterback
2014-01-14 18:41:58 +01:00
* Gisle Vanem
* Bas Verhoeven
* Constantine Verutin
* Colin Watt
* Zack Weinberg
* Jardel Weyrich
* Jay R. Wren
* Zack Weinberg
2014-03-16 12:01:44 -04:00
* Mobai Zhang
2014-01-14 18:41:58 +01:00
* Alejo
* Alex
* Taral
* propanbutan
2014-03-16 12:01:44 -04:00
* masksqwe
2014-01-14 18:41:58 +01:00
* mmadia
* yangacer
2016-08-07 23:27:22 +03:00
* Andrey Skriabin
* basavesh.as
* billsegall
* Bill Vaughan
* Christopher Wiley
* David Paschich
* Ed Schouten
* Eduardo Panisset
* Jan Heylen
* jer-gentoo
* Joakim Söderberg
* kirillDanshin
* lzmths
* Marcus Sundberg
* Mark Mentovai
* Mattes D
* Matyas Dolak
* Neeraj Badlani
* Nick Mathewson
* Rainer Keller
* Seungmo Koo
* Thomas Bernard
* Xiao Bao Clark
* zeliard
* Zonr Chang
2016-11-02 00:16:54 +03:00
* Kurt Roeckx
* Seven
* Simone Basso
* Vlad Shcherban
* Tim Hentenaar
2017-01-22 16:14:30 +03:00
* Breaker
* johnsonlee
* Philip Prindeville
* Vis Virial
2012-05-02 17:09:11 -04:00
2009-11-20 12:46:00 -05:00
If we have forgotten your name, please contact us.