Boost logo

Boost :

Subject: Re: [boost] Bjam outside Boost tree
From: Jean-Louis Leroy (jl_at_[hidden])
Date: 2009-10-04 18:13:17


> Maybe if you show what kind of errors do you get could help.
> Could you give the values of BOOST_BUILD_PATH and BOOST_ROOT ?

Thanks. Everything is below. I think I am getting closer: maybe it's the
way I refer to the test monitor: ../../test/build//boost_test_exec_monitor

I gues I should put a bjam variable there...

J-L

>cd
C:\Users\JLL\Documents\Visual Studio 2008\Projects\rdb.hg

>set B
Environment variable B not defined

>tree
C:.
├───boost
│ └───rdb
│ └───sql
│ └───detail
└───libs
     â””───rdb
         â”œâ”€â”€â”€build
         â”œâ”€â”€â”€doc
         â”‚ └───templates
         â”œâ”€â”€â”€msvc
         â”‚ ├───examples
         â”‚ ├───odbc
         â”‚ ├───rdb
         â”‚ ├───test_odbc
         â”‚ ├───test_rdb
         â”‚ └───tutorial
         â”œâ”€â”€â”€src
         â””───test

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.

>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 ]
        ;
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk