按照官网编译可能会报错:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find MbedTLS (missing: MBEDTLS_INCLUDE_DIR MBEDTLS_LIBRARY
MBEDTLS_CRYPTO_LIBRARY MBEDTLS_X509_LIBRARY MBEDTLS_LIBRARIES
MBEDTLS_VERSION)
按照以下流程成功编译:
git clone https://github.com/libevent/libevent.git
md build && cd build
cmake -DEVENT__DISABLE_MBEDTLS=ON ../
make
make install