2

我已经安装了 Boost 1.55 (+python33),boost-buildboost-jam通过 Mac OS X 10.9 上的 Macports。按照 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 test然后bjam我收到以下错误消息:

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

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

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

4

0 回答 0