2013-08-24 29 views
0

,我从libtorrent大厦32位libtorrent版本使用升压用Python绑定OSX

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

的/绑定/ Python的目录下面的生成命令,但我发现了以下错误

/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.. 

任何人都可以点我想趁自己在那里g搞砸了?

+0

这些错误表明bjam找不到python头文件。验证是否安装了python头文件(通常分布在python-devel软件包中)。 –

回答

1

愚蠢的问题:你有python intalled?如果你已经安装了它,但不是在标准的地方,你必须告诉bjam在哪里找到它。

哦,并用python支持构建boost?

+0

嘿,你的想法指向我这个方向,现在所有的建筑:) http://www.geero.net/2011/03/install_pythonmagick_mac_os_x/ –

+0

现在得到这些错误 darwin.link.dll ../。 ./bin/darwin-4.2.1/release/address-model-32/architecture-x86/boost-link-shared/threading-multi/libtorrent.dylib.0.16.11 ld:warning:找不到选项' -L/sw/lib' ld:警告:找不到选项'-L/usr/g ++/lib'的目录 ld:未知选项:-Bsymbolic collect2:ld返回1退出状态 任何想法? –