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

时间:2016-08-04 19:16:05

标签: compilation compiler-errors mingw msys

我试图在源代码上使用MinGW的MSYS编译版本2.4.27。我已经从源代码中静态构建了所有依赖库(libevent,libssl,libcrypto,libzlib),现在正在编译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

无济于事......

这绝对是个错误,我该怎么办?

1 个答案:

答案 0 :(得分:0)

标题需要libevent-devel 在使用--with-libevent-dir=

指定路径后,它应该编译正常