【问题标题】:How do I compile Tor from source using MSYS on Windows?如何在 Windows 上使用 MSYS 从源代码编译 Tor?
【发布时间】:2016-12-11 01:33:49
【问题描述】:

我正在尝试在 Windows 上使用 MinGW 的 MSYS 从源代码编译 tor 2.4.27。我已经从源代码静态(.a 文件)构建了所有依赖库(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

无济于事...

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

【问题讨论】:

    标签: compilation compiler-errors mingw msys


    【解决方案1】:

    标题需要libevent-devel
    --with-libevent-dir=指定路径后应该可以正常编译

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-02-09
      • 1970-01-01
      • 2016-11-06
      • 1970-01-01
      • 2011-07-12
      • 1970-01-01
      • 1970-01-01
      • 2012-09-01
      相关资源
      最近更新 更多