2016-08-04 80 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=