Compilation 如何在Windows上使用MSYS从源代码编译Tor?

Compilation 如何在Windows上使用MSYS从源代码编译Tor?,compilation,compiler-errors,mingw,msys,Compilation,Compiler Errors,Mingw,Msys,我试图在Windows上使用MinGW的MSYS从源代码编译Tor2.4.27。我已经从源代码静态地构建了所有依赖库(libevent、libssl、libcrypto、libzlib(.a文件),现在正在编译tor源代码本身 我正在msys.bat shell中使用以下命令 ./configure --enable-static-tor --enable-static-libevent --with-libevent-dir=/projects/tor/libevent-2.0.22-stab

我试图在Windows上使用MinGW的MSYS从源代码编译Tor2.4.27。我已经从源代码静态地构建了所有依赖库(libevent、libssl、libcrypto、libzlib(.a文件),现在正在编译tor源代码本身

我正在msys.bat shell中使用以下命令

./configure --enable-static-tor --enable-static-libevent --with-libevent-dir=/projects/tor/libevent-2.0.22-stable
但无论我做什么,配置总是停止

configure: WARNING: Could not find a linkable libevent. If you have installed it somewhere unusual, you can specify an explicit path using --with-libevent-dir
configure: error: Missing libraries; unable to proceed.
我也尝试过以下方法:

./configure CFLAGS="-I/project/tor/libevent-2.0.22-stable/include" LDFLAGS="-L/project/tor/libevent-2.0.22-stable/" --enable-static-tor --enable-static-libevent
没有用


这肯定是一个bug,我该怎么办?

您需要
libevent-devel
来获取标题。

在使用
--with libevent dir=

指定路径后,它应该可以正常编译。您需要
libevent-devel
作为标题。
在使用
--with libevent dir=