为libtorrent构建BBv2

时间:2017-11-29 15:07:12

标签: python libtorrent libtorrent-rasterbar

我正在关注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?

1 个答案:

答案 0 :(得分:0)

你可以单独购买一个boost安装程序,预先构建bjam和boost-build。例如thisthis

这些说明的问题在于较新版本的boost软件包可以解决一些问题。您现在可以在以下位置找到bjam构建脚本:

/工具/建造/ SRC /发动机