(Mac OS 10.9)Boost.Python构建快速入门:无法加载Jamfile

时间:2014-01-10 04:08:43

标签: macos boost macports boost-python boost-build

我在Mac OS X 10.9上通过Macports安装了Boost 1.55(+ python33),boost-buildboost-jam。 在HOWTO(http://www.boost.org/doc/libs/1_55_0b1/libs/python/doc/building.html)之后,我 cd到/ opt / local / share / doc / boost / libs / python / example / quickstart并在bjam toolset=gcc --verbose-test testbjam中键入,我收到以下错误消息:

/opt/local/share/boost-build/build/project.jam:271: in find-jamfile from module project
error: Unable to load Jamfile.
error: Could not find a Jamfile in directory '../../../..'.
error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2 [Jj]amfile [Jj]amfile.jam'.
error: Please consult the documentation at 'http://www.boost.org'.
/opt/local/share/boost-build/build/project.jam:290: in load-jamfile from module project
/opt/local/share/boost-build/build/project.jam:68: in project.load from module project
/opt/local/share/boost-build/build/project.jam:718: in project.use from module project
/opt/local/share/boost-build/build/project.jam:95: in load-used-projects from module project
/opt/local/share/boost-build/build/project.jam:79: in load from module project
/opt/local/share/boost-build/build/project.jam:170: in project.find from module project
/opt/local/share/boost-build/build-system.jam:248: in load from module build-system
/opt/local/share/boost-build/kernel/modules.jam:261: in import from module modules
/opt/local/share/boost-build/kernel/bootstrap.jam:132: in boost-build from module
/opt/local/share/doc/boost/libs/python/example/quickstart/boost-build.jam:8: in module scope from module

显然,Macports将这些文件放在一些“非默认”位置。例如,boost-build目录(在boost-build.jam中指定)位于/opt/local/share/doc/boost/tools/build/v2中。在文件Jamroot中:

# Specify the path to the Boost project.  If you move this project,
# adjust the path to refer to the Boost root directory.
use-project boost 
  : ../../../.. ;

显然,在Macports安装中,所需的jamefile不在../../../..中。

我的问题是:在Macports安装的boost中所需的jamefile在哪里?我应该在Jamroot中指定哪条路径?

0 个答案:

没有答案