2013-08-24 26 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退出狀態 任何想法? –