$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] Bjam outside Boost tree
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-10-04 18:28:44
AMDG
Jean-Louis Leroy wrote:
> <snip>
>
> My boost tree is at:
> C:\Users\JLL\Documents\Visual Studio 2008\Projects\boost_1_40_0
>
> For the first attempt: no Jamfile in the root of my tree.
>
> >cd libs\rdb\test
> >bjam
> Unable to load Boost.Build: could not find "boost-build.jam"
>
> >bjam --build-path "C:\Users\JLL\Documents\Visual Studio
> 2008\Projects\boost_1_40_0"
> Unable to load Boost.Build: could not find "boost-build.jam"
>
>
>
> >set BOOST_BUILD_PATH="C:\Users\JLL\Documents\Visual Studio
> 2008\Projects\boost_1_40_0"
>
> >bjam
> error: Could not find parent for project at '.'
> error: Did not find Jamfile.jam or Jamroot.jam in any parent directory.
>
> >copy ..\..\..\..\boost_1_40_0\Jamroot "C:\Users\JLL\Documents\Visual
> Studio 2008\Projects\rdb.hg"
> 1 file(s) copied.
Copying Jamroot probably won't work very well.
Try creating a Jamroot that contains just
use-project /boost : "C:/Users/JLL/Documents/Visual Studio
2008/Projects/boost_1_40_0" ;
> >bjam
> warning: No toolsets are configured.
> warning: Configuring default toolset "msvc".
> warning: If the default is wrong, your build may not work correctly.
> warning: Use the "toolset=xxxxx" option to override our guess.
> warning: For more configuration options, please consult
> warning:
> http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
> error: Unable to find file or target named
> error: '../../test/build//boost_test_exec_monitor'
> error: referred from project at
> error: '.'
>
> >type Jamfile.v2
> # bring in rules for testing
> import testing ;
>
> project
> : requirements
> <library>../build//boost_rdb
> <link>static
> ;
> {
> test-suite "rdb"
> :
> [ run test.cpp ../../test/build//boost_test_exec_monitor ]
> ;
> }
Try /boost/test//boost_test_exec_monitor
If you use path instead of a project id, you need to
make sure that it refers to the directory where
the library is defined.
In Christ,
Steven Watanabe