|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-03-13 10:09:56
"Eric Niebler" <eric_at_[hidden]> writes:
> David Abrahams wrote:
>>
>> But I don't know why you want to add it, since it gets
>> added automatically by all the testing rules ;-).
>>
>
> No, none of that helped. My Jamfile is now:
>
> subproject libs/xpressive/test ;
> import testing ;
> DEPENDS all : test ;
> {
> test-suite "xpressive"
> : [ run regress.cpp ]
> ;
> }
>
> And when I built in cygwin (TOOLS=gcc) I get:
Are you using a cygwin build of bjam or an ordinary windows build?
> $ bjam
> ...found 172 targets...
> ...updating 4 targets...
> gcc-C++-action
> ..\..\..\bin\boost-sandbox\libs\xpressive\test\regress.test\gcc\debug\regress.obj
> ../../../libs/xpressive/test/regress.cpp:16:34: boost/test/minimal.hpp:
> No such file or directory
>
> So it's not finding the boost headers.
What does the g++ command-line say? That would be telling.
> $ export
> declare -x BOOST_BUILD_PATH="F:\\boost\\main\\boost\\tools\\build\\v1"
> declare -x BOOST_ROOT="F:\\boost\\main\\boost"
>
> I'm using boost.build v1 in cygwin. This is in the boost-sandbox
> project, so perhaps that is complicating things.
If you put your sandbox's root directory alongside your Boost root in
F:\boost\main, and don't set either of those variables, it should work
automatically (as long as you have the latest
sandbox/boost-build.jam).
> I also tried [ run regress.cpp : : : <sysinclude>$(BOOST_ROOT) ] but
> that didn't help.
>
> Note that if I try to build any of the other tests in boost-sandbox,
> they fail in a similar way -- can't find the boost headers.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
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