From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2007-07-24 02:11:40
Tim St. Clair wrote:
> I'm looking for a nice mid-level example of a bjam project outside
> of boost, which uses boost. All of the examples listed in the
> documentation are very simple and CANNED. I want to know exactly what
> pieces I need in order for me to build, w/o dragging in the entire
> tools/build/v2 directory.
What do you mean by CANNED ? Do you mean everything below boost root?
If so, try to take the tools/build/v2/example/libraries as a starting
1) Move it outside the tree.
2) Make sure either you have BOOST_BUILD_PATH pointing to
.../tools/build/v2, have a boost-build.jam pointing there,
or have the boost-build package (if you are on debian) installed.
3) Using boost libraries: If you want to be platform independent
you currently have only one option: installing the source tree.
Then in your Jamroot: "use-project boost : insert_path_to_boost"
4) Linking to boost libraries from bjam in a platform independent
way is being worked on.
> From reading the documentation, and looking at the bjam files
> created within boost, there is a fair amount of inconsistency on what
> one might consider to be "best-practices"...
Unfortunately true. This for the most part stems from the draft nature
of the Boost.Build manual I guess.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk