Boost logo

Boost-Build :

Subject: Re: [Boost-build] Location header files
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-12-26 06:50:06


On Saturday 26 December 2009 10:36:01 Александр Букреев wrote:

> Command execution : "bjam install --includedir=D:\Qt\4.6.0\include\boost\ --libdir=D:\Qt\4.6.0\lib\"
> leads to the fact that the library files are placed in "D:\Qt\4.6.0\lib\" - this is correct.
> header files are placed in "D:\Qt\4.6.0\include\boost\boost-1_42\boost\" - why?

Suppose that you specify --prefix=/usr/local. Then, libraries go to /usr/local/lib and headers
go to /usr/local/include -- where a directory boost-1_42/boost is created. Then, if you
specify --libdir=/usr/local/lib --includedir=/usr/local/include the effect is the same.
In other words, --includedir is not specifying where top-level boost headers are installed,
it specifies the root directory where includes live and boost-1_42/boost is created under
that.
 
> When the command "bjam" header files are (still) in "D:\Qt\boost-svn\ boost\", but when you run "bjam install --libdir=D:\Qt\4.6.0\lib\" header files are placed in "C:\Boost\include\boost-1_42\boost\" - why?

Because "bjam" and "bjam install" are meant to do different things. It's useful to be able to
build Boost and not install it anywhere -- in particular if you regularly update from SVN
and rebuild, there's no reason to keep a second copy of all headers in a location different
from your SVN checkout.

HTH,
Volodya


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