使用带有python绑定的boost在osx上构建32位版本的libtorrent

时间:2013-08-24 12:26:17

标签: c++ python boost libtorrent

我正在从libtorrent的/ bindings / python目录运行以下构建命令

./bjam boost=system link=static address-model=32 toolset=darwin architecture=x86 release

但我收到以下错误

/opt/local/include/boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory
/opt/local/include/boost/python/detail/wrap_python.hpp:75:24: error: patchlevel.h: No such file or directory
/opt/local/include/boost/python/detail/wrap_python.hpp:78:2: error: #error Python 2.2 or higher is required for this version of Boost.Python.
/opt/local/include/boost/python/detail/wrap_python.hpp:142:21: error: Python.h: No such file or directory

最终导致

...failed darwin.compile.c++ bin/darwin-4.2.1/release/address-model-32/architecture-x86/link-static/src/module.o..

有人能指出我搞砸的地方吗?

1 个答案:

答案 0 :(得分:1)

愚蠢的问题:你有python安装吗?如果你确实安装了它,但没有安装在标准的地方,你必须告诉bjam在哪里找到它。

哦,是用python支持构建的吗?