Boost logo

Boost-Build :

Subject: Re: [Boost-build] path-constant in Jamroot does not work in subdirs
From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2012-07-12 10:18:10


> Only when I run bjam from the "bjam-problem/cgi" directory I get the
> following error (in dirs "bjam-problem" and "bjam-problem/cgi/base" is
> works fine):

   When I run bjam from the bjam-problem folder - there is nothing for
it to do as your Jamroot file does not specify anything to build. Maybe
that is what you expected it to do, maybe not.

   When I run it from any of the other two folders - everything builds fine.

   I tried this with the current trunk Boost Build using the msvc-9.0
toolset and the gcc toolset under Cygwin with no INSTALL_PATH
environment variable set.

   I had to tweak the project files a bit to get it to work in my local
environment but those changes should not affect you. I'm sending you the
self-contained projects for both those environments.

--- Cygwin/GCC output: ---
> Jurko_at_Toolyan /cygdrive/c/Users/Jurko/fff/bjam-problem
> $ cd cgi
> Jurko_at_Toolyan /cygdrive/c/Users/Jurko/fff/bjam-problem/cgi
> $ /cygdrive/d/Workplace/Boost/boost-trunk/tools/build/v2/engine/bin.cygwinx86.debug/bjam.exe
> ...found 17 targets...
> ...updating 10 targets...
> common.mkdir ../cgi/base/bin
> common.mkdir ../cgi/base/bin/gcc-3
> common.mkdir ../cgi/base/bin/gcc-3/debug
> gcc.compile.c++ ../cgi/base/bin/gcc-3/debug/test.o
> ../cgi/base/bin/gcc-3/debug/libtest.dll.a
> Creating library file: ../cgi/base/bin/gcc-3/debug/libtest.dll.a
> common.mkdir /mbrace
> common.mkdir /mbrace/lib
> common.copy /mbrace/lib/libtest.dll.a
> common.copy /mbrace/lib/cygtest.dll
> ...updated 10 targets...

--- msvc output: ---
> C:\Users\Jurko\fff\bjam-problem-msvc>cd cgi
> C:\Users\Jurko\fff\bjam-problem-msvc\cgi>d:\Workplace\Boost\boost-trunk\tools\build\v2\engine\bin.ntx86.debug\bjam.exe
> ...found 16 targets...
> ...updating 10 targets...
> common.mkdir ..\cgi\base\bin
> common.mkdir ..\cgi\base\bin\msvc-9.0
> common.mkdir ..\cgi\base\bin\msvc-9.0\debug
> common.mkdir ..\cgi\base\bin\msvc-9.0\debug\link-static
> common.mkdir ..\cgi\base\bin\msvc-9.0\debug\link-static\threading-multi
> compile-c-c++ ..\cgi\base\bin\msvc-9.0\debug\link-static\threading-multi\test.obj
> test.cpp
> msvc.archive ..\cgi\base\bin\msvc-9.0\debug\link-static\threading-multi\libtest.lib
> common.mkdir ..\cgi\base\mbrace
> common.mkdir ..\cgi\base\mbrace\lib
> common.copy ..\cgi\base\mbrace\lib\libtest.lib
> ..\cgi\base\bin\msvc-9.0\debug\link-static\threading-multi\libtest.lib
> 1 file(s) copied.
> ...updated 10 targets...

   Hope this helps.

   Best regards,
     Jurko Gospodnetić

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at