2016-08-04 102 views
1

我想从源代码的Windows上使用MinGW的MSYS编译tor 2.4.27。我从源代码构建了静态(.a文件)的所有依赖库(libevent,libssl,libcrypto,libzlib),现在正在编译tor源码本身。如何在Windows上使用MSYS从源代码编译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 

无济于事......

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

回答

0

您需要libevent-devel作为标题。
它应该在指定路径后编译正确--with-libevent-dir=