【问题标题】:Building of BBv2 for libtorrent为 libtorrent 构建 BBv2
【发布时间】:2017-11-29 15:07:12
【问题描述】:

我正在关注 guidepython 3.6 构建 libtorrent,但我被困在这部分。

将目录更改为 c:\boost_1_55_0\tools\jam\src。然后在 unix 系统上运行名为 build.bat 或 build.sh 的脚本。

First you need to build bjam. You do this by opening a terminal (In windows, run cmd). Change directory to c:\boost_1_55_0\tools\jam\src. Then run the script called build.bat or build.sh on a unix system. This will build bjam and place it in a directory starting with bin. and then have the name of your platform. Copy the bjam.exe (or bjam on a unix system) to a place that's in you shell's PATH. On linux systems a place commonly used may be /usr/local/bin or on windows c:\windows (you can also add directories to the search paths by modifying the environment variable called PATH).

我正在使用 boost here 的最新版本,即 1.65.1。我所做的就是将其提取到一个文件夹中。

问题

我在这个特定文件夹中没有看到build.bat,我应该使用它来构建bjam。有没有更清晰的方式在 windows 上为 python 安装 libtorrent?

【问题讨论】:

    标签: python libtorrent libtorrent-rasterbar


    【解决方案1】:

    您可以单独获得一个 boost 安装程序,其中包含预构建的 bjam 和 boost-build。例如thisthis

    这些说明的问题在于,较新版本的 boost 包改变了一些东西。您现在可以在以下位置找到 bjam 构建脚本:

    /tools/build/src/engine

    【讨论】:

    • 谢谢!我还没有时间尝试一下。但是周末会去看看! :)
    • 只是想知道,如果我要使用您链接的 prebuild bjam 和 boost-build,我可以直接跳到您教程的第 3 步吗?
    • 没错。不过,您可能必须在 user-config.jam 中配置您仍然拥有的编译器
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-27
    • 1970-01-01
    相关资源
    最近更新 更多