Evo is a self-contained library but Asynchronous I/O currently requires libevent 2.0+.
This gives some tips on installing this dependency.
- Windows / MSVC
Building newer libevent (with cmake):
- Download and install cmake: https://cmake.org/download/
- Set install option to add to system path
- Download libevent source and extract it: https://libevent.org/
- Open MSVC Command Prompt, cd to extracted dir
- Build:
> cmake -G "NMake Makefiles" -DEVENT__DISABLE_OPENSSL=ON -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_BENCHMARK=ON ..
> nmake
- Assemble results (where x.y.z is the version):
> md libevent-x.y.z
> xcopy ..\LICENSE libevent-x.y.z\
> xcopy ..\ChangeLog libevent-x.y.z\
> xcopy ..\whatsnew*.txt libevent-x.y.z\
> xcopy /s ..\include libevent-x.y.z\include\
> xcopy ..\WIN32-Code\nmake\event2\*.h libevent-x.y.z\include\event2\
> del libevent-x.y.z\include\include.am
> xcopy /s lib libevent-x.y.z\lib\
Building older libevent (before was cmake supported):
- Download libevent source and extract it: https://libevent.org/
- Open MSVC Command Prompt, cd to extracted dir
- Build:
> nmake -f makefile.nmake
- Assemble results (where x.y.z is the version):
> md libevent-x.y.z
> xcopy LICENSE libevent-x.y.z\
> xcopy ChangeLog libevent-x.y.z\
> xcopy whatsnew*.txt libevent-x.y.z\
> xcopy /s ..\include libevent-x.y.z\include\
> del libevent-x.y.z\include\Makefile.*
> xcopy WIN32-Code\event2\*.h libevent-x.y.z\include\event2\
> xcopy *.lib libevent-x.y.z\lib\
- Linux/Unix/MacOS
See packages:
- Debian/Ubuntu: libevent, libevent-dev
- RedHat/CentOS: libevent, libevent-devel
- FreeBSD: libevent
- MacOS (brew): libevent