Linux libenv 编译移植

编译环境:ubuntu 20.04

 

git clone https://github.com/libevent/libevent.git
md build && cd build
cmake   ../

 报错如下:

Could NOT find MbedTLS (missing: MBEDTLS_INCLUDE_DIR MBEDTLS_LIBRARY
  MBEDTLS_CRYPTO_LIBRARY MBEDTLS_X509_LIBRARY MBEDTLS_LIBRARIES
  MBEDTLS_VERSION)

  

修改方式:

cmake -DEVENT__DISABLE_MBEDTLS=ON ../
make
make install

  

成功

 

posted @ 2021-06-21 15:47  颜小雀  阅读(1149)  评论(0编辑  收藏  举报