Getting Started documentation: minor update request
Hello, I'm trying to get boost-build up and running on Linux so that I can build the Python bindings for Boost.Graph, and after a few hours of fiddling around I'm thoroughly confused and frustrated. Please, could someone who understands boost-build could tell me what I'm doing wrong? (Note: I added the boost-build.jam file, which points to the installation directory of boost-build, and the project-root.jam which is just two newlines, copied from the "hello" example.) -------------------------------------------------------------------------------------------------- bash$ ls Jamfile LICENSE_1_0.txt boost build project-root.jam src Jamrules README boost-build.jam example python test bash$ bjam /usr/local/share/boost-build/build/project-roots.jam:368: in project-root warning: rulename $(project-root).$(method) expands to empty string Jamfile:13: in modules.load /usr/local/share/boost-build/build/project.jam:255: in load-jamfile /usr/local/share/boost-build/build/project.jam:67: in project.load /usr/local/share/boost-build/build-system.jam:75: in load /usr/local/share/boost-build/kernel/modules.jam:259: in import /usr/local/share/boost-build/kernel/bootstrap.jam:120: in boost-build /home/princelj/boost_graph/bgl-python-0.9/boost-build.jam:1: in module scope Jamfile:19: in modules.load rule subinclude unknown in module Jamfile. /usr/local/share/boost-build/build/project.jam:255: in load-jamfile /usr/local/share/boost-build/build/project.jam:67: in project.load /usr/local/share/boost-build/build-system.jam:75: in load /usr/local/share/boost-build/kernel/modules.jam:259: in import /usr/local/share/boost-build/kernel/bootstrap.jam:120: in boost-build /home/princelj/boost_graph/bgl-python-0.9/boost-build.jam:1: in module scope ---------------------------------------------------------------------------------- The Jamfile that came with bgl-python looks like this: # Copyright 2005 The Trustees of Indiana University. # Use, modification and distribution is subject to the Boost Software # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # Authors: Douglas Gregor # Andrew Lumsdaine # This file builds the Python bindings for the Boost Graph Library and # the Parallel BGL. project-root ; # Only build release-mode binaries, unless the user explicitly # requests otherwise BUILD ?= release ; subinclude build ; subinclude build/distributed ; ------------------------------------------------------------------------------ Boost, bjam, and boost-build (V2) are the latest (non-CVS) releases from boost.org, installed as per the "Getting Started" instructions on boost.org. I have no idea what's going wrong. I read on the list archive that "subinclude" only exists in perforce-jam, not bjam, so I emerged perforce jam and tried it with no more success: $ jam warning: unknown rule project-root warning: unknown rule subinclude warning: unknown rule subinclude ...found 7 target(s)... Please help! (This is using Gentoo Linux, although boost/bjam/boost-build were installed from scratch and not using the ebuilds)
Lonnie Princehouse wrote:
(This is using Gentoo Linux, although boost/bjam/boost-build were installed from scratch and not using the ebuilds)
Why don't you use the ebuilds? They worked flawlessly for me. Sebastian Redl
I tried the ebuild first, but it didn't work. As usual, it was my
fault (and not the ebuild's), but I was using the latest masked ebuild
(bgl-python says it needs boost 1.33.1), so in an attempt to eliminate
possible sources of error I unmerged the ebuild and installed boost
from scratch.
As is also usually the case, I figured things out about five minutes
after posting my message to the list --- so the problem is solved,
please don't anyone waste time answering the original post.
The problem seems to have been caused by using the wrong version of
boost-build; everything builds happily now that I've moved the
Python-BGL bindings directory into boost's directory so that it finds
the correct project-root and boost-build directories. I would still
like to know how to build a Boost.Python project from a directory
/outside/ of boost's hierarchy, but that's not really important. [I've
tried some guesses at the right stuff to put in boost-build.jam and
project-root.jam, but without success]
Incidentally, the original topic ("minor documentation update
request") was because I was going to say something about the
discrepancy between the Getting Started documentation (which links
only to the Boost.Build V1 installation info) and the Download page
which links to the latest (V2) Boost.Build. At the time I didn't
realize that the boost archive comes with boost.build in the tools/
directory...
... so complicated ... !!
On 1/10/06, Sebastian Redl
Lonnie Princehouse wrote:
(This is using Gentoo Linux, although boost/bjam/boost-build were installed from scratch and not using the ebuilds)
Why don't you use the ebuilds? They worked flawlessly for me.
Sebastian Redl _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Lonnie Princehouse
-
Sebastian Redl