Building libevent on Windows XP
Here are some steps which resulted in a successful build of libevent for Microsoft Windows XP SP2 and Microsoft Visual Studio 8 (2005):
- Installed CMake 3.4.3 for 32-bit Windows
 
- Cloned libevent (commit 49bd79047bc9aca3ca43fb79eac3901e7805c0df):
 - cd \path\to
 
- git clone https://github.com/libevent/libevent libevent
 
 
- Start menu button- Programs- Microsoft Visual Studio 2005- Visual Studio Tools- Visual Studio 2006 Command Prompt
 
 
 
 
 
- cd \path\to\libevent
 
- Edited the CMakeLists.txt file:
 - EVENT__BUILD_SHARED_LIBRARIES from OFF to ON
 
- EVENT__DISABLE_OPENSSL from OFF to ON
 
- EVENT__DISABLE_BENCHMARK from OFF to ON
 
- EVENT__DISABLE_TESTS from OFF to ON
 
- EVENT__DISABLE_REGRESS from OFF to ON
 
- EVENT__DISABLE_SAMPLES from OFF to ON
 
 
- mkdir build
 
- cd build
 
- cmake -G "NMake Makefiles" ..
 
- nmake
- dir bin
Copyright © 2016 Synthetel Corporation. All rights reserved.